{"repo":"Eunho-J/codex-as-api","free":true,"listed":false,"github":"https://github.com/Eunho-J/codex-as-api","clone":"git clone https://github.com/Eunho-J/codex-as-api.git","description":"Local OpenAI & Anthropic compatible API server backed by ChatGPT/Codex OAuth credentials. Python, TypeScript, and Rust.","language":"Rust","stars":26,"topics":["anthropic","chatgpt-api","codex","codex-cli","gpt","llm-provider"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"codex-as-api Use ChatGPT / Codex OAuth as a local OpenAI-compatible API server. Features - OpenAI & Anthropic compatible — POST /v1/chat/completions and POST /v1/messages endpoints - Claude Code ready — use Codex models directly from Claude Code CLI - Streaming — full SSE streaming for both OpenAI and Anthropic protocols - Tool calling — function calls, tool results, and parallel tool calls - Image support — generation, inspection, multimodal Chat input, and capability-gated original image detail in classic Responses - Reasoning — configurable effort/context, standard mode compatibility, persisted reasoning, and streaming thinking content - Codex features — session-aware prompt cache key , process-local Chat response id continuation, subagent headers, and remote compaction - Codex config aware — reads CODEX HOME / /.codex/config.toml for model, reasoning-effort, and context-window settings - Token estimate & compaction helpers — Anthropic-compatible /v1/messages/count tokens and /v1/messages/compact - Auto auth — reads /.codex/auth.json and auto-refreshes OAuth tokens - 3 implementations — Python, TypeScript (npm), and Rust — identical behavior What it does Runs a lightweight HTTP server on localhost that translates standard OpenAI API calls into authenticated requests against the ChatGPT / Codex backend using your existing /.codex/auth.json OAuth credentials. Python, Rust, and TypeScript (npm) implementations are provided — identical functionality, same endpoints, same behav","default_branch":null,"files":null,"tree":[],"storefront":"/r/Eunho-J","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Eunho-J/codex-as-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}