omni-combos-routing
Skill0 starsChanged 3 months agoMITView on GitHub
Create and manage routing combos with 14 strategies (priority, weighted, round-robin, Auto-combo, etc.). Configure fallback chains, test routing outcomes, and retrieve combo metrics.
- Reads credentials
- Sends data out
3 other projects use a version of this, 3 of them edited.
Adopted by
Most recently taken up by
- MMACABRE/SKILLSedited, first seen Nov 8, 2026
- cheaper-inference/OmniRouteedited, first seen Oct 25, 2026
- diegosouzapw/OmniRouteedited, first seen Oct 22, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- cheaper-inference/OmniRoute★ 86k54% same
- diegosouzapw/OmniRoute★ 86k54% same
- MMACABRE/SKILLS★ 157% same
Wrote their own version · 0
None found.
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 repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- app_backup/AGENTS.mdAGENTS.md
- app_backup/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- cli-a2aSkill
- cli-backup-syncSkill
- cli-batchesSkill
- cli-chatSkill
- cli-compressionSkill
- cli-contextsSkill
- cli-cost-usageSkill
- cli-evalSkill
- cli-healthSkill
- cli-keysSkill
- cli-mcpSkill
- cli-modelsSkill
- cli-plugins-skillsSkill
- cli-policy-auditSkill
- cli-providersSkill
- cli-resilienceSkill
- cli-routingSkill
- cli-serveSkill
- cli-setupSkill
- cli-skill-collectorSkill
- cli-tunnelSkill
- config-codex-cliSkill
- nerve-inferenceSkill
- nerve-mcpSkill
- omni-agents-a2aSkill
- omni-api-keysSkill
- omni-authSkill
- omni-budgetSkill
- omni-cacheSkill
- omni-cli-toolsSkill
- omni-compressionSkill
- omni-context-rtkSkill
- omni-db-backupsSkill
- omni-github-skillsSkill
- omni-modelsSkill
- omni-providersSkill
- omni-proxiesSkill
- omni-resilienceSkill
- omni-settingsSkill
- omni-sync-cloudSkill
- omni-tunnelsSkill
- omni-usage-logsSkill
- omni-version-managerSkill
- omni-webhooksSkill
The file
We split this skill into the rules it gives an agent
3 rules. 2 are common, 0 are distinctive, and 1 is very specific to this project.
2
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 9
Create and manage routing combos with 14 strategies (priority, weighted, round-robin, Auto-combo, etc.).
- Very specific: line 13
All requests require a valid Bearer token or session cookie.
- Common: line 68
Test a combo configuration
“Common” is measured: kept by at least 6 in 10 of the 3 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
<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->Overview
Create and manage routing combos with 14 strategies (priority, weighted, round-robin, Auto-combo, etc.). Configure fallback chains, test routing outcomes, and retrieve combo metrics.
Authentication
All requests require a valid Bearer token or session cookie. Obtain a token via POST /api/auth/login or configure REQUIRE_API_KEY=false for local development.
Endpoints
GET /api/combos
List routing combos
curl https://localhost:20128/api/combos \
-H "Authorization: Bearer $NERVE_TOKEN"POST /api/combos
Create routing combo
curl -X POST https://localhost:20128/api/combos \
-H "Authorization: Bearer $NERVE_TOKEN"
-H "Content-Type: application/json" \
-d '{}'PATCH /api/combos/{id}
Update combo
curl -X PATCH https://localhost:20128/api/combos/{id} \
-H "Authorization: Bearer $NERVE_TOKEN"
-H "Content-Type: application/json" \
-d '{}'DELETE /api/combos/{id}
Delete combo
curl -X DELETE https://localhost:20128/api/combos/{id} \
-H "Authorization: Bearer $NERVE_TOKEN"GET /api/combos/metrics
Get combo metrics
curl https://localhost:20128/api/combos/metrics \
-H "Authorization: Bearer $NERVE_TOKEN"POST /api/combos/test
Test a combo configuration
curl -X POST https://localhost:20128/api/combos/test \
-H "Authorization: Bearer $NERVE_TOKEN"
-H "Content-Type: application/json" \
-d '{}'GET /api/fallback/chains
List fallback chains
Returns all registered fallback chains for model routing.
curl https://localhost:20128/api/fallback/chains \
-H "Authorization: Bearer $NERVE_TOKEN"POST /api/fallback/chains
Create fallback chain
Registers a fallback routing chain for a model.
curl -X POST https://localhost:20128/api/fallback/chains \
-H "Authorization: Bearer $NERVE_TOKEN"
-H "Content-Type: application/json" \
-d '{}'DELETE /api/fallback/chains
Delete fallback chain
curl -X DELETE https://localhost:20128/api/fallback/chains \
-H "Authorization: Bearer $NERVE_TOKEN"Payloads
See the full OpenAPI specification at GET /api/openapi/spec or docs/openapi.yaml for detailed request/response schemas.
<!-- skill:custom-start --><!-- Migrated from skills/nerve-routing/SKILL.md (preserved curated content) -->Nerve — Routing & Combos
Requires NERVE_URL and NERVE_KEY. See entry-point SKILL for setup.
What is a combo?
A combo is a named group of providers/models with a routing strategy. All requests through a combo are automatically distributed, failed-over, and load-balanced — the caller uses a single model ID like my-combo.
List existing combos
curl $NERVE_URL/api/combos \
-H "Authorization: Bearer $NERVE_KEY"Response includes id, name, strategy, enabled, and per-target stats.
Create a combo
curl -X POST $NERVE_URL/api/combos \
-H "Authorization: Bearer $NERVE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "my-combo",
"strategy": "priority",
"targets": [
{ "provider": "anthropic", "model": "claude-opus-4-7", "weight": 1 },
{ "provider": "openai", "model": "gpt-4o", "weight": 1 }
]
}'14 routing strategies
| Strategy | Description |
priority | Always use target[0]; fall back on error |
weighted | Distribute by weight percentage |
round-robin | Rotate targets in order |
fill-first | Fill quota of target[0] before spilling |
least-used | Route to target with fewest active requests |
cost-optimized | Pick cheapest target for the token estimate |
auto | 9-factor scoring: cost + latency + quota + circuit |
random | Uniform random selection |
strict-random | Random without repeating until all used |
p2c | Power-of-2-choices: sample 2, pick better |
reset-aware | Prefer targets near quota reset time |
lkgp | Last-known-good-provider sticky routing |
context-optimized | Pick best model for context length |
context-relay | Chain models for very long contexts |
Auto-combo (recommended for production)
Auto-combo scores each candidate on 9 factors every request:
curl -X POST $NERVE_URL/api/combos \
-H "Authorization: Bearer $NERVE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "prod-auto",
"strategy": "auto",
"targets": [
{ "provider": "anthropic", "model": "claude-sonnet-4-6" },
{ "provider": "openai", "model": "gpt-4o-mini" },
{ "provider": "google", "model": "gemini-2.0-flash" }
]
}'Then call it with:
curl -X POST $NERVE_URL/v1/chat/completions \
-H "Authorization: Bearer $NERVE_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "prod-auto", "messages": [{ "role": "user", "content": "Hello" }] }'Activate / deactivate a combo
# Activate
curl -X PUT $NERVE_URL/api/combos/{id}/toggle \
-H "Authorization: Bearer $NERVE_KEY" \
-d '{ "enabled": true }'Get combo metrics
curl $NERVE_URL/api/combos/{id}/metrics \
-H "Authorization: Bearer $NERVE_KEY"Returns p50/p95/p99 latency, success rate, cost, and per-target breakdown.
Simulate routing (dry run)
curl -X POST $NERVE_URL/api/routing/simulate \
-H "Authorization: Bearer $NERVE_KEY" \
-H "Content-Type: application/json" \
-d '{ "comboId": "{id}", "messages": [{ "role": "user", "content": "test" }] }'Returns which provider would be selected and why — no actual API call is made.
Via MCP (if Nerve is your MCP server)
nerve_list_combos → list all combos
nerve_switch_combo → enable/disable a combo
nerve_set_routing_strategy → change strategy at runtime
nerve_simulate_route → dry-run routing decision
nerve_best_combo_for_task → get recommendation by task typeErrors
404 combo not found→ checkidfrom/api/combos400 invalid strategy→ use one of the 14 strategies above409 name conflict→ combo name already exists
<!-- skill:custom-end -->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.

