codex-octopus

v1.0.1
io.github.xiaolai/codex-octopus Checked 4 days ago Published 8 months ago

Spawn multiple specialized Codex agents as MCP servers, each independently configured.

Values you need

VariableWhat it is
CODEX_API_KEYoptional secret OpenAI API key (leave unset to inherit from parent process)
CODEX_TOOL_NAMEoptional Tool name prefix (default: codex)
CODEX_MODELoptional Model: gpt-5-codex, o3, codex-1, or full ID
CODEX_SANDBOX_MODEoptional Sandbox: read-only, workspace-write, danger-full-access
CODEX_APPROVAL_POLICYoptional Approval: never, on-failure, on-request, untrusted
CODEX_APPEND_INSTRUCTIONSoptional Additional instructions appended to the default
CODEX_FACTORY_ONLYoptional Set to true to expose only the factory wizard tool

npm (npx) discovery passed

Requires Node.js 18+

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

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, codex_reply.
  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