3,686 prompts from top AI collections
← Back to Market
[LIVE] [xblanc33/CodexProxy] 2 endpoint(s)
ChatGPT API Proxy/ChatGPT
2,194 characters
Status: [LIVE] Endpoints found: https://api.openai.com/v1/chat/completions https://api.openai.com/v1/chat https://chatgpt.com/backend-api/codex Source: https://github.com/xblanc33/CodexProxy # Codex Proxy — OpenAI-Compatible Logging Proxy (Node/Express) A tiny Node/Express proxy that forwards OpenAI‑compatible API requests while writing rich NDJSON logs for easy analysis. It supports standard JSON and streaming (SSE) responses and is handy for tracing prompts, parameters, and tool/function calls. ## Features - **Reuses your ChatGPT subscription — no API key required.** Point Codex CLI at the proxy and it keeps using whatever auth `codex login` already set up (Plus/Pro/Team), billed exactly like running `codex` directly. The proxy never reads or copies those credentials itself; it just relays the headers Codex CLI already sends. An OpenAI API key is only needed if you explicitly want that instead — see [Option B](#option-b--use-an-openai-api-key). - OpenAI‑compatible proxy to any API base (default `https://api.openai.com`). - Logs every request/response to `logs/requests.ndjson` (one JSON per line). - Streams upstream SSE to the client while also logging the full response once. - Transparently proxies the Responses-over-WebSocket transport too (`ws(s)://.../responses`), for clients like Codex CLI that try it before falling back to plain HTTPS — frames are relayed unchanged, no framing/protocol knowledge required. - Extracts assistant content into a concise `content` field (best‑effort). - Extracts tool/function calls into a `tool_calls` array for human‑readable auditing. - Simple CORS for browser clients; health endpoint at `/health`. ## Requirements - Node.js 18+ recommended. If you use Node <18, the proxy dynamically polyfills `fetch` via `node-fetch@3` (must be installed). ## Quick Start 1) Install dependencies ```bash npm i express dotenv ws # Optional on Node <18 npm i node-fetch@3 ``` 2) Create a `.env` file ```bash cp .env.example .env ``` By default this configures the **ChatGPT account mode**: no API key needed — the proxy relays whatever auth Codex CLI already attaches from your `codex login` session (Plus/Pro/Team)
Download .txt