Claude Code model router
One Code
Claude Code with the model slot left open. The full workflow, open source, on any model or provider.
Install
npm install -g @one-ai/one-codeFound in the project README. Check it for setup steps after installing.
git clone https://github.com/IsuruMaduranga/one-code.gitFrom the README
One Code Claude Code with the model slot left open. The full workflow, open source, on any model or provider. One Code rebuilds the Claude Code workflow around the model you choose. Subagents, Git worktrees, auto mode, plan mode, permissions, and context management all live in the harness, so they come along whatever model you put in it. Your CLAUDE.md, skills, commands, agents, and permission rules carry over with no import step. If you already use Claude Code, nothing here needs relearning. Pick a model, give it a task, review its plan, and let it work. Switch models mid-session, or give each subagent its own model and provider: a frontier model on the main task, a cheaper one for exploration and tests. One Code is an independent, open-source implementation built on pi. It recreates the coding workflow; features that depend on Claude Code's hosted or desktop services are outside its scope. User guide · Reuse your Claude Code setup · Differences from Claude Code · Command reference If One Code is useful to you, a ⭐ on GitHub helps other people find it. 🚀 Get started Install Node.js 22.19 or later, then run: Inside One Code, run /login to connect a provider, then /model to choose a model. You can also supply an API key through an environment variable such as ANTHROPIC_API_KEY, OPENAI_API_KEY, or OPENROUTER_API_KEY. One Code reads an existing CLAUDE.md and .claude/ configuration directly. If a directory has no CLAUDE.md, it falls back to AGENTS.md. For a new project, run /init to draft a CLAUDE.md. To check your setup, run onecode doctor or /doctor report inside a session. The report lists provider credentials, model assignments, detected configuration, and missing programs. Run /doctor for a checkup with agent-assisted fixes. One Code is developed on macOS…
Details
- Repository
- IsuruMaduranga/one-code
- Language
- TypeScript
- Last updated
- 23 November 2026
- Topics
- ai-agentsai-codingclaude-codeclicoding-agentllmmcpopenrouterpi-packageterminal
FAQ
What is One Code?
Claude Code with the model slot left open. The full workflow, open source, on any model or provider. It is a model router for Claude Code, from IsuruMaduranga/one-code on GitHub.
How do I install One Code?
Run npm install -g @one-ai/one-code, then follow the setup in the README.
Is One Code popular?
IsuruMaduranga/one-code has 81 GitHub stars and 5 forks. It was last updated on 23 November 2026.
More model routers & proxies
Opendray
71Opendray/opendray
Self-hosted gateway for Claude Code, Codex, Antigravity, Grok Build, OpenCode. Run AI coding agents on your own infra with a shared local-first memory layer. Drive from web, mobile, Telegram / Slack / Discord / Feishu / DingTalk / WeCom. Open REST + WebSocket API. Apache 2.0.
AegisGate
73ax128/AegisGate
Open-source security gateway for LLM APIs — prompt injection detection, PII redaction, dangerous response sanitization, and audit logging. OpenAI/Claude compatible, MCP & Agent SKILL support. Drop-in proxy for AI coding agents (Cursor, Claude Code, Codex).
Claude Code Wsl2 Setup
56congmnguyen/claude-code-wsl2-setup
Guides and scripts for Claude Code on WSL2: screenshot paste, Windows notifications, LSP, and statusline.
Tokenmaxx
73RubricLab/tokenmaxx
A local proxy that aggregates usage across your Codex and Claude Code accounts — with live token-throughput analytics.
Claude CLI
83codingauto/claude_cli
Claude Code Proxy 是一个 完全开源 的住宅代理服务,为 Claude / Anthropic API 等 AI 服务提供稳定、持久、难以被检测的住宅 IP 访问能力,支持多代理供应商与企业级防风控功能。
Claude Code Proxy
67kiyo-e/claude-code-proxy
Proxy that translates between the Anthropic API and OpenAI-compatible APIs, so Claude Code can run against other models.
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.