Claude Code model router

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

18,182 stars 1,437 forksModel routers & proxies Source

Install

Install
npm install -g @bitkyc08/opencodex

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/lidge-jun/opencodex.git

From the README

One local gateway for your AI coding tools and models.
Use the models you choose with Codex, Claude Code, Claude Desktop and Grok Build,
and connect OpenCode, Pi, Qoder, WorkBuddy, Kilo, Cline, T3 Code and more through managed configs.
See every supported tool →

Claude Code, running any model

The picker is stock Claude Code. The brain behind it isn't.

Codex, running any model

Pick a provider and go — same workflow, different brain.

Claude Desktop, running any model

Opus answers, then hands the task to a GPT-5.6 Sol subagent.

Grok Build, running any model

Sol drives the session and calls a Kimi K3 subagent.

  English · Français · 한국어 · 简体中文 · 繁體中文 · Русский · 日本語 · Türkçe · 📖 Full documentation →

opencodex is a lightweight local gateway between your coding tools and your model providers. It
accepts the Responses, Chat Completions and Anthropic Messages APIs and translates each request into
whatever your provider speaks, carrying streaming, tool calls, reasoning and images where the client,
model and provider support them. Use Claude, Gemini, Grok, GLM, DeepSeek, Kimi, Qwen, Ollama and other
providers with Codex, Claude Code, Claude Desktop, Grok Build and the tools listed on the
client support page. It can also manage a ChatGPT account pool for Codex auth: add accounts,
refresh their quotas in the dashboard, and let new sessions auto-route to the lowest-usage healthy
account while existing threads stay pinned to the account that started them.

Quick start

Personal install (CLI)

Use ocx service to run it in the background.

Open http://localhost:10100 and configure everything in the web dashboard — add providers
(40+ built-ins, or any OpenAI-compatible endpoint), pick models, manage accounts. ocx gui
re-opens the dashboard at any time.

Connect your…
Read the full README on GitHub

Details

Language
TypeScript
License
MIT
Last updated
3 November 2026
Topics
ai-gatewayai-toolsanthropicchatgptclaudeclaude-codecodexcodex-clideepseekdeveloper-toolsgeminigrok

FAQ

What is 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 It is a model router for Claude Code, from lidge-jun/opencodex on GitHub.

How do I install Opencodex?

Run npm install -g @bitkyc08/opencodex, then follow the setup in the README.

Is Opencodex popular?

lidge-jun/opencodex has 18,182 GitHub stars and 1,437 forks, and is included in 1 curated Claude Code list. It was last updated on 3 November 2026.

More model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.