Skip to content
VS Code

codex octopus for VS Code

io.github.xiaolai/codex-octopus

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

client:VS Code transport:stdio runtime:npm

Install codex octopus in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "codex-api-key",
      "description": "CODEX_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "codex-tool-name",
      "description": "CODEX_TOOL_NAME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "codex-model",
      "description": "CODEX_MODEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "codex-sandbox-mode",
      "description": "CODEX_SANDBOX_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "codex-approval-policy",
      "description": "CODEX_APPROVAL_POLICY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "codex-append-instructions",
      "description": "CODEX_APPEND_INSTRUCTIONS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "codex-factory-only",
      "description": "CODEX_FACTORY_ONLY",
      "password": true
    }
  ],
  "servers": {
    "codex-octopus": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "codex-octopus"
      ],
      "env": {
        "CODEX_API_KEY": "${input:codex-api-key}",
        "CODEX_TOOL_NAME": "${input:codex-tool-name}",
        "CODEX_MODEL": "${input:codex-model}",
        "CODEX_SANDBOX_MODE": "${input:codex-sandbox-mode}",
        "CODEX_APPROVAL_POLICY": "${input:codex-approval-policy}",
        "CODEX_APPEND_INSTRUCTIONS": "${input:codex-append-instructions}",
        "CODEX_FACTORY_ONLY": "${input:codex-factory-only}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

codex octopus in other clients