Skip to content
All updates

Connect other coding agents

One command sets up Claude Code, Codex, Pi, DeepSeek Harness or Hermes Agent to use your workspace's models and follow its policies.

Members can now connect Claude Code, Codex, Pi, DeepSeek Harness and Hermes Agent to your workspace. On Activity, the Connect a client guide has an Other agents tab. Pick an agent from its menu, copy the setup command and run it. Then approve the sign-in in your browser and pick your workspace. You can also run the command for your agent directly:

npx @opencode/console setup claude-code
npx @opencode/console setup codex
npx @opencode/console setup pi
npx @opencode/console setup deepseek-harness
npx @opencode/console setup hermes

Setup needs Node.js 22 or later. Each agent has a setup guide covering what setup changes and its limits: Claude Code, Codex, Pi, DeepSeek Harness and Hermes Agent.

What changes in the agent

  • Its model list shows the models your workspace lets the member use. Requests go through your workspace, so model rules and budgets apply.
  • Every tool call is checked against your workspace's policies before it runs.
  • OpenCode Web Search is added as an MCP server when the workspace has it on. Each search costs $0.01 and is billed to the workspace. Turn it off with OpenCode Web Search in Settings → General.
  • If your workspace has MCP servers or Library skills and instructions, they're added too.

Keeping the agent's own provider

Claude Code, Codex and Hermes Agent can keep their own sign-in and models, such as a Claude or ChatGPT subscription. Add --keep-provider to the setup command. The agent still follows your workspace's policies, but its requests don't go through your workspace, so model rules and budgets don't apply to them.

Which rules each agent enforces

Model rules and budgets apply to every request that goes through your workspace. Tools, Extensions and Providers rules rely on the agent to enforce them:

  • Claude Code and Codex enforce Tools rules, and Extensions rules for MCP servers and skills. In Codex, a hook that crashes or times out lets the call through.
  • Pi and DeepSeek Harness enforce the same rules, and Providers rules too.
  • Hermes Agent enforces Tools rules, and Extensions rules for MCP servers.

To enforce these rules, Claude Code needs version 2.1.295 or later, Codex 0.167.0 or later and Hermes Agent 0.22.6 or later.

A member's agent enforces these rules only after the member runs setup. In the policy builder, Tools and Extensions rules are tagged Client rule. The preview and the warning beside Save count a member as covered when every client they've used recently enforces the policy's rules. In Settings → Members, a member's Clients row lists each agent connected through setup, marked Enforcing (with the rules it enforces) or Update needed.

Manage the connection

  • npx @opencode/console status shows who you're signed in as, the workspace, and how many policies and models it has.
  • Run setup again to update it, or add --remove to undo it. You stay signed in until you run npx @opencode/console logout.