opencodex (GitHub Repository)
Key point
opencodex is a local proxy tool that lets OpenAI Codex and Claude Code use any LLM, including Claude and Gemini.
Details
opencodex is a lightweight local proxy that intercepts Responses API requests from Codex CLI, App, and SDK as well as Claude Code, and routes them to various LLM providers such as Anthropic, Google, xAI, DeepSeek, and Ollama. After installing with npm install -g @bitkyc08/opencodex, running ocx start launches it on localhost:10100.
It supports streaming, tool calls, reasoning tokens, images, and all other features bidirectionally, with supported providers spanning OpenRouter, Azure, Groq, Kimi, GLM, Qwen, and more.
A ChatGPT account pool management feature is also built in. When you register multiple ChatGPT/Codex accounts, the 5-hour, weekly, and 30-day quotas are refreshed on a dashboard, and new sessions are automatically routed to the healthy account with the lowest usage. Existing Codex threads remain pinned to the account they started with, so accounts don't switch mid-session across SSH, tmux, or mobile sessions.
- On a 429 response, automatic failover occurs after a cooldown
- On a 401/403 response, the corresponding account is marked as needing re-authentication
- Supports macOS, Linux, and Windows
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.