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 specific API responses of these tools into a format that any chosen LLM provider (like Gemini, DeepSeek, Ollama, or Claude) can understand.
How it works
It acts as a lightweight translation layer between the AI application and the LLM provider. It translates the Responses API into streaming, tool calls, and reasoning tokens in both directions. Users can configure providers and models via a web dashboard or CLI, and the proxy then routes requests from the supported applications to the target LLM.
Who it’s for
Developers and power users who want to use their preferred LLMs (including local models via Ollama) within the specialized interfaces of Codex, Claude Code, Claude Desktop, or Grok Build.
Highlights
- Universal Model Support: Connects 40+ built-in providers or any OpenAI-compatible endpoint to specific AI coding tools.
- ChatGPT Account Pooling: Manages multiple accounts with quota-aware auto-switching and thread affinity to maintain conversation continuity.
- ChatGPT Sidecars: Adds web search and vision capabilities to non-OpenAI models using a ChatGPT login.
- Model Combos: Creates virtual model IDs that support failover or weighted round-robin routing across different providers.
- Sub-agent Routing: Enables the use of routed models within the sub-agent pickers of supported tools.
- Memory Management: Implements strict byte budgets and LRU caps for all long-lived caches to prevent memory leaks.
Related
- Project
- Project
- Project
- Project
- Project