Home / Claude Code mods / Agents & automation / mixture-of-models

mixture-of-models

mixture-of-models is a Claude Code mod by alinaqi that 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.

Updated 2026-11-25

What is mixture-of-models?

mixture-of-models is a Claude Code mod by alinaqi that 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. It is listed under Agents & automation and has 4 GitHub stars.

TypeClaude code mod
Authoralinaqi
Repositoryalinaqi/mixture-of-models-claude-mod
Popularity4 GitHub stars
CategoryAgents & automation
SecurityHigh risk (48/100)
Rank#1,502 of 9,397 Claude Code mods; #133 in Agents & automation
LicenseMIT
Last commit2026-11-25
Hooks8 events
Seesevery prompt, subagent spawns
Draws onAbovePrompt, AssistantMessage, Pane, Spinner

Is mixture-of-models safe to install?

mixture-of-models scores 48/100 on the MCPMods security check: High risk. Things to review: sends data over the network; starts processes outside the sandbox; reads environment variables; watches every prompt or event. It passed 3 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
Sends data over the networkReview
Starts processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.sleep
$.command.register
$.env.getreads env vars
$.fs.listreads files
$.fs.readreads files
$.http.fetchnetwork requests
$.model.classifydrives Claude
$.process.runruns processes
$.prompt.submitdrives Claude
$.session.cwd
$.session.id
$.session.messagesreads the transcript
$.session.model
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.askdraws interface
$.ui.copydraws interface
$.ui.invalidatedraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install mixture-of-models?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/alinaqi/mixture-of-models-claude-mod
    claude plugin validate ./mixture-of-models-claude-mod/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add alinaqi/mixture-of-models-claude-mod && claude plugin install mixture-of-models@mixture-of-models-claude-mod

Or ask Claude to set it up

Paste this into Claude Code and it installs mixture-of-models for you:

Install the "mixture-of-models" Claude Code mod from https://github.com/alinaqi/mixture-of-models-claude-mod. Run claude plugin validate on it first and show me what it can access before you enable it.