[UNTESTED] [fire3san/codex-openai-proxy] 2 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,168 characters
Status: [UNTESTED]
Endpoints found:
http://localhost:8080/v1/chat/completions
http://localhost:8080/v1/models
Source: https://github.com/fire3san/codex-openai-proxy
# codex-openai-proxy
**Expose ChatGPT Codex as an OpenAI-compatible API endpoint.**
Self-hosted Python proxy for Cursor, Cline, Open WebUI, and any OpenAI-compatible client. v0.4.0 adds a **backend API transport** (same approach as [codexProapi](https://github.com/arinexa/codexProapi)) plus a web admin console, multi-account round-robin, and OAuth login.
## How It Works
**Default (`TRANSPORT_MODE=backend`)** — direct ChatGPT API (fast, no subprocess):
```
Client (Cursor/Cline)
│ POST /v1/chat/completions
▼
┌─────────────────────────┐
│ codex-openai-proxy │ ← admin UI at /
│ Round-robin accounts │
└────────┬────────────────┘
│ HTTPS + OAuth token
▼
chatgpt.com/backend-api/codex/responses
```
**Fallback (`TRANSPORT_MODE=subprocess`)** — spawns `codex exec --json` per request (useful when you need local sandbox/file tools).
| Feature | codexProapi (Node) | codex-openai-proxy (Python) |
|---------|-------------------|----------------------------|
| Backend API transport | Yes | Yes (default) |
| Multi-account round-robin | Yes | Yes |
| Web admin UI | Yes | Yes (`/`) |
| OAuth account login | Yes | Yes (`/auth/login`) |
| Usage tracking | Yes | Yes |
| Docker / LXC deploy | Manual | Docker Compose included |
| Subprocess CLI fallback | No | Yes |
| Electron desktop app | Yes | No (browser admin only) |
---
## Deploy on Proxmox VE (LXC + Docker)
This is the recommended homelab setup: a small **LXC container** on Proxmox acts as a dedicated Docker host, and the proxy runs inside **Docker Compose**.
### Why LXC, and why Docker inside it?
| Layer | Role |
|-------|------|
| **Proxmox LXC** | Lightweight, isolated Linux instance on your LAN (easy backup, firewall, static IP). |
| **Docker in LXC** | Runs the proxy with pinned dependencies, `docker-compose.yml`, volume mounts, and resource l