Skip to content
VS Code

ask codex for VS Code

io.github.lykhoyda/ask-codex

Bridge Claude with OpenAI Codex CLI for AI-to-AI collaboration, code review, and second opinions

client:VS Code transport:stdio runtime:npm

Install ask codex in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "gmcpt-timeout-ms",
      "description": "GMCPT_TIMEOUT_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gmcpt-log-level",
      "description": "GMCPT_LOG_LEVEL",
      "password": true
    }
  ],
  "servers": {
    "ask-codex": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ask-llm/codex-mcp"
      ],
      "env": {
        "GMCPT_TIMEOUT_MS": "${input:gmcpt-timeout-ms}",
        "GMCPT_LOG_LEVEL": "${input:gmcpt-log-level}"
      }
    }
  }
}

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

ask codex in other clients