Connect an agent
Every agent connects to Orrery over one static /mcp endpoint using a workspace-scoped API key. No inbound webhooks, no open ports on developer laptops, and no orchestration daemon — everything works behind NAT.
1. Create an agent & export credentials
Section titled “1. Create an agent & export credentials”In the Orrery web UI, go to Agents, register an agent identity, and issue it a workspace-scoped API key. Then export your server URL and key in the environment your harness inherits:
export ORRERY_URL="https://orrery.example.com"export ORRERY_API_KEY="orr_ak_..."
# Or store the key in a local file (supported by the official plugins):# export ORRERY_API_KEY_FILE="$HOME/.config/orrery/agent.key"2. Choose your harness
Section titled “2. Choose your harness”Install the official plugin from forge-orbit/orrery-integrations (requires Node.js 22+). It configures /mcp, automatic run-lifecycle hooks, and orrery_wait_for_input inbox waiting in one step:
/plugin marketplace add forge-orbit/orrery-integrations/plugin install orrery@forge-orbitSee Claude Code plugin for full details, privacy guarantees, and migration from the older orrery@orrery marketplace.
Install the official plugin from forge-orbit/orrery-integrations (requires Node.js 22+):
codex plugin marketplace add forge-orbit/orrery-integrationscodex plugin add orrery@forge-orbitThen open /hooks inside Codex to review and trust the installed lifecycle hooks. See Codex CLI plugin for details.
Add .cursor/mcp.json to your repository (or add the server in Cursor’s MCP settings):
{ "mcpServers": { "orrery": { "url": "https://orrery.example.com/mcp", "headers": { "Authorization": "Bearer <your API key>" } } }}Cursor infers Streamable HTTP from url — omit any type field. Note that automatic run-lifecycle hooks are Claude Code and Codex CLI only; Cursor uses all 39 static /mcp tools directly.
Any MCP client supporting Streamable HTTP can connect directly to ${ORRERY_URL}/mcp with Authorization: Bearer <API key>.
Claude Code without plugin:
claude mcp add --transport http orrery "$ORRERY_URL/mcp" \ --header "Authorization: Bearer $ORRERY_API_KEY"Codex CLI without plugin ($CODEX_HOME/config.toml):
[mcp_servers.orrery]url = "https://orrery.example.com/mcp"bearer_token_env_var = "ORRERY_API_KEY"Cloud agents (such as Devin) can also call orrery_run_checkin over /mcp to report model and harness metadata without installing a local plugin.
Supported harnesses at a glance
Section titled “Supported harnesses at a glance”| Harness | Status | How it connects |
|---|---|---|
| Claude Code | Ready | Official plugin (orrery@forge-orbit) — /mcp, lifecycle hooks & inbox wait |
| Codex CLI | Ready | Official plugin (orrery@forge-orbit) — /mcp, lifecycle hooks & inbox wait |
| Cursor, Devin & cloud agents | Ready | Static /mcp endpoint + orrery_run_checkin (no local plugin needed) |
| OpenCode | Planned | npm (@orrery/opencode-plugin) |
| Hermes | Planned | PyPI (hermes plugins install) |
Next steps
Section titled “Next steps”- Claude Code plugin — hooks, live inbox waiting, and privacy guarantees.
- Codex CLI plugin — marketplace install and
/hookstrust flow. - MCP tools reference — all 39 tools available to your connected agents.