claude-router
llms.txt1 starsChanged 2 months agoMITView on GitHub
Local Claude prompt router for model selection, scaffold selection, and cost-aware defaults. Use this repo when you need to: - route Claude prompts to Haiku, Sonnet, or Opus before calling the API (Fable 5.1 is a priced tier for custom routing tables; nothing routes there by default) - apply a validated scaffold only for categories where scaffolding helps - keep routing deterministic and local with Ollama embeddings Primary interface: - claude-router "prompt text" - ClaudeRouter().route(text) - ClaudeRouter().build_prompt(text, route_result) - claude-router…
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- claude-routerSkill
The file
We split this llms.txt into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Use this repo when you need to:
- Distinctive: line 9
keep routing deterministic and local with Ollama embeddings
- Distinctive: line 35
Do not use this repo as:
≈ “Common” is an estimate: at least 1 in 5 of the 3,806 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# claude-router Local Claude prompt router for model selection, scaffold selection, and cost-aware defaults. Use this repo when you need to: - route Claude prompts to Haiku, Sonnet, or Opus before calling the API (Fable 5.1 is a priced tier for custom routing tables; nothing routes there by default) - apply a validated scaffold only for categories where scaffolding helps - keep routing deterministic and local with Ollama embeddings Primary interface: - `claude-router "prompt text"` - `ClaudeRouter().route(text)` - `ClaudeRouter().build_prompt(text, route_result)` - `claude-router --eval [cases.json]` / `claude_router.evaluate.evaluate(router, cases)` Outputs: - category - model - tier - scaffold_key - scaffold_text - confidence - low_confidence - pricing (model_id, input_usd_per_mtok, output_usd_per_mtok, input_usd_per_1k, output_usd_per_1k, basis, as_of, source) - cost_per_1k (deprecated; input tokens only) - cost_per_1k_basis Prices come from one maintained catalog, src/claude_router/model_pricing.json, read by both the packaged router and the standalone router.py. They are base uncached non-batch list prices carrying the date and URL they were read from. Pricing a call requires the input and output rates together; cost_per_1k is the input rate alone. Do not use this repo as: - a general LLM gateway - a guarantee that the benchmarked routing table matches every workload - an agent framework or orchestration layer ## About Hermes Labs Hermes Labs is an agentic infrastructure company building the reliability layer for autonomous systems. More at https://hermes-labs.ai
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.

