# Codex Delegate

> Codex Delegate is an open-source MCP server for developer tools. Hand coding tasks from Claude Code or Cursor to the OpenAI Codex CLI and review the diff. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, vscode, jetbrains, macOS, Linux, Windows
- **Repository:** https://github.com/andreilungeanu/codex-delegate-mcp
- **MCP Registry name:** io.github.andreilungeanu/codex-delegate-mcp
- **Categories:** developer tools, AI models and LLM tooling
- **Listing updated:** 2026-11-15

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
claude mcp add codex-delegate-mcp -- npx -y codex-delegate-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "codex-delegate-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "codex-delegate-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "codex-delegate-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "codex-delegate-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "codex-delegate-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "codex-delegate-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "codex-delegate-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "codex-delegate-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "codex-delegate-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "codex-delegate-mcp"
      ]
    }
  }
}
```

## Tools

- `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.

## 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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/codex-delegate
