OpenAI-compatible proxy for the Codex (ChatGPT subscription) Responses API
// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
- 5 releases in the last 90 days
// how to help
// readme
codex-proxy
OpenAI-compatible proxy for the Codex (ChatGPT subscription) Responses API.
Point any OpenAI client at it; it forwards requests to chatgpt.com using the
credentials from codex login, refreshing the token as needed. Rust, single
binary, no database. Request format and TLS fingerprint match the official
Codex client.
What a running instance gives you:
http://<host>:8787/v1β an OpenAI-compatible endpoint (chat completions + raw Responses passthrough), guarded by your own client API keys.http://127.0.0.1:9090/metricsβ Prometheus counters, on a separate port so it stays private even when the API is public.- A data directory holding
auth.jsonβ the ChatGPT credentials and the rotated refresh token. Keep it; itβs the only stateful thing here. - A ~3 MiB resident footprint. Measured on the container over a week of production traffic: 2.9 MiB min, 3.2 MiB mean, 6.1 MiB peak. Itβs a static musl binary β no interpreter, no GC, no database behind it β so it fits on the smallest instance any host will sell you.
Quick start (Docker)
Needs ~/.codex/auth.json from codex login (the official CLI), once.