Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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:

uv run scripts/list_models.py

Test responses:

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.

About

A small local proxy that lets you use your Codex Pro Plan in places that normally expect an API key.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages