codex-bridge

v0.3.0
io.github.xallindrome-labs/codex-bridge Checked 4 days ago Published 25 days ago

Claude Code consults Codex for plans, images and optional code, as durable background jobs.

Values you need

VariableWhat it is
CODEX_BINoptional Path to the Codex CLI binary. Auto-detected when unset.
CODEX_BRIDGE_HOMEoptional Where job files are stored. Default: ~/.codex-bridge
CODEX_BRIDGE_IDLE_TIMEOUT_MSoptional Stop a run after this many ms with no Codex output. Default: 600000
CODEX_BRIDGE_PLAN_MODELoptional Model for codex_plan. Default: your Codex config.
CODEX_BRIDGE_PLAN_EFFORToptional Reasoning effort for codex_plan. Default: your Codex config.
CODEX_BRIDGE_IMAGE_MODELoptional Model for codex_image. Default: gpt-6-luna
CODEX_BRIDGE_IMAGE_EFFORToptional Reasoning effort for codex_image. Default: high
CODEX_BRIDGE_WRITE_ROOToptional Opt-in. One folder Codex may edit through the codex_code tool. Unset = codex_code is off.
CODEX_BRIDGE_WRITE_ALLOW_TMPoptional Set to 1 to stop asking Codex to block temp-folder writes in codex_code. Default: unset.
CODEX_BRIDGE_CODE_MODELoptional Model for codex_code. Default: your Codex config.
CODEX_BRIDGE_CODE_EFFORToptional Reasoning effort for codex_code. Default: your Codex config.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add codex-bridge -- npx -y @xallindrome-labs/codex-bridge@0.3.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "codex-bridge": {
      "args": [
        "-y",
        "@xallindrome-labs/codex-bridge@0.3.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "codex-bridge": {
      "args": [
        "-y",
        "@xallindrome-labs/codex-bridge@0.3.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "codex-bridge": {
      "args": [
        "-y",
        "@xallindrome-labs/codex-bridge@0.3.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.codex-bridge]
command = "npx"
args = ["-y", "@xallindrome-labs/codex-bridge@0.3.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: codex_plan, codex_image, codex_result, codex_resume, codex_cancel.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json