Mixture of models for Claude Code.
Keep your Claude subscription for the work that needs it. The mod keeps critical turns in your main Claude session and sends the other turns to cheaper models through palgu>, where your team's routing, budgets, policy and audit apply.
- Keep security, architecture and production work on Claude, exactly as before.
- Spend less of your Claude usage on routine turns such as docs, tests and small edits.
- Put the routed turns under your team's Palgu policy, budgets and audit.
How it decides
Every turn is scored before it runs. Your main session is never re-pointed, and a line under every answer names the model and the score.
Each prompt gets a 1 to 10 blast radius (how much damage a wrong answer does) and a task kind. A local Ollama model scores for free; otherwise Claude Haiku on your plan.
Critical turns (8 and above by default) stay in your main session on Claude. The other turns run in a separate headless Claude Code that points at Palgu, on the model your routing strategy picks: complexity, cost, speed, quality or your own.
If the routed turn fails, or its answer is a hand-back, an unverified claim or a request for you to act, the main session answers that turn. Follow-ups such as "continue" always return to the main session.
Set it up with palgu>
Mods need Claude Code 2.1.287 or later. Install the mod, start claude, then sign in to Palgu from inside it.
claude plugin marketplace add alinaqi/mixture-of-models-claude-mod
claude plugin install mixture-of-models@mixture-of-models-claude-mod
# inside Claude Code:
/palgu login
The mod shows a link and a short code. Approve it in your browser (a new account then chooses a paid plan) and this computer gets its own Palgu key, kept in Claude Code's secure storage. Then run /route to see where your turns run. The docs have every step, and Use Palgu with your tools compares it with Codex, Cursor, aider, palgu and Studio.
Mixture of models, or coding in palgu>?
palgu> no longer changes Claude Code's settings, so your main session stays yours. Use the mod inside Claude Code, or code in palgu, Palgu's own CLI, where every request goes through Palgu.
| Setup | Mixture of models | palgu |
|---|---|---|
| Where you code | Claude Code, on your Claude subscription | Palgu Studio or palgu |
| Turns through Palgu | Only the turns the mod routes | Every request |
| Policy, budgets and audit | On the routed turns | On every request |
| Sign in with | /palgu login inside Claude Code | palgu login |
More open source from the palgu> team
Maggy is our open-source engineering harness for one developer: multi-model routing, TDD gates, memory and a plugin system for Claude Code, Codex, Kimi and Gemini CLI.