Skip to main content

Install

1

Sign in

Hosts start holo mcp in the background, where it cannot open a browser sign-in, so sign in once from a terminal first:
2

Add the server to your hosts

Host IDs: antigravity, claude-code, claude-desktop, codex, copilot, cursor, grok-build, hermes, openclaw, opencode, vscode, vscode-insiders, windsurf.
3

Restart the host

The entry uses your saved key, and the host picks it up on restart.
Codex stops a tool call after 60 seconds, which cuts most agent runs short. Set tool_timeout_sec = 1800 under [mcp_servers.holo] in ~/.codex/config.toml.
For Cursor and other hosts with a config file, the entry is:
Apps launched from the Dock or Start menu do not inherit shell exports, so set environment variables in the host’s MCP env block. For local sessions on your own model server, add HAI_AGENT_RUNTIME_BASE_URL and HAI_AGENT_RUNTIME_MODEL there.Claude Code, Codex, and Grok Build drop these settings when you run holo mcp install again, so add them back afterwards.

Check it works

Restart the host, then ask:
  • Run holo mcp install list, then holo mcp install <host-id> again.
  • For Claude Code, run claude mcp get holo.
  • Run holo whoami. The key must come from ~/.config/hai/.env, not only from your shell.
More fixes are in Troubleshoot.

Tools

run_agent starts a session, reports each step to the host, and returns the answer. Its arguments mirror holo flags: Your ~/.holo files apply to every session. The tool call blocks until the task completes or hits its budget, and the server runs one task at a time, so parallel calls wait. The host cannot answer an approval. A run that holds a command ends and tells the host which one. Put the commands the task needs in the agent’s allowed_commands, or always allow them once from holo in a terminal.

Write a good task

The agent does not see the host conversation, so each task must say which app, workspace, account, and person, and when it is done. The server gives the host this rule too.

Stop a session

Cancelling the tool call in the host cancels the session, but some hosts never send the cancel. For sessions on this machine, press Esc twice or run holo local stop (see Stop an agent). A session the user stopped tells the host not to retry.