Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By alinaqiv0.36.4MITIn 2 marketplaces
Routes each prompt to the cheapest capable model. Simple and coding work runs in a headless child Claude Code on an Anthropic-compatible gateway (Palgu, OpenRouter, a LiteLLM proxy; GLM 5.3, Kimi K3.1 Pro, DeepSeek, MiniMax, GPT-6, ...); critical work stays in your main session on your subscription. Routes can name a family member (claude/sonnet on your Claude login, kimi/auto) or hand a turn to the Codex CLI. Ported from Maggy.
Claude loads one when your task matches it, or you run it by name.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Gateway API keygateway_key
API key for that gateway: a Palgu key, an OpenRouter key, or a LiteLLM master or virtual key. Stored securely by Claude Code. Sent only to the gateway URL above by the child process it starts (or, for a Codex route, to the router.codex.baseUrl you set in model-config.json), and to Palgu itself only when that URL is Palgu.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it runs programs; makes network requests; reads files; reads environment variables (ANTHROPIC_CUSTOM_HEADERS, HOME, HOSTNAME, MAGGY_ROUTER_CHILD); calls a model on your account; reads or rewrites your prompts; sends prompts on its own.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
2 marketplaces, most starred first
routing, mixture-of-models, glm, kimi, palgu, openrouter, litellm, maggy ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Sensitivestring
Gateway URLgateway_url
Anthropic-compatible endpoint the child Claude Code sends routed turns to: https://api.palgu.ai/anthropic, https://openrouter.ai/api, or your LiteLLM proxy such as http://localhost:4000. Leave empty to stay observe-only.
string
Gateway providergateway_provider
auto (default: Palgu and OpenRouter are detected from the URL), palgu, openrouter, litellm (a LiteLLM proxy: bearer key, your proxy's model names) or anthropic-compatible.
string
English · 简体中文 · 日本語 · Deutsch · Français · العربية
Setting this up with a coding agent? Point it at INSTALL.md: "Follow INSTALL.md in alinaqi/mixture-of-models-claude-mod to set up Mixture of Models for me." It has every command, a check for each step, and what to ask you. Works for Claude Code, Codex, Cursor, OpenCode, Antigravity, GitHub Copilot CLI, Aider, Continue and Goose.
Installed? GUIDELINES.md has the best practices for each agent: let the system pick the models, how to word prompts so routing and memory work, what to delegate, and what to do when a route looks wrong.
Keep your Claude subscription for the turns that need it. Hand the rest to a cheaper model. A Claude Code mod (an in-process plugin, new in Claude Code 2.1.287) that scores every prompt for blast radius and answers the low-score turns with a separate headless Claude Code on an Anthropic-compatible gateway (GLM, Kimi, DeepSeek, whatever yours serves). Your main session is never renamed, re-pointed or touched. Ported from Maggy's routing.
Routes can also name a model family: claude/sonnet runs that Claude member on your own Claude login, kimi/auto lets the score pick a Kimi member, and codex hands the turn to the Codex CLI (codex exec) on Palgu or on your ChatGPT login. See Families and Codex.
No dashboard, no copying keys. After installing the mod, in Claude Code:
/palgu login
WDJB-MJHT.| Command | What it does |
|---|---|
/palgu login | Sign up or sign in, and connect this computer |
/palgu status | Who is signed in, the organisation and its plan, and what it spent of its Palgu budget this period |
/palgu upgrade | Plans and billing (paid plans are bought on the web; your key picks up the new plan by itself) |
/palgu continue [--open] | Continue this session in Palgu with its full context: copies cd <folder> && palgu --continue-claude=<session id>; --open starts it in a new macOS Terminal tab. Palgu reads the transcript itself and redacts credentials |
How it works: Palgu's device sign-in (the same one srooterctl uses) mints an API key for this computer only. You can see and revoke it on Palgu's Devices page. The mod saves it in Claude Code's secure storage with claude plugin configure --values-stdin, so it never appears on a command line or in a settings file. Already have a key, or use another gateway? See Setup.
To be precise about what it is: turn-level delegation, not per-request model mixing. A routed turn runs in a child process with a short brief of your recent context; the child's answer lands in your transcript, tagged. Critical turns stay on Claude exactly as before.
Mods need Claude Code 2.1.287 or later. The stable Homebrew cask is still 2.1.286, so check first:
claude --version
# too old? one of:
brew uninstall --cask claude-code && brew install --cask claude-code@latest # Homebrew
npm install -g @anthropic-ai/claude-code@<version> # npm: a version from 2.1.287 on
claude update # native installer
Then:
claude plugin marketplace add alinaqi/mixture-of-models-claude-mod
claude plugin install mixture-of-models@mixture-of-models-claude-mod
or, inside a session, /plugin install mixture-of-models --marketplace alinaqi/mixture-of-models-claude-mod.
npx claudepluginhub alinaqi/mixture-of-models-claude-mod --plugin mixture-of-modelsBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground