An open API service indexing awesome lists of open source software.

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.

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.