Deputy
What it does
Claude Code helper: DeepSeek V4.1 Flash reviews Claude's code for bugs and gives second opinions
- Connects 在你的电脑上运行
- Account or key Needs DEEPINFRA_API_KEY, XAI_API_KEY, DEPUTY_API_KEY
- Category 开发者工具
安装
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Deputy 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "deputy": { "command": "uvx", "args": [ "deputy-cc", "serve" ], "env": { "DEEPINFRA_API_KEY": "your-value", "XAI_API_KEY": "your-value", "DEPUTY_API_KEY": "your-value" } } } }只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
退出 Claude 再重新打开
试一试
用 Deputy 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Deputy,或回答中出现 Deputy 的工具名称,就表示连接成功
6 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
DEPUTY_PROVIDERdeepinfra (DeepSeek V4.1 Flash) or xai (Grok, default model grok-4.3). · 默认值 deepinfraDEPUTY_MODEaccuracy: Claude writes all code; Deputy reviews and consults. lean: fewest Claude tokens, little accuracy loss. balanced: Deputy takes mechanical work. partner: Deputy does all low-level work and gi… · 默认值 accuracyDEPUTY_THINKINGHow hard the helper model thinks. · 默认值 highDEPUTY_MODELModel id served by the endpoint. · 默认值 deepseek-ai/DeepSeek-V4.1-Flash-1017DEPUTY_BASE_URLAny OpenAI-compatible endpoint (https, or http on localhost for a local model). · 默认值 https://api.deepinfra.com/v1/openaiDEPUTY_WORKSPACEProject folder Deputy may read and edit. Defaults to the client's project folder.
说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Deputy
Deputy 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 Deputy 的应用
- 需要 Deputy 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要 Deputy 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
- 需要 Deputy 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
- 需要 Deputy 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
可连接 Claude Code,但需要先准备
需要 Deputy 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user deputy --env DEEPINFRA_API_KEY=your-value --env XAI_API_KEY=your-value --env DEPUTY_API_KEY=your-value -- uvx deputy-cc serve按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Claude Code 中输入 /mcp
应能看到 Deputy 在列表中并显示已连接
试一试
用 Deputy 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Deputy,或回答中出现 Deputy 的工具名称,就表示连接成功
6 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
DEPUTY_PROVIDERdeepinfra (DeepSeek V4.1 Flash) or xai (Grok, default model grok-4.3). · 默认值 deepinfraDEPUTY_MODEaccuracy: Claude writes all code; Deputy reviews and consults. lean: fewest Claude tokens, little accuracy loss. balanced: Deputy takes mechanical work. partner: Deputy does all low-level work and gi… · 默认值 accuracyDEPUTY_THINKINGHow hard the helper model thinks. · 默认值 highDEPUTY_MODELModel id served by the endpoint. · 默认值 deepseek-ai/DeepSeek-V4.1-Flash-1017DEPUTY_BASE_URLAny OpenAI-compatible endpoint (https, or http on localhost for a local model). · 默认值 https://api.deepinfra.com/v1/openaiDEPUTY_WORKSPACEProject folder Deputy may read and edit. Defaults to the client's project folder.
说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Deputy 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
填写你的密钥
在 Deputy 的设置中,DEEPINFRA_API_KEY, XAI_API_KEY, DEPUTY_API_KEY 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Deputy 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Deputy,或回答中出现 Deputy 的工具名称,就表示连接成功
6 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
DEPUTY_PROVIDERdeepinfra (DeepSeek V4.1 Flash) or xai (Grok, default model grok-4.3). · 默认值 deepinfraDEPUTY_MODEaccuracy: Claude writes all code; Deputy reviews and consults. lean: fewest Claude tokens, little accuracy loss. balanced: Deputy takes mechanical work. partner: Deputy does all low-level work and gi… · 默认值 accuracyDEPUTY_THINKINGHow hard the helper model thinks. · 默认值 highDEPUTY_MODELModel id served by the endpoint. · 默认值 deepseek-ai/DeepSeek-V4.1-Flash-1017DEPUTY_BASE_URLAny OpenAI-compatible endpoint (https, or http on localhost for a local model). · 默认值 https://api.deepinfra.com/v1/openaiDEPUTY_WORKSPACEProject folder Deputy may read and edit. Defaults to the client's project folder.
说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Deputy 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
填写你的密钥
在 Deputy 的设置中,DEEPINFRA_API_KEY, XAI_API_KEY, DEPUTY_API_KEY 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Deputy 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Deputy,或回答中出现 Deputy 的工具名称,就表示连接成功
6 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
DEPUTY_PROVIDERdeepinfra (DeepSeek V4.1 Flash) or xai (Grok, default model grok-4.3). · 默认值 deepinfraDEPUTY_MODEaccuracy: Claude writes all code; Deputy reviews and consults. lean: fewest Claude tokens, little accuracy loss. balanced: Deputy takes mechanical work. partner: Deputy does all low-level work and gi… · 默认值 accuracyDEPUTY_THINKINGHow hard the helper model thinks. · 默认值 highDEPUTY_MODELModel id served by the endpoint. · 默认值 deepseek-ai/DeepSeek-V4.1-Flash-1017DEPUTY_BASE_URLAny OpenAI-compatible endpoint (https, or http on localhost for a local model). · 默认值 https://api.deepinfra.com/v1/openaiDEPUTY_WORKSPACEProject folder Deputy may read and edit. Defaults to the client's project folder.
说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user deputy --env DEEPINFRA_API_KEY=your-value --env XAI_API_KEY=your-value --env DEPUTY_API_KEY=your-value -- uvx deputy-cc serveClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"deputy": {
"command": "uvx",
"args": [
"deputy-cc",
"serve"
],
"env": {
"DEEPINFRA_API_KEY": "your-value",
"XAI_API_KEY": "your-value",
"DEPUTY_API_KEY": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"deputy": {
"command": "uvx",
"args": [
"deputy-cc",
"serve"
],
"env": {
"DEEPINFRA_API_KEY": "your-value",
"XAI_API_KEY": "your-value",
"DEPUTY_API_KEY": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"deputy": {
"type": "stdio",
"command": "uvx",
"args": [
"deputy-cc",
"serve"
],
"env": {
"DEEPINFRA_API_KEY": "your-value",
"XAI_API_KEY": "your-value",
"DEPUTY_API_KEY": "your-value"
}
}
}
}需要你填写的值
DEPUTY_PROVIDERenvdeepinfra (DeepSeek V4.1 Flash) or xai (Grok, default model grok-4.3).DEEPINFRA_API_KEY机密 必填 envDeepInfra API key (deepinfra.com, Dashboard > API Keys), for the default provider. Only sent to api.deepinfra.com.XAI_API_KEY机密 必填 envxAI API key (console.x.ai), when DEPUTY_PROVIDER is xai. Only sent to api.x.ai.DEPUTY_MODEenvaccuracy: Claude writes all code; Deputy reviews and consults. lean: fewest Claude tokens, little accuracy loss. balanced: Deputy takes mechanical work. partner: Deputy does all low-level work and gi…DEPUTY_THINKINGenvHow hard the helper model thinks.DEPUTY_MODELenvModel id served by the endpoint.DEPUTY_BASE_URLenvAny OpenAI-compatible endpoint (https, or http on localhost for a local model).DEPUTY_WORKSPACEenvProject folder Deputy may read and edit. Defaults to the client's project folder.DEPUTY_API_KEY机密 必填 envAPI key for a non-DeepInfra endpoint. Takes precedence over DEEPINFRA_API_KEY.
说明仍为英文原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月14日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 alimohammadiamirhossein 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于18天前
- ✓ 通过
有许可证
使用 MIT
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5872 个服务器的 77%
- 发布到注册中心的时间比此分类中其他 5872 个服务器的 60% 更新
- 基础检查结果等于或优于此分类中其他 5872 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Deputy 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:DEEPINFRA_API_KEY, XAI_API_KEY, DEPUTY_API_KEY
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于18天前,最新版本(0.3.1)于18天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同类别的其他选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Deputy
Deputize cheap models. Claude stays the sheriff.
Deputy is a Claude Code plugin and MCP server that has a cheap model, DeepSeek V4.1 Flash, review Claude's code for bugs and give second opinions, for under a cent each. Claude keeps writing the code.
A replay of one benchmark case. Deputy's findings, time and cost, the repro and the test run are real.
claude plugin marketplace add alimohammadiamirhossein/deputy
claude plugin install deputy@deputy
Inside Claude Code the same thing is /plugin marketplace add alimohammadiamirhossein/deputy. You need uv and a DeepInfra API key.
What it costs (measured)
| Run | Time | Cost |
|---|---|---|
review: two reviewers check a change with a planted off-by-one bug (both caught it) | 27 s | $0.0011 |
consult: second opinions from 2 angles | 68 s | $0.0018 |
investigate: list a project's functions and their tests | 18 s | $0.0004 |
delegate: fix a bug, add 3 tests, run pytest until green | 46 s | $0.0006 |
Measured on a small demo project with thinking high. Reviews and second opinions now think at low by default, which makes them faster and cheaper (see the review benchmark below). On real projects, expect consult and review to stay under $0.01. Every result shows its real tokens and cost.
Benchmark: Opus with and without Deputy
Four small Python tasks with hidden tests Claude never sees (bench/), one run each on Claude Opus 5.5, October 2026. These runs predate the faster reviews: reviewers then thought at high with no time limit, and the prompt asked Claude to review every task.
| Config | Hidden tests passed | Mean cost (Claude + Deputy) | Median time |
|---|---|---|---|
| Opus alone | 4/4 | $0.18 | 30 s |
Opus + /deputy:review | 4/4 | $0.31 ($0.30 + $0.013) | 3.7 min |
Opus + /deputy:delegate | 4/4 | $0.19 ($0.19 + $0.0015) | 76 s |
What this shows, and what it doesn't:
- No accuracy gain to measure here. The tasks are too easy: Opus passed every hidden test on its own.
- Reviews cost Claude more than they cost Deputy. Deputy's share is about a cent, but Claude spends more checking the findings, so a reviewed task cost 68% more and took longer. One review took 24 minutes because a reviewer thought for 73k tokens. Reviewers now think at
lowand stop after 180 s, and Claude reviews only risky or large changes. - The findings still changed the code. In 3 of 4 tasks Claude hardened the code beyond the spec: it fixed a rate limiter that a NaN timestamp would block forever, and added missing tests. It rejected one finding that contradicted the spec.
- Delegating saved nothing on tasks this small. Claude's own reading and checking cost about as much as writing the code itself.
- Small sample. One run per config. Full table: bench/results/2026-10-24-opus.
Does review catch bugs, and how often does it cry wolf?
Deputy's review on its own, without Claude, on 6 changes with a planted bug and 8 clean changes. Each planted bug has a clean twin, the same change done right. Five runs each with the default settings (bench/review_cases):
| Diffs | Reviews | Flagged | Flagged major or critical | Mean cost | Median time | Slowest |
|---|---|---|---|---|---|---|
| Planted bug | 30 | 30/30 caught | 30/30 | $0.0016 | 28 s | 59 s |
| Clean | 40 | 22/40 | 10/40 | $0.0039 | 80 s | 230 s |
- Every planted bug was caught, at major or critical severity, by both reviewers every time.
- Reviews are quick. Reviewers think at
lowand stop after 180 s. Withhighthinking and no cap they caught the same bugs, but the median clean review took 160 s and the slowest 23 minutes. - Clean code still draws findings, so Claude has to check each one. Most are minor (36 of 50), but a quarter of clean reviews included a major claim.
- Many of those findings are fair, such as a test that can't fail, an entry point no test covers, or a cache key wider than the change assumed.
- The benchmark already fixed one cause of false alarms. In the first run, reviewers read new files labelled "(untracked)" as left out of the change. Deputy now shows them as
git diffdoes, and those findings went from 6 to 0. - Agreement is weak evidence on clean code. Both reviewers flagged the same spot on 20% of clean diffs, so a finding isn't real just because two reviewers report it.
- Every finding on a clean diff is listed in the results: default settings,
highthinking, no cap, first run.
What it does
Claude (for example Opus 5.5) stays in charge and writes the code. Deputy adds four tools that run a much cheaper model as a helper inside your project:
| Tool | What it does |
|---|---|
| `review` | Independent reviewers hunt for bugs in a risky or large change before Claude calls it done |
| `consult` | Second opinions from 2–4 angles at once, before Claude commits to a plan |
| `investigate` | Reads lots of code and returns file:line leads |
| `delegate` | Hands a coding task to the cheap model (off by default; on request, or in savings mode) |
| `stats` | Shows roughly how many tokens and dollars Deputy saved: this session, today, this week, all time |
Claude treats everything Deputy says as an unverified hint: it checks each finding against the code and keeps only what holds up.
See what you saved
Every result ends with a one-line estimate, for example from a real investigate run:
Savings (rough): this work would cost about $0.0082 on Claude Opus 5.5; Deputy did it for $0.0001. Saved about $0.0074 and 2.0k Claude Opus 5.5 tokens.
Ask Claude for stats, or run deputy stats, for totals. Reviews and second opinions are listed separately as extra checks, so they never inflate the savings. The estimate assumes your lead model would use about as many tokens, so treat it as an order of magnitude. Only numbers are stored, never code or prompts. Set your lead model with DEPUTY_LEAD_MODEL (opus, sonnet, haiku, fable or custom).
When to use Deputy, and when not to
Use it for:
- Risky or large changes, where a missed bug costs more than a minute of waiting: tricky logic, security, data handling, concurrency, refactors that touch several files.
- A second opinion before Claude commits to a design, without spending Claude tokens on it.
- Wide reading in a big codebase, such as "where is this setting read?".
- Well-specified mechanical work (boilerplate, renames, test scaffolding) in
lean,balanced,partnerorsavingsmode, when you want to save Claude tokens on larger jobs. On small tasks it saved nothing in the benchmark.
Skip it for:
- Routine changes whose tests pass, and trivial edits like typos and one-liners. A review makes you wait and adds little there.
- Code you may not share with a third party. Deputy sends code to DeepInfra, or to whatever endpoint you set in
DEPUTY_BASE_URL(a local model works too). - Final answers. Findings come from a weaker model and include false positives, which is why Claude verifies every one.
- Architecture and security-sensitive decisions in
savingsmode. Keep those with Claude.
Quick start
1. Get a DeepInfra API key (DeepInfra hosts DeepSeek's models in the US)
- Sign up at [deepinfra.com](https://deepinfra.com/) with GitHub, Google or email.
- In Dashboard → Billing, add a card and $5–10 of credit, then set a spending limit equal to that amount.
- In API Keys, create a key (it starts with
sk-di-) and copy it. Keep it private.
You don't need a plan, a model purchase or a dedicated GPU. Pay-as-you-go credit is enough.
2. Install uv and the plugin
claude plugin marketplace add alimohammadiamirhossein/deputy
claude plugin install deputy@deputy
Claude Code asks for your DeepInfra key and stores it in your system's secure storage.
3. Restart Claude Code and try it
/deputy:review
/deputy:consult I plan to cache sessions in Redis. What am I missing? /deputy:investigate how does a request reach the database? /deputy:ds add input validation to the signup form, with tests
Or just work normally: Claude calls Deputy on its own when it pays off, and skips reviews on routine changes whose tests pass.
Cursor and Codex
One command adds Deputy to the editor's MCP config (with a backup of the old file) and installs the playbook as a Cursor rule or Codex skill:
uvx --from git+https://github.com/alimohammadiamirhossein/deputy deputy setup cursor --project .
uvx --from git+https://github.com/alimohammadiamirhossein/deputy deputy setup codex
Set DEEPINFRA_API_KEY in your environment first, then restart the editor. Add --dry-run to see the changes without writing them. Ready-made files are in integrations/.
Grok instead of DeepSeek (experimental, not tested yet): Grok support follows xAI's documentation but has not been run with a real xAI key. If you try it, please tell us what worked and what didn't, even if it was just a one-word "works". Add --provider xai and set XAI_API_KEY (from console.x.ai) instead. Deputy then uses grok-4.3; set DEPUTY_MODEL to grok-build-0.1 (xAI's coding model) or grok-4.7 (its strongest). Grok costs about 10 times more per token than DeepSeek V4.1 Flash.
uvx --from git+https://github.com/alimohammadiamirhossein/deputy deputy setup cursor --project . --provider xai
Other MCP clients (Cline, Windsurf, Claude Desktop)
Deputy is on PyPI as deputy-cc. Add a stdio MCP server that runs:
uvx deputy-cc serve
with DEEPINFRA_API_KEY set in its environment. Check your setup with uvx deputy-cc doctor.