
Codex Delegate
Hand coding tasks from Claude Code or Cursor to the OpenAI Codex CLI and review the diff
- Pricing
- Open source
- Platforms
- CLI, vscode, jetbrains
- Runs
- Locally
- Version
- 2.8.0
- Listing updated
- 2 days ago
About Codex Delegate
Codex Delegate is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
The idea is to let your main assistant plan and review while Codex does the bulk edits. Delegated work runs on the Codex CLI and its own usage, separate from the orchestrating client's chat quota, though Codex still bills in its own way. Results return as one compact JSON block with the final answer, status, files Codex reported changing, token counts and a threadId.
A typical loop is plan first, then build on the same thread. A review tool runs Codex's reviewer over uncommitted work, a base branch or a single commit, and a thread can be resumed later; a flag tells you when the context did not carry over. Several workers can run at once on independent directories, with cancel that waits for the process to exit.
It needs Node.js 20 or newer and a Codex CLI that is already logged in. Setup is available as a plugin for Claude Code, Antigravity, Copilot CLI, Cursor and VS Code, or as a plain stdio server elsewhere.
Install
Run in a terminal
claude mcp add codex-delegate-mcp -- npx -y codex-delegate-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"codex-delegate-mcp": {
"command": "npx",
"args": [
"-y",
"codex-delegate-mcp"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"codex-delegate-mcp": {
"command": "npx",
"args": [
"-y",
"codex-delegate-mcp"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"codex-delegate-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"codex-delegate-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"codex-delegate-mcp": {
"command": "npx",
"args": [
"-y",
"codex-delegate-mcp"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"codex-delegate-mcp": {
"command": "npx",
"args": [
"-y",
"codex-delegate-mcp"
]
}
}
}Tools this server provides (6)
Taken from the project documentation; the running server may differ.
- plan
- Returns schema-validated steps for approval.
- agent
- Implements the approved steps in Codex.
- ask
- Answers questions through Codex.
- review
- Runs Codex's reviewer on uncommitted work, a branch or a commit.
- cancel
- Stops a running Codex process and waits for exit.
- doctor
- Reports what is missing in setup.
What it does
- Plan then build
- Schema-validated plan steps you approve, then implementation on the same thread.
- Resumable threads
- Continue a Codex thread with resumeThreadId.
- Built-in review
- Review uncommitted work, a branch or one commit.
- Parallel workers
- Run several delegations and cancel cleanly.
- Setup doctor
- A doctor tool reports what is missing.
- Many clients
- Plugins and configs for Claude Code, Cursor, VS Code, JetBrains and more.
Good for
- Migrate a module from callbacks to async/await while your main agent reviews
- Ask the same question across several Codex models
- Keep a frontier model's limits for planning and review
- Run independent edits in separate directories in parallel
Pricing
Open source
MIT-style badge shown in README; Codex CLI usage billed separately
Codex Delegate FAQ
What do I need installed?
Node.js 20 or newer and the OpenAI Codex CLI, logged in with codex login.
Does it use my Claude or Cursor quota?
Delegated work uses Codex's own usage; your client spends tokens on the brief and review.
Can I continue earlier work?
Yes, pass resumeThreadId; resumed: false means the context did not carry over.
Which clients work?
Claude Code, Cursor, Copilot CLI, Antigravity, VS Code, JetBrains, Visual Studio, OpenCode and others.
Is Codex Delegate free?
Yes. Codex Delegate is open source, so you can use and self-host it for free.
How do I add Codex Delegate to Claude Code?
Run this command in your terminal: claude mcp add codex-delegate-mcp -- npx -y codex-delegate-mcp
What are the best alternatives to Codex Delegate?
The closest alternatives to Codex Delegate are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to Codex Delegate

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools