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

Install
npm install -g @one-ai/one-code

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

From source
git clone https://github.com/IsuruMaduranga/one-code.git

From 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…
Read the full README on GitHub

Details

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

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