OpenCodexProxy is a small local proxy that lets you use your Codex Pro / ChatGPT auth session in places that normally expect an OpenAI API key.
- You sign in with OAuth once.
- The proxy keeps that session locally.
- Your apps can call
http://localhost:1455/v1/...using any dummy API key (for exampleabc).
Some SDKs and tools are hard-wired to require an API key. This proxy acts as a bridge so those tools can work with your Codex Pro auth flow instead.
docker compose up --buildThen open:
http://localhost:1455/oauth/login
Complete login in your browser.
After that, point your SDK/tool to:
- Base URL:
http://localhost:1455/v1 - API key: any placeholder string (example:
abc)
List models:
uv run scripts/list_models.pyTest responses:
uv run scripts/test_responses.pyYour local auth/session data is saved in data.json so you don’t need to log in every time.
That file is gitignored.
This is a local bridge/proxy for personal use. Treat it like sensitive auth infrastructure and only run it on trusted machines.
Do not resell your plan or use it for commercial use or you will probably be banned by openai.