OpenCodex is a local proxy translating OpenAI, Anthropic, and related APIs so Codex, Claude Code, Claude Desktop, Grok Build, and similar clients can use third-party models. A dashboard configures providers, routing, and live request logs
Overview
OpenCodex sits between AI coding applications and the model providers you choose. It accepts Responses, Chat Completions, and Anthropic Messages-style traffic, then adapts each call to the provider's native protocol while preserving streaming, tool use, reasoning payloads, and images when supported on both sides.
You install the CLI globally or run the beta desktop app, which bundles the proxy, dashboard, and system tray controls on macOS, Windows, and Linux. Commands such as ocx init, ocx start, and ocx claude wire Codex or Claude Code through the local listener without patching those clients. The dashboard adds built-in provider presets, OAuth logins, model pickers, combo routes with failover, sub-agent routing, and optional search or vision sidecars for models that lack those capabilities natively.
Docker Compose packaging is documented for a digest-pinned hub deployment with persisted state volumes. Service managers on each OS can keep ocx running in the background. Stopping the proxy is designed to restore Codex to its prior configuration.
The project positions itself as an independent community tool and warns that some providers may restrict accounts used through third-party proxies.
Key features
- Multi-protocol local API gateway
- Forty-plus built-in provider presets
- Web dashboard and desktop app
- Codex and Claude Code routing
- Combo failover and weighted routing
- OAuth and API key provider auth
- Live request log with token counts
- Docker Compose hub deployment
Use cases
- Running Codex against a local Ollama model
- Switching Claude Code models via one proxy
- Failover between cloud LLM providers
- Centralizing API keys on one machine
- Hosting a shared model hub for agents