Opencodex
Opencodex is an open-source universal provider proxy designed for OpenAI Codex and Claude Code. It enables the Codex CLI, Codex App, Codex SDK, and Claude Code to work with any large language model provider rather than being limited to a single vendor. Supported providers mentioned in its description include Claude, Gemini, Grok, DeepSeek, and Ollama, among others. The project acts as an intermediary layer that translates requests from Codex- and Claude Code-compatible clients into calls to different LLM APIs. This allows developers to switch between cloud and local models, such as Ollama for local inference, without modifying their existing coding agent workflows. Opencodex is distributed as open-source software on GitHub. By decoupling the coding assistant interface from the underlying model provider, Opencodex helps reduce vendor lock-in and gives users more control over cost, privacy, and model choice. The repository is hosted at github.com/lidge-jun/opencodex.
- Category
- Dev Tools
- Pricing
- Open Source
Problem solved
Coding assistants like OpenAI Codex and Claude Code typically require using their own proprietary models, making it difficult to switch to alternative LLMs such as Gemini, Grok, DeepSeek, or local models via Ollama. Opencodex solves this by providing a universal proxy that lets these tools route requests to any supported LLM provider, reducing vendor lock-in and enabling flexible model selection.
Use cases
- Use Gemini models with OpenAI Codex CLI
- Run Claude Code with local Ollama models
- Connect Codex SDK to DeepSeek API
- Switch Codex App between multiple cloud LLM providers
- Self-host a proxy to centralize LLM access for development teams
- Test coding agent behavior across different LLM backends
Audience
- Developers
- ML Engineers
- Hobbyists
Pros
- Open source and self-hostable
- Supports multiple LLM providers including Claude, Gemini, Grok, DeepSeek, and Ollama
- Works with Codex CLI, App, SDK, and Claude Code
- Helps avoid vendor lock-in
- Enables use of local models for privacy
Cons
- Requires configuration and technical setup
- Exact provider compatibility may vary
- Limited public documentation in the provided metadata
- Depends on upstream Codex and Claude Code interfaces
- No formal support or SLA mentioned
Official website: https://github.com/lidge-jun/opencodex
Canonical LambdaBase page: https://www.lambdabase.com/tools/opencodex