Deputydocs

Connect your agent

Add Deputy to Claude Code, Codex, OpenCode, Gemini CLI, Pi, Crush, Copilot CLI, Cursor, Qwen Code, Kimi Code, Kilo Code, Factory Droid, Devin, Grok, Qoder, Oh My Pi, Hermes, Letta Code, Mastra Code, VS Code, Claude Desktop or any other MCP client.

Deputy is a stdio MCP server, deputy-mcp, that your client runs with npx -y deputy-mcp. Add it once; your client starts it whenever it starts. It needs Node.js 20 or later and the Deputy extension; a Pro key is optional.

$claude plugin marketplace add RazinAI/deputy && claude plugin install deputy@razin

Claude Code

Install the Deputy plugin. It adds Deputy for every project, a /deputy:setup command that checks your connection, and a skill that tells Claude how to use Deputy well and what to do when a tool needs Pro.

claude plugin marketplace add RazinAI/deputy && claude plugin install deputy@razin

Or from inside Claude Code: /plugin marketplace add RazinAI/deputy, then /plugin install deputy@razin. Then run /deputy:setup.

Without the plugin, add Deputy as a plain MCP server. Keep --scope user: without it, Claude Code adds Deputy only to the folder you ran the command in.

claude mcp add --scope user deputy -- npx -y deputy-mcp

Use one or the other, not both, or Deputy starts twice.

Every agent below adds Deputy once, for all your projects. Where an agent has a command for it, that comes first; the file it writes is shown in case you'd rather edit it.

Codex

The Deputy plugin (it reads the Claude Code plugin, with its skill): codex plugin marketplace add RazinAI/deputy, then codex plugin add deputy@razin. Or the server alone:

codex mcp add deputy -- npx -y deputy-mcp

Writes ~/.codex/config.toml. Check with codex mcp list, or /mcp in a session.

OpenCode

In ~/.config/opencode/opencode.json (OpenCode's opencode mcp add asks the same questions interactively):

~/.config/opencode/opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "deputy": {
      "type": "local",
      "command": ["npx", "-y", "deputy-mcp"],
      "enabled": true
    }
  }
}

Check with opencode mcp list.

Gemini CLI

The Deputy extension, with instructions for Gemini: gemini extensions install https://github.com/RazinAI/deputy. Or the server alone:

gemini mcp add -s user deputy npx -- -y deputy-mcp

Keep -s user: without it, Gemini CLI adds Deputy to the current project only. This writes ~/.gemini/settings.json, in the mcpServers shape shown under Cursor. Check with gemini mcp list.

Pi

pi mcp add deputy --exposure direct -- npx -y deputy-mcp

Keep --exposure direct: by default Pi keeps MCP tools out of the model's view, and your agent would not see Deputy. This writes ~/.pi/agent/mcp.json. Check with pi mcp list. Needs Pi 0.99 or later.

Crush

Add this line to ~/.config/crush/crushrc:

~/.config/crush/crushrc
mcp add deputy --command npx --args -y --args deputy-mcp

With the older crush.json, add an mcp entry with "type": "stdio", "command": "npx" and "args": ["-y", "deputy-mcp"].

GitHub Copilot CLI

The Deputy plugin, with its skill: copilot plugin install RazinAI/deputy:deputy. Or the server alone:

copilot mcp add deputy -- npx -y deputy-mcp

Writes ~/.copilot/mcp-config.json. Check with copilot mcp list, or /mcp show deputy in a session.

Cursor

Add Deputy to Cursor in one click, or add it by hand.

The editor and the Cursor Agent CLI (agent) share ~/.cursor/mcp.json (or .cursor/mcp.json for one project):

~/.cursor/mcp.json
{
  "mcpServers": {
    "deputy": {
      "command": "npx",
      "args": ["-y", "deputy-mcp"]
    }
  }
}

In the CLI, check with agent mcp list, and approve it with agent mcp enable deputy if asked.

Qwen Code

The Deputy plugin, with its skill: qwen extensions install RazinAI/deputy:deputy. Or the server alone:

qwen mcp add -s user deputy npx -- -y deputy-mcp

Writes ~/.qwen/settings.json, in the same mcpServers shape. Check with qwen mcp list.

Kimi Code

Kimi Code has no shell command for this: use /mcp-config in a session, or add the mcpServers entry to ~/.kimi-code/mcp.json:

~/.kimi-code/mcp.json
{
  "mcpServers": {
    "deputy": {
      "command": "npx",
      "args": ["-y", "deputy-mcp"]
    }
  }
}

Start a new session afterwards, then check with /mcp.

Kilo Code CLI

In ~/.config/kilo/kilo.json (or run kilo mcp add and choose Global):

~/.config/kilo/kilo.json
{
  "mcp": {
    "deputy": {
      "type": "local",
      "command": ["npx", "-y", "deputy-mcp"],
      "enabled": true
    }
  }
}

Check with kilo mcp list.

Factory Droid

The Deputy plugin, with its skill: droid plugin marketplace add https://github.com/RazinAI/deputy, then droid plugin install deputy@razin --scope user. Or the server alone:

droid mcp add deputy "npx -y deputy-mcp"

Writes ~/.factory/mcp.json. Check with droid mcp list, or /mcp in a session.

Devin CLI

The Deputy plugin, with its skill: devin plugins install RazinAI/deputy#deputy. Or the server alone:

devin mcp add -s user deputy -- npx -y deputy-mcp

Keep -s user: without it, Devin adds Deputy to the current project only. This writes ~/.config/devin/mcp_config.json. Check with devin mcp list.

Grok CLI

xAI's Grok CLI:

grok mcp add deputy -- npx -y deputy-mcp

Writes ~/.grok/config.toml. Check with grok mcp list, or grok mcp doctor deputy if it does not connect.

Qoder CLI

qoder mcp add -s user deputy -- npx -y deputy-mcp

Keep -s user: without it, Qoder adds Deputy to the current project only. Check with qoder mcp list.

Oh My Pi (omp)

In a session:

/mcp add deputy --scope user -- npx -y deputy-mcp

Or add the mcpServers entry to ~/.omp/agent/mcp.json. Check with /mcp list.

Hermes Agent

hermes mcp add deputy --command npx --args -y deputy-mcp

Keep --args last. This writes ~/.hermes/config.yaml. Check with hermes mcp test deputy.

Letta Code

Letta keeps MCP servers per agent, not per computer, and its agents follow you between folders. In a session with each agent you use:

/mcp add --transport stdio deputy npx -y deputy-mcp

It answers with the number of tools it loaded.

Mastra Code

In ~/.mastracode/mcp.json:

~/.mastracode/mcp.json
{
  "mcpServers": {
    "deputy": {
      "command": "npx",
      "args": ["-y", "deputy-mcp"]
    }
  }
}

At start it says how many MCP servers connected; /mcp shows them.

VS Code

Add Deputy to VS Code in one click, or add it by hand.

In .vscode/mcp.json:

.vscode/mcp.json
{
  "servers": {
    "deputy": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "deputy-mcp"]
    }
  }
}

Claude Desktop

Open Settings > Developer > Edit Config, which opens claude_desktop_config.json, and add the mcpServers shape:

claude_desktop_config.json
{
  "mcpServers": {
    "deputy": {
      "command": "npx",
      "args": ["-y", "deputy-mcp"]
    }
  }
}

Then quit Claude Desktop fully and open it again.

Any other client

Add a stdio MCP server that runs:

npx -y deputy-mcp

Several clients at once

You can add Deputy to as many clients as you like and run them together. Each starts its own deputy-mcp; the first one owns the connection to the extension on 127.0.0.1:7331, and the rest share it. See One browser, many agents.

Clients configured with a URL

While deputy-mcp runs, it also answers MCP over Streamable HTTP at http://127.0.0.1:7331/mcp, on this computer only. That address only answers while some client's deputy-mcp is running, so set up the stdio server above wherever your client supports it.

Check it

Ask your agent to open a page. Its first call is usually browser_navigate, and the answer lists the page's forms as typed tools. If it says Deputy can't reach the browser, see Troubleshooting.

On this page