L'Agora
MCPLocal

io.github.xiaolai/codex-octopus

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

Repository
github.com/xiaolai/codex-octopus
Version
1.0.1
Author
xiaolai (namespace verified by the registry)
Source
Official MCP registry (updated Apr 2, 2026)

How to install it

Variables to fill in: CODEX_API_KEY, CODEX_TOOL_NAME, CODEX_MODEL, CODEX_SANDBOX_MODE, CODEX_APPROVAL_POLICY, CODEX_APPEND_INSTRUCTIONS, CODEX_FACTORY_ONLY.

On your machine

Claude Code

The server runs on your machine (npm package). In a terminal:

claude mcp add codex-octopus -e CODEX_API_KEY=YOUR_CODEX_API_KEY -e CODEX_TOOL_NAME=YOUR_CODEX_TOOL_NAME -e CODEX_MODEL=YOUR_CODEX_MODEL -e CODEX_SANDBOX_MODE=YOUR_CODEX_SANDBOX_MODE -e CODEX_APPROVAL_POLICY=YOUR_CODEX_APPROVAL_POLICY -e CODEX_APPEND_INSTRUCTIONS=YOUR_CODEX_APPEND_INSTRUCTIONS -e CODEX_FACTORY_ONLY=YOUR_CODEX_FACTORY_ONLY -- npx -y [email protected]
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "codex-octopus": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "CODEX_API_KEY": "YOUR_CODEX_API_KEY",
        "CODEX_TOOL_NAME": "YOUR_CODEX_TOOL_NAME",
        "CODEX_MODEL": "YOUR_CODEX_MODEL",
        "CODEX_SANDBOX_MODE": "YOUR_CODEX_SANDBOX_MODE",
        "CODEX_APPROVAL_POLICY": "YOUR_CODEX_APPROVAL_POLICY",
        "CODEX_APPEND_INSTRUCTIONS": "YOUR_CODEX_APPEND_INSTRUCTIONS",
        "CODEX_FACTORY_ONLY": "YOUR_CODEX_FACTORY_ONLY"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "codex-octopus": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "CODEX_API_KEY": "YOUR_CODEX_API_KEY",
        "CODEX_TOOL_NAME": "YOUR_CODEX_TOOL_NAME",
        "CODEX_MODEL": "YOUR_CODEX_MODEL",
        "CODEX_SANDBOX_MODE": "YOUR_CODEX_SANDBOX_MODE",
        "CODEX_APPROVAL_POLICY": "YOUR_CODEX_APPROVAL_POLICY",
        "CODEX_APPEND_INSTRUCTIONS": "YOUR_CODEX_APPEND_INSTRUCTIONS",
        "CODEX_FACTORY_ONLY": "YOUR_CODEX_FACTORY_ONLY"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "codex-octopus": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "CODEX_API_KEY": "YOUR_CODEX_API_KEY",
        "CODEX_TOOL_NAME": "YOUR_CODEX_TOOL_NAME",
        "CODEX_MODEL": "YOUR_CODEX_MODEL",
        "CODEX_SANDBOX_MODE": "YOUR_CODEX_SANDBOX_MODE",
        "CODEX_APPROVAL_POLICY": "YOUR_CODEX_APPROVAL_POLICY",
        "CODEX_APPEND_INSTRUCTIONS": "YOUR_CODEX_APPEND_INSTRUCTIONS",
        "CODEX_FACTORY_ONLY": "YOUR_CODEX_FACTORY_ONLY"
      }
    }
  }
}
ChatGPT

ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.

These configurations are built from the information published by the author. Check the repository before installing a local server.

Our test

This server runs on your machine: we cannot test it remotely.

Reviews

No review yet.

Sign in to leave a review. Your email is all you need.

Comments

No comment yet. A question, a tip? Start the discussion.

Sign in to comment.

Is this your project? Sign in to claim this entry.

Badge for your README

io.github.xiaolai/codex-octopus on L’Agora

Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.

Markdown (GitHub)

[![io.github.xiaolai/codex-octopus on L’Agora](https://lagora.dev/badge/io.github.xiaolai/codex-octopus.svg?lang=en)](https://lagora.dev/en/entry/io.github.xiaolai/codex-octopus)

HTML

<a href="https://lagora.dev/en/entry/io.github.xiaolai/codex-octopus"><img src="https://lagora.dev/badge/io.github.xiaolai/codex-octopus.svg?lang=en" alt="io.github.xiaolai/codex-octopus on L’Agora" height="20"></a>

Promote

For the entry’s author only: sign in to continue.

By the same author

io.github.xiaolai/claude-octopus Local

Report this entry