Codex Delegate
v3.3.0Bring OpenAI Codex into your agent's council for second opinions, plans, edits and code review.
Codex Delegate is the MCP bridge to the OpenAI Codex CLI. From Claude Code, Cursor, Copilot or any MCP client, your agent can ask Codex for a second opinion, put one question to several models at once, or hand Codex a plan, a fix or a review, and get a structured result back from each call. Codex reads the repo and answers in ask mode, and your agent sets that answer beside its own. You see where the two disagree before you choose a direction. Ask several at once, and your agent sends each the same brief in parallel, compares the answers, and checks the claims that matter:
Summary extracted from the README.
Codex Delegate
Turn your coding agent into a council. Bring GPT-6.2 Sol and Astra into the conversation, then hand them the work.
Codex Delegate is the MCP bridge to the OpenAI Codex CLI. From Claude Code, Cursor, Copilot or any MCP client, your agent can ask Codex for a second opinion, put one question to several models at once, or hand Codex a plan, a fix or a review, and get a structured result back from each call.

π§ Get a second opinion
Ask Codex what it thinks about moving the session store to SQLite.
Codex reads the repo and answers in ask mode, and your agent sets that answer beside its own. You see where the two disagree before you choose a direction.
Ask several at once, and your agent sends each the same brief in parallel, compares the answers, and checks the claims that matter:
Ask gpt-6.2-sol and gpt-6-luna whether we should split this service, and tell me where they disagree.
With Cursor Delegate or Antigravity Delegate installed too, the same prompt reaches Grok, Composer or Gemini.
π οΈ Hand off the work
Use Codex to migrate src/api from callbacks to async/await and update the tests. Plan it first.
Your agent writes the brief, Codex edits the files, and your agent reads the diff and runs the tests before it reports back.
- π Plan, approve, build β
planreturns schema-validated steps; once you approve, the same thread implements them. - π Native review β
reviewruns Codex's own reviewer over uncommitted work, a base branch, or a single commit. - π§΅ Resume β follow up on the same thread with
resumeThreadId.resumed: falsetells you the context did not carry over.

Features
- π¦ One result you can review β a compact JSON block: the final answer,
status, the files Codex's edit tools reported changing, cumulative thread token counts, and thethreadIdto continue from. Fields that carry no signal are omitted. - β³ Runs in the background, with MCP Tasks β
delegateserves the MCP Tasks extension (io.modelcontextprotocol/tasks), so a host that speaks it gets a task back once Codex starts its thread and the result when Codex finishes. In the main session of the interactive Claude Code CLI, you keep working and the result arrives as a task notification; calls from subagents wait for the result. - π§βπ€βπ§ Run several, cancel cleanly β the same question across models, or independent workers on independent directories.
cancelwaits for the exit and warns when it cannot confirm one. - π Runs on Codex's own account β delegated work uses whatever the Codex CLI is signed in with, plan or API key, separate from your host's chat quota.
- π€ One-command install β Claude Code, Google Antigravity, GitHub Copilot CLI, Cursor and VS Code take it as a plugin, with a skill that teaches your agent to write the brief and review the result. JetBrains, Devin Desktop (Windsurf), Visual Studio and the rest add the stdio server in settings.
- π©Ί
doctorβ tells you exactly what's missing if setup isn't right.

Your agent and its peers
Each plugin works on its own, and they are built to work together. Install the ones your subscriptions cover, and the agent you already use can bring Gemini 4 Neon, Carbon or Hydrogen, GPT-6.2 Sol or Astra, and Grok 4.7 or Composer 2.5 into the same conversation as peers. One question goes to all of them in parallel, and your agent sets their answers beside its own.
Ask Gemini Neon, Codex Sol and Grok 4.7 how they would restructure the auth module, then tell me where they agree.

- Codex Delegate (this one) β the OpenAI Codex CLI: GPT-6.2 Sol, GPT-6.2 Astra and the other Codex models
- Cursor Delegate β Cursor's CLI agent: Grok 4.7, Composer 2.5
- Antigravity Delegate β Google Antigravity's CLI: Gemini 4 Neon, Carbon and Hydrogen
Model names are examples; each CLI offers what your account includes.
Install
You need Node.js 20+ and the OpenAI Codex CLI, already logged in (codex login).
Claude Code
/plugin marketplace add andreilungeanu/codex-delegate-mcp
/plugin install codex-delegate@codex-delegate-mcp
Then just ask:
Delegate to Codex: migrate src/api from callbacks to async/await and update the tests, then walk me through what changed.
That's the whole loop β Claude writes the brief, Codex grinds through the files, Claude walks you through the diff.
Cursor
Or add it under Customize β MCPs in the sidebar, or in ~/.cursor/mcp.json (every project) or .cursor/mcp.json (this project):
{
"mcpServers": {
"codex-delegate": {
"command": "npx",
"args": ["-y", "codex-delegate-mcp"]
}
}
}
Then ask Cursor to delegate implementation to Codex the same way.
Google Antigravity
agy plugin install https://github.com/andreilungeanu/codex-delegate-mcp
Restart the Antigravity app to load it. If you added codex-delegate to mcp_config.json by hand, remove that entry.
Without the CLI, use the manual config under More clients.
GitHub Copilot CLI
copilot plugin marketplace add andreilungeanu/codex-delegate-mcp
copilot plugin install codex-delegate@codex-delegate-mcp
The server alone, without the skill: copilot mcp add codex-delegate -- npx -y codex-delegate-mcp.
More clients
{
"servers": {
"codex-delegate": {
"type": "stdio",
"command": "npx",
"args": ["-y", "codex-delegate-mcp"]
}
}
}
Or run Chat: Install Plugin From Source with this repository's URL (needs the chat.plugins.enabled setting).
Under Settings β Tools β AI Assistant β Model Context Protocol (MCP), click Add and paste this JSON:
{
"mcpServers": {
"codex-delegate": {
"command": "npx",
"args": ["-y", "codex-delegate-mcp"]
}
}
}
This config is for Devin Local, the default agent (Local 3.6+). On Windows the file is %APPDATA%\devin\mcp_config.json. Legacy Cascade and older Windsurf builds read ~/.codeium/windsurf/mcp_config.json.
{
"mcpServers": {
"codex-delegate": {
"command": "npx",
"args": ["-y", "codex-delegate-mcp"]
}
}
}
Heads-up: Devin Desktop's Cascade agent caps you at 100 tools across all servers.
{
"servers": {
"codex-delegate": {
"type": "stdio",
"command": "npx",
"args": ["-y", "codex-delegate-mcp"]
}
}
}
Visual Studio 2022 needs 17.14+. Note the top-level key is servers, not mcpServers. A .mcp.json in the solution directory scopes it to that solution.
OpenCode does not use mcpServers. Local servers go under mcp, with type: "local" and command as one array:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"codex-delegate": {
"type": "local",
"command": ["npx", "-y", "codex-delegate-mcp"],
"enabled": true
}
}
}
This is the v1 shape, which OpenCode v2 still reads (v2's native form is mcp.servers).
{
"mcpServers": {
"codex-delegate": {
"command": "npx",
"args": ["-y", "codex-delegate-mcp"],
"timeoutSeconds": 21660
}
}
}
Same shape as OpenCode: type: "local" and command as one array.
{
"mcp": {
"codex-delegate": {
"type": "local",
"command": ["npx", "-y", "codex-delegate-mcp"],
"enabled": true
}
}
}
In the VS Code extension: Settings β MCP β Add Server β Local (stdio). On Windows, if npx is not found, use command cmd with arguments /c, npx, -y, codex-delegate-mcp.
Kiro and any other MCP client
Add the following server to the client's MCP config β for Kiro, ~/.kiro/settings/mcp.json (user) or .kiro/settings/mcp.json (workspace):
{
"mcpServers": {
"codex-delegate": {
"command": "npx",
"args": ["-y", "codex-delegate-mcp"]
}
}
}
MIT Β© Andrei Lungeanu
Configuration Β· Security Β· Privacy Β· Terms Β· Changelog