lidge-jun/opencodex
Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code
What it solves
OpenCodex is a local proxy that allows users to use any Large Language Model (LLM) with tools that are normally locked to specific providers, such as Codex, Claude Code, Claude Desktop, and Grok Build. It removes the provider lock-in by translating the Codex Responses API into the format required by various LLM providers.
How it works
It acts as a lightweight translation layer between the client application and the AI provider. It supports over 40 built-in providers (including Anthropic, Google Gemini, xAI, DeepSeek, and Ollama) or any OpenAI-compatible endpoint. The tool includes a web dashboard for managing providers, models, and accounts. It also features a ChatGPT account pool to manage multiple accounts, handling quota-aware auto-switching and thread affinity to ensure conversations stay pinned to the same account.
Who it’s for
Developers and AI power users who want to use their preferred LLMs within the existing interfaces of Codex, Claude Code, or Grok Build, or those who want to manage multiple AI accounts to optimize quota usage.
Highlights
- Universal Model Routing: Use 40+ providers with Codex, Claude Code, Claude Desktop, and Grok Build while keeping the native UI.
- Account Pooling: Manage a pool of ChatGPT accounts with automatic quota-aware routing and failover.
- Model Combos: Create virtual model IDs that distribute requests via failover or weighted round-robin.
- Sub-agent Support: Route specific models to be used as sub-agents within the Codex interface.
- Cros-Provider Capabilities: Adds web search and vision capabilities to non-OpenAI models via a sidecar over a ChatGPT login.
- Easy Deployment: Available via npm, Docker Compose, or source install, with options for background service or on-demand shim.
Related
- Project
- Project
- Project
- Project
- Project