Status: [LIVE] Endpoints found: https://chatgpt.com/backend-api/codex/responses` Source: https://github.com/sgeraldes/claude2openai
Claude Code on OpenAI's Codex models — through your existing ChatGPT subscription. No API key needed.
Commands • Install • Model tiers • Auth • Troubleshooting
> **Part of [claude2all](https://github.com/sgeraldes/claude2all)** — one isolated Claude Code launcher per backend: Kimi K3, AWS Bedrock, OpenAI (this project), Kiro, and multiple claude.ai accounts. Run Anthropic-API clients — primarily Claude Code — against OpenAI Codex models using your existing **ChatGPT OAuth session from the Codex CLI**. No OpenAI API key needed. `claude2openai` is a localhost proxy that speaks the Anthropic Messages API on the client side (`POST /v1/messages`, SSE streaming, tool use) and the OpenAI Responses API on the upstream side (`POST https://chatgpt.com/backend-api/codex/responses`), authenticating with the OAuth tokens the Codex CLI already stores at `~/.codex/auth.json`. > **Naming note:** this tool is `claude2openai`, but the Codex CLI's own files > keep their names — OAuth tokens are read from **`~/.codex/auth.json`** and the > recovery command really is **`codex login`**. Only claude2openai's own files > (binary, wrappers, `~/.claude2openai/`, `~/.claude-profiles/openai/`) use the > new name. ## Commands ``` claude2openai server [port] Run the proxy (default port 3457). Writes the port to ~/.claude2openai/proxy.port. GET /health returns 200 OK. claude2openai run [args...] Start the proxy (or attach to a running one via proxy.port + /health), then launch `claude` with ANTHROPIC_BASE_URL=http: