3,701 prompts from top AI collections
← Back to Market
[LIVE] [MakFly/codex-proxy] 1 endpoint(s)
ChatGPT API Proxy/ChatGPT
2,110 characters
Status: [LIVE] Endpoints found: https://openrouter.ai/api/v1 Source: https://github.com/MakFly/codex-proxy # codex-proxy A small local proxy that speaks Codex’s **Responses API** and translates it to the LLM you actually want — OpenRouter, Anthropic, xAI, Ollama, DeepSeek, or any OpenAI-compatible `/v1/chat/completions` endpoint. Built for **Codex Desktop on Windows**. It also works with the Codex CLI on Windows, macOS, and Linux. Same `config.toml`, same catalog. This is not a fork of Codex and not a kitchen-sink dashboard. On start it: 1. Listens on `127.0.0.1:18789` 2. Writes a model catalog Codex’s picker can read 3. Points Codex at the proxy with a reversible `openai_base_url` block `codex-proxy stop` removes that block. Native Codex comes back. ## Why a proxy Codex Desktop always talks the OpenAI **Responses** wire (`POST /v1/responses`, SSE). Most other providers speak Chat Completions or Anthropic Messages. The proxy sits in the middle, including streaming, function tools, and Codex’s `apply_patch` custom tool. ```text Codex Desktop --Responses SSE--> codex-proxy --Chat Completions / Anthropic / Responses--> the LLM ^ | | +-- catalog.json (models in the picker) +-- %USERPROFILE%\.codex\config.toml ``` On loopback it hijacks the built-in `openai` provider (`openai_base_url`). That is what Codex Desktop uses when you are logged in with ChatGPT. Incoming ChatGPT bearer tokens are ignored; upstream calls use the API keys in `config.json`. ## Requirements - [Bun](https://bun.sh/) 1.1+ - Codex Desktop and/or the Codex CLI - An API key for each provider you add (Ollama needs none) Windows (PowerShell): ```powershell irm bun.sh/install.ps1 | iex ``` ## Quick start (Codex Desktop on Windows) ```powershell cd path\to\codex-proxy bun install bun run src/cli.ts init ``` Edit `%USERPROFILE%\.codex-proxy\config.json`. Keep the models you want, delete the rest. Set keys as user environment variables so they survive a new terminal: ```powershell setx OPENROUTER_API_KEY
Download .txt