https://github.com/secretiveshell/opencodexproxy
A small local proxy that lets you use your Codex Pro Plan in places that normally expect an API key.
https://github.com/secretiveshell/opencodexproxy
Last synced: about 1 month ago
JSON representation
A small local proxy that lets you use your Codex Pro Plan in places that normally expect an API key.
- Host: GitHub
- URL: https://github.com/secretiveshell/opencodexproxy
- Owner: SecretiveShell
- Created: 2026-03-11T04:42:20.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-06-17T17:54:18.000Z (about 2 months ago)
- Last Synced: 2026-07-03T14:07:12.455Z (about 1 month ago)
- Language: Python
- Size: 71.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenCodexProxy
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 example `abc`).
## Why this exists
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.
## Quick start
```bash
docker compose up --build
```
Then 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`)
## Example scripts
List models:
```bash
uv run scripts/list_models.py
```
Test responses:
```bash
uv run scripts/test_responses.py
```
## What is stored locally
Your local auth/session data is saved in `data.json` so you don’t need to log in every time.
That file is gitignored.
## One important note
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.