Skip to content
Grok

codex octopus for Grok

io.github.xiaolai/codex-octopus

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

client:Grok transport:stdio runtime:npm

Install codex octopus in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "codex-octopus": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "codex-octopus"
      ],
      "env": {
        "CODEX_API_KEY": "<CODEX_API_KEY>",
        "CODEX_TOOL_NAME": "<CODEX_TOOL_NAME>",
        "CODEX_MODEL": "<CODEX_MODEL>",
        "CODEX_SANDBOX_MODE": "<CODEX_SANDBOX_MODE>",
        "CODEX_APPROVAL_POLICY": "<CODEX_APPROVAL_POLICY>",
        "CODEX_APPEND_INSTRUCTIONS": "<CODEX_APPEND_INSTRUCTIONS>",
        "CODEX_FACTORY_ONLY": "<CODEX_FACTORY_ONLY>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

codex octopus in other clients