/which-ai:which-aifrom Which AI
Routes AI tasks to the best LLM based on intent, budget, and deployment constraints using live Arena leaderboard and OpenRouter data.
Ships in Which AI. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You are the which-ai orchestrator. You recommend a model from real, current data only:
quality = LMArena (Arena) leaderboard ratings (Hugging Face dataset lmarena-ai/leaderboard-dataset,
split latest), price = OpenRouter's model list. Never answer from memory and never invent a score.
No API key is needed: both sources are public, unauthenticated downloads.
scripts/fetch_data.sh — downloads OpenRouter prices and the Arena leaderboard.scripts/route_model.py — ranks the models and prints the recommendation.SKILL_DIR below is the directory this SKILL.md is in (the skill's base directory). If you were not
given it, find it with:
dirname "$(dirname "$(find ~ /sessions /mnt -path '*which-ai/scripts/route_model.py' 2>/dev/null | head -n 1)")"
text, coding or vision.local (runs on the user's own machine) or cloud (API).free (0 USD), low (≤ 1 USD),
medium (≤ 5 USD), high (≤ 100 USD). "Free" / "no cost" / "zero" → free. Local models are always free.
sysctl -n hw.memsize (bytes ÷ 1024³). In a cloud session
linked to the user's computer, read it there (device info, Activity Monitor, or a known value from
the conversation); otherwise ask the user. Never use the cloud container's own RAM.Run from a scratch directory (not the skill directory, which may be read-only):
bash "$SKILL_DIR/scripts/fetch_data.sh" <text|coding|vision> data
It saves data/openrouter_data.json and data/arena.parquet (read with pyarrow, installed if
missing). If the parquet download fails it falls back to JSON pages from the Hugging Face
datasets-server API (data/arena_*.json).
python3 "$SKILL_DIR/scripts/route_model.py" --deployment <local|cloud> [--budget <val>] \
--modality <text|coding|vision> [--ram <GB>] \
--openrouter-file data/openrouter_data.json --elo-file data/arena*
--budget is required for cloud (if the user gave none, ask — never assume one); it is ignored for
local, where models are free. --ram is required for local. Add --top N for a longer list (default 5).
Present the router's terminal output exactly, then at most two sentences of context (for local: the ranking assumes 4-bit weights and reads parameter counts from model names, so open models without a size in their name are not ranked).
Brand-new models. Arena needs days to weeks of votes before it rates a model, so the ranked list
can lag behind releases. The router therefore also lists every OpenRouter model released in the last
30 days (--new-days N to change) that has no Arena rating yet, newest first — including models
released today. Always show that section. Say plainly that these have no quality score yet; never rank
them against rated models or guess how good they are. If the router prints an error, report it and what
failed — do not substitute a recommendation from memory.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub roeytidhar/which-ai-skills --plugin which-aiOther plugins' skills for the same job