model-router
Skill1 starsChanged 9 days agoMITView on GitHub
Multi-model routing, quality-ranked cloud model directory, and resilient 429 rate-limit failover engine. Connects Antigravity to DeepSeek (R1/V3), Claude (3.7/3.5), Qwen (2.5 Coder 32B), Groq (Llama 3.3), and OpenRouter. Runs standalone via CLI or mounts directly as an Antigravity MCP server.
- Reads credentials
17 other projects use a version of this.
Adopted by
Most recently taken up by
- tance-mang/chinese-webnovel-skillstheir own version, first seen Nov 8, 2026
- uniqaiapp/model-routertheir own version, first seen Nov 1, 2026
- francoisdp/skillstheir own version, first seen Oct 22, 2026
- yosukekurita-rgb/model-routertheir own version, first seen Oct 20, 2026
- Zelray/hermes-model-routertheir own version, first seen Oct 20, 2026
- m2ai-mcp-servers/claude-skillstheir own version, first seen Oct 11, 2026
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- tance-mang/chinese-webnovel-skills★ 97same name
- nidhi-singh02/agent-router★ 87same name
- RandomNest/aivideo-production-skills★ 15same name
- manishk753/claude-model-router★ 3same name
- francoisdp/skills★ 2same name
- NorkzYT/claude-code-autopilot★ 2same name
- mehtab78/skills★ 1same name
- tammai/bigin-skills★ 1same name
- Zelray/hermes-model-router★ 1same name
- benagesjustin-boop/model-router★ 0same name
7 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository62 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/skills/humanizer/AGENTS.mdAGENTS.md
- agentshieldSkill
- asd-ste100Skill
- autonomous-agent-engineeringSkill
- awwwardsSkill
- backend-engineeringSkill
- boarduiSkill
- design-systemsSkill
- frontend-engineeringSkill
- interface-designSkill
- jurySkill
- karpathy-guidelinesSkill
- last30daysSkill
- lemo-opuscarSkill
- motionsites-web-builderSkill
- quality-engineeringSkill
- rev-engineerSkill
- scraplingSkill
- security-auditSkill
- skillforgeSkill
- stageshowSkill
- technical-documentationSkill
- agentshieldSkill
- anti-vcodeSkill
- arenaSkill
- asd-ste100Skill
- autonomous-agent-engineeringSkill
- awwwardsSkill
- backend-engineeringSkill
- boarduiSkill
- courtSkill
- designsSkill
- design-systemsSkill
- diagram-designSkill
- frontend-engineeringSkill
- humanizerSkill
- impeccableSkill
- interface-designSkill
- jurySkill
- karpathy-guidelinesSkill
- last30daysSkill
- lemo-opuscarSkill
- logo-designSkill
- motionsites-web-builderSkill
- ponytailSkill
- quality-engineeringSkill
- rev-engineerSkill
- rigorSkill
- sanzo-wada-colorsSkill
- scraplingSkill
- secure-auditSkill
- security-auditSkill
- skillforgeSkill
- socraticSkill
- stageshowSkill
- stealSkill
- tasteSkill
- technical-documentationSkill
- threeuiSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
When working on demanding projects, hitting rate limits (HTTP 429 / quota exhaustion) on your primary model halts progress.
- Very specific: line 54
Add to your Antigravity MCP configuration (~/.gemini/config/mcp_config.json):
“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Model Router: Resilient Multi-Provider Subagent Engine
The Model Router equips Google Antigravity with multi-model dispatch, a quality-ranked cloud model directory, and zero-downtime rate-limit resilience, inspired by OpenCode's universal provider architecture and Austin Kleon's creative synthesis principles.
When working on demanding projects, hitting rate limits (HTTP 429 / quota exhaustion) on your primary model halts progress. This engine routes tasks to specialized cloud models and automatically cascades down a fallback chain if an upstream provider is throttled or offline.
Ranked Cloud Models Directory (Best on Top, Weakest at Bottom)
The router maintains an evaluated catalog across frontier cloud providers:
| Tier | Model ID | Score | Context | Strengths |
| Tier 1 (Frontier S-Tier) | deepseek/deepseek-r1 | 99/100 | 64k/128k | Deep mathematical reasoning, formal logic & complex architectural bugs |
| Tier 1 (Frontier S-Tier) | anthropic/claude-3.7-sonnet | 98/100 | 200k | Hybrid thinking + instant coding benchmark leader |
| Tier 1 (Frontier S-Tier) | anthropic/claude-3.5-sonnet | 97/100 | 200k | Full-stack software engineering gold standard |
| Tier 1 (Frontier S-Tier) | qwen/qwen-2.5-coder-32b-instruct | 96/100 | 128k | Highest open-weight coding benchmark; ultra-fast on Groq |
| Tier 1 (Frontier S-Tier) | google/gemini-2.5-pro | 95/100 | 2M | Massive multi-file repository context comprehension |
| Tier 1 (Frontier S-Tier) | openai/o3-mini | 94/100 | 200k | STEM, algorithms, unit test derivation, concise logic |
| Tier 2 (Workhorse A-Tier) | deepseek/deepseek-chat (V3) | 92/100 | 64k/128k | High-efficiency general development and architecture |
| Tier 2 (Workhorse A-Tier) | meta-llama/llama-3.3-70b-versatile | 91/100 | 128k | Free tier on Groq, 280+ tokens/sec |
| Tier 2 (Workhorse A-Tier) | openai/gpt-4o | 90/100 | 128k | Multi-modal diagram reading, structured JSON extraction |
| Tier 3 (Budget B-Tier) | anthropic/claude-3.5-haiku | 85/100 | 200k | Rapid linting, docstrings, JSON transforms |
| Tier 4 (Deprecated) | openai/gpt-3.5-turbo | 45/100 | 16k | Superseded; prone to hallucinating modern APIs |
| Tier 4 (Deprecated) | meta-llama/llama-2-70b-chat | 38/100 | 4k | Obsolete instruction tuning; easily confused on multi-file diffs |
Configuration
The router reads from standard environment variables or a local configuration file at ~/.config/model-router/config.json.
export OPENROUTER_API_KEY="sk-or-..." # Single key unlocks 200+ ranked models
export DEEPSEEK_API_KEY="sk-..." # DeepSeek R1 & V3
export GROQ_API_KEY="gsk_..." # Free tier available at console.groq.com
export DASHSCOPE_API_KEY="sk-..." # Alibaba QwenMounting in Antigravity as an MCP Server
Add to your Antigravity MCP configuration (~/.gemini/config/mcp_config.json):
{
"mcpServers": {
"model-router": {
"command": "python3",
"args": ["/home/hamza/Documents/skills/model-router/scripts/router.py", "--mcp"]
}
}
}Antigravity tools exposed:
list_ranked_models: Inspects the directory of cloud models ranked from S-Tier to Deprecated.cascade_query: Executes a prompt with automatic rate-limit failover across cloud providers.consult_model: Explicitly queries a specific model (e.g. DeepSeek R1).list_providers: Reports which providers are currently configured and online.
CLI Usage
# View ranked model directory
python3 scripts/router.py models
# Fetch live real-time directory from OpenRouter API
python3 scripts/router.py models --live
# Check provider readiness
python3 scripts/router.py status
# Run with automatic rate-limit failover
python3 scripts/router.py cascade --role reason --prompt "Solve this race condition in Node PTY"
python3 scripts/router.py cascade --role code --prompt "Write a TypeScript parser for JSON lines"Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

