ClawRouter
CLAUDE.md6.6k starsChanged 3 months agoMITView on GitHub
Smart LLM router for autonomous agents. <!-- br:models.chatVisible -->82<!-- /br:models.chatVisible --> models. Two ways to pay:
- Installs packages
Trending
Less talk lately.about the whole repository
Who's talking about BlockRunAI/ClawRouter
- didilili/ai-agents-from-zero“关于今日 Issue 区遭受恶意bot攻击的事件说明与共同举报倡议”GitHub · May 31, 2026 · 22 reactions
- A Hacker News story“Show HN: ClawRouter – Open-source LLM router that saves 78% on inference costs”Hacker News · Feb 5, 2026 · 12 points
- openclaw/crabpot“chore(deps): bump plugins/clawrouter from `e318761` to `788c547`”GitHub · Jul 21, 2026 · 1 reactions
- openclaw/crabpot“chore(deps): bump plugins/clawrouter from `e318761` to `f54d722`”GitHub · Jul 20, 2026 · 1 reactions
- openclaw/crabpot“chore(deps): bump plugins/clawrouter from `e318761` to `36d26b3`”GitHub · Jul 14, 2026 · 1 reactions
The biggest 5 of 27 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 27
Talked about on GitHub and Hacker News (27 times).
On GitHub · 26
- May 31, 2026关于今日 Issue 区遭受恶意bot攻击的事件说明与共同举报倡议 — didilili/ai-agents-from-zero22 reactions · 23 comments
- Jul 21, 2026chore(deps): bump plugins/clawrouter from `e318761` to `788c547` — openclaw/crabpot1 reaction · 3 comments
- Jul 20, 2026chore(deps): bump plugins/clawrouter from `e318761` to `f54d722` — openclaw/crabpot1 reaction · 2 comments
- Jul 14, 2026chore(deps): bump plugins/clawrouter from `e318761` to `36d26b3` — openclaw/crabpot1 reaction · 3 comments
- Jul 6, 2026chore(deps): bump plugins/clawrouter from `9706b01` to `9ae23c3` — openclaw/crabpot1 reaction · 3 comments
21 more on GitHub
- Jun 30, 2026chore(deps): bump plugins/clawrouter from `5e6cc2e` to `60caaf0` — openclaw/crabpot1 reaction · 1 comment
- Jun 23, 2026chore(deps): bump plugins/clawrouter from `aab2619` to `5e6cc2e` — openclaw/crabpot1 reaction · 1 comment
- Jun 12, 2026chore(deps): bump plugins/clawrouter from `bccb18a` to `aab2619` — openclaw/crabpot1 reaction · 1 comment
- Jun 10, 2026chore(deps): bump plugins/clawrouter from `8926950` to `bccb18a` — openclaw/crabpot1 reaction · 1 comment
- Jun 2, 2026chore(deps): bump plugins/clawrouter from `d87dd07` to `8926950` — openclaw/crabpot1 reaction · 1 comment
- May 25, 2026chore(deps): bump plugins/clawrouter from `ed699ce` to `d87dd07` — openclaw/crabpot1 reaction · 1 comment
- Oct 5, 2026agent-skills.github.blockrunai.clawrouter: 0.12.281 → 0.12.282 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.blockrunai.clawrouter: 0.12.279 → 0.12.281 — sudosubin/agents.nix0 reactions
- Sep 26, 2026agent-skills.github.blockrunai.clawrouter: init at 0.12.279 — sudosubin/agents.nix0 reactions
- Sep 14, 2026research: benchmark agent routing by successful task cost before claiming savings — rolter-ai/roltersays it tested it0 reactions
- Sep 14, 2026feat(gateway): add capability-first agent routing profiles to auto-mode — rolter-ai/rolter0 reactions
- Sep 7, 2026feat(x402): opt-in TWZRD AutoGate after SpendControl (#355) — twzrd-sol/ClawRouter-10 reactions
- Aug 4, 2026chore(deps): bump plugins/clawrouter from `e318761` to `40c7a2a` — openclaw/crabpot0 reactions · 2 comments
- Jul 10, 2026chore(deps): bump plugins/clawrouter from `9706b01` to `e318761` — openclaw/crabpot0 reactions
- May 18, 2026chore(deps): bump plugins/clawrouter from `ed699ce` to `e18d6d7` — openclaw/crabpot0 reactions · 3 comments
- May 13, 2026chore(deps): bump plugins/clawrouter from `bb72bdd` to `ed699ce` — openclaw/crabpot0 reactions · 2 comments
- Apr 30, 2026chore(deps): bump plugins/clawrouter from `44bc6be` to `bb72bdd` — openclaw/crabpot0 reactions · 4 comments
- Mar 28, 2026[Submit] Agent skills on Base — curated Base ecosystem agent skills collection — jiayaoqijia/cryptoskill0 reactions · 2 comments
- Mar 9, 2026Integration with ClawRouter — RightNow-AI/openfang0 reactions · 1 comment
- Mar 3, 2026implement clawrouter — TinyAGI/tinyagi0 reactions
- Feb 10, 2026feat: pluggable router support (API + Local) — Irona-ai/irona-node-sdk0 reactions · 7 comments
On Hacker News · 1
- Feb 5, 2026Show HN: ClawRouter – Open-source LLM router that saves 78% on inference costssays it tested it12 points · 1 comment
In this repository7 other files it gives its agents.
- clawrouterSkill
- imagegenSkill
- phoneSkill
- polymarket-tradingSkill
- predexonSkill
- releaseSkill
- surfSkill
The file
Files
ClawRouter
Smart LLM router for autonomous agents. <!-- br:models.chatVisible -->82<!-- /br:models.chatVisible --> models. Two ways to pay:
- Wallet (default) — x402 USDC micropayments signed per call, against
blockrun.ai/api(Base) orsol.blockrun.ai/api(Solana). New installs default to Solana. - API key —
brk_live_…from user.blockrun.ai, billed against card-funded account credit, againstapi.blockrun.ai.src/api-key.tsresolves it (env →~/.blockrun/.api-key→~/.openclaw/blockrun/api-key); a key present anywhere wins over a wallet, and no wallet is generated or read in that mode.
Commands
npm install # install dependencies
npm run build # compile with tsup
npm run dev # watch mode
npm test # run vitest
npm run typecheck # type checking
npm run lint # eslint
npm run format # prettier
npm run test:resilience:quick # error + lifecycle resilience tests
npm run test:resilience:full # full resilience suite (4hr stability)
npm run test:e2e:tool-ids # end-to-end tool ID sanitization
npm run test:docker:install # Docker install test
npm run test:docker:edge-cases # Docker edge case tests
npm run test:docker:integration # Docker integration testsProject structure
src/
├── index.ts # Library entry point
├── cli.ts # CLI entry point
├── auth.ts # Wallet-based authentication
├── api-key.ts # BlockRun API-key auth (api.blockrun.ai)
├── balance.ts # USDC balance management
├── models.ts # Model registry and scoring
├── config.ts # Configuration
├── errors.ts # Error classification
├── logger.ts # Logging
├── journal.ts # Request journaling
├── exclude-models.ts # Model exclusion logic
├── dedup.ts # Request deduplication
├── fs-read.ts # Filesystem reading
├── compression/ # Request/response compression
├── doctor.ts # Diagnostic tool
└── partners/ # Partner integrationsKey dependencies
@x402/fetch,@x402/evm,@x402/svm— x402 payment protocolviem— Ethereum interaction@solana/kit— Solana interaction@scure/bip32,@scure/bip39— Wallet key derivation
Conventions
- TypeScript strict mode, ESM
- Build with tsup, test with vitest
- Lint with eslint, format with prettier
- Node >= 22
- MIT license
- npm registry:
@blockrun/clawrouter <!-- br:clawrouter.dimensions -->15<!-- /br:clawrouter.dimensions -->-dimension scoring for model routing (all local, < 1ms)
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.

