Status: [LIVE] Endpoints found: https://chatgpt.com/backend-api/codex/responses https://chatgpt.com/backend-api/codex/usage https://chatgpt.com/backend-api/codex/models Source: https://github.com/10/chatgpt-codex-proxy
# chatgpt-codex-proxy *Talk to ChatGPT Codex accounts using any OpenAI or Anthropic client.* [![Go](https://img.shields.io/badge/Go-1.26+-00ADD8?style=flat&logo=go&logoColor=white)](https://go.dev) [![Docker](https://img.shields.io/badge/Deploy-Compose-2496ED?style=flat&logo=docker&logoColor=white)](https://docs.docker.com/compose/) [![API](https://img.shields.io/badge/API-OpenAI%20%2B%20Anthropic-412991?style=flat&logo=openai&logoColor=white)]() [![License](https://img.shields.io/badge/License-MIT-yellow?style=flat)](LICENSE)
https://github.com/user-attachments/assets/5959620e-4001-4211-8c6b-294ac4548ae8 --- ```bash cp .env.example .env # set PROXY_API_KEY docker compose up -d --build # or: go run ./cmd/api ``` Exposes OpenAI and Anthropic endpoints, translates each request into the private `chatgpt.com/backend-api/codex/*` format, and routes it across your logged-in Codex accounts. The upstream API is private and undocumented, so it can change without notice. Built for local and small-scale use. ## Features - **Two API surfaces, one backend** — OpenAI Chat Completions, Responses, and Images plus Anthropic Messages. - **Streaming everywhere** — SSE, a persistent WebSocket for Responses, or plain JSON. - **Multi-account rotation** — least-used, round-robin, or sticky, with cooldowns and quota awareness. - **Device login** — add an account by opening a URL. No cookie scraping, no pasted tokens. - **Tools and structured output** — custom tools, legacy `functions`, `json_schema`, `json_object`. ## Quick Start Needs Docker or Go `1.26.11`+ (or `1.27.4`+ on Go 1.27), and a long random `PROXY_API_KEY`. ```bash export PROXY_URL=http://localhost:8080 export PROXY_API_KEY=change-me-to-a-long-random-string ``` Add an account — start a device login, open the returned `auth_url`, then poll until `status` is `ready`: ```bash curl -sS -X POST "${PROXY_URL}/admin/accounts/device-login/start" \ -H "Authorization: B