by NadirRouter
Source-available LLM router and AI cost optimizer. Routes simple prompts to cheap or local models and complex ones to premium models, automatically. Drop-in OpenAI-compatible proxy for Claude Code, Codex, Cursor and OpenClaw. Self-hosted, no middleman.
# Add to your Claude Code skills
git clone https://github.com/NadirRouter/NadirClawGuides for using ai agents skills like NadirClaw.
Last scanned: 5/16/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-16T06:22:07.680Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}See how NadirClaw compares with popular alternatives.
NadirClaw is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by NadirRouter. Source-available LLM router and AI cost optimizer. Routes simple prompts to cheap or local models and complex ones to premium models, automatically. Drop-in OpenAI-compatible proxy for Claude Code, Codex, Cursor and OpenClaw. Self-hosted, no middleman. It has 662 GitHub stars.
Yes. NadirClaw passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/NadirRouter/NadirClaw" and add it to your Claude Code skills directory (see the Installation section above).
NadirClaw is primarily written in Python. It is open-source under NadirRouter on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh NadirClaw against similar tools.
No comments yet. Be the first to share your thoughts!
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
Most LLM requests don't need a premium model. In typical coding sessions, 60-70% of prompts are simple — reading files, short questions, formatting. They can be handled by models that cost 10-20x less.
$ nadirclaw serve
✓ Classifier ready — Listening on localhost:8856
SIMPLE "What is 2+2?" → gemini-flash $0.0002
SIMPLE "Format this JSON" → haiku-4.5 $0.0004
COMPLEX "Refactor auth module..." → claude-sonnet $0.098
COMPLEX "Debug race condition..." → gpt-5.2 $0.450
SIMPLE "Write a docstring" → gemini-flash $0.0002
3 of 5 routed cheaper · $0.549 vs $1.37 all-premium · 60% saved
Your keys. Your models. No middleman. NadirClaw runs locally and routes directly to providers. No third-party proxy, no subsidized tokens, no platform that can pull the plug on you. Why this matters.
Three moves, on every request:
NadirClaw and Nadir Pro share the same routing architecture. The numbers
below are from the trained classifier + DeBERTa verifier in Nadir Pro;
the NadirClaw classifier uses a simpler binary centroid that trades
some accuracy for zero training cost. Both run the same cascade rule
engine (nadirclaw/cascade_rules/).
Read this before quoting these numbers. This is a reference-assisted research ceiling: the verifier had the expensive model's reference answer, which a production cascade does not have. It is not production performance and not a savings forecast. The verifier that ships in Nadir Pro is reference-free and does not see a reference answer. Nadir publishes no universal production savings or quality percentage until it is measured on outcome-labelled customer traffic.
The composed system (pre-generation classifier + post-generation cascade verifier, τ=0.80), with the reference answer available:
| Metric | Value |
|---|---|
| AUROC | 0.961 |
| Expected Calibration Error (ECE) | 0.016 |
| Quality preserved vs always-Opus | 98.3% |
| Catastrophic-downgrade rate | 1.7% |
| Composed cost vs always-Opus | -60% |
Full τ-sweep and per-domain breakdown is in MODEL_CARD.md.
| Metric | Value |
|---|---|
| Composite score | 0.7118 |
| Projected leaderboard rank | #5 |
| Routers below (selected) | NotDiamond-0001, Auto Router, Martian |
RouterArena submission PR (live): RouteWorks/RouterArena#112.
Zero overlap between Nadir's training corpus and either held-out set:
| Held-out set | Audit run | Overlap |
|---|---|---|
RouterBench 0shot |
2026-05-24 | 0 of 36,481 |
RouterArena sub_10 |
2026-05-27 | 0 of 809 |
RouterArena full |
2026-05-27 | 0 of 8,399 |
The audit is reproducible from this repo:
verifier/contamination_audit.py.
Hash recipe: sha256(NFC(prompt).strip().casefold().utf8).
pip install nadirclaw
Or install from source:
curl -fsSL https://raw.githubusercontent.com/NadirRouter/NadirClaw/main/install.sh | sh
Then run the interactive setup wizard:
nadirclaw setup
This guides you through selecting providers, entering API keys, and choosing models for each routing tier. Then start the router:
nadirclaw serve --verbose
That's it. NadirClaw starts on http://localhost:8856 with sensible defaults (Gemini 3 Flash for simple, OpenAI Codex for complex). If you skip nadirclaw setup, the serve command will offer to run it on first launch.
NadirClaw is the free, source-available core, licensed under PolyForm Noncommercial (free for noncommercial use). If you are routing production traffic or running a team, Nadir Pro is the hosted version with more accurate routing, team features, and analytics. Same routing philosophy, zero vendor lock-in (Pro lets you BYOK and you can always fall back to NadirClaw self-hosted).
| NadirClaw (source-available, self-hosted) | Nadir Pro (Hosted) | |
|---|---|---|
| License | PolyForm Noncommercial 1.0.0 (free for noncommercial use; commercial license via getnadir.com) | Proprietary |
| Deploy | Self-hosted, localhost | api.getnadir.com or self-host via Docker |
| Pre-generation classifier | Binary centroid (~10ms), opt-in DistilBERT, or bundled wide_deep_asym_v3 trained checkpoint (~40ms CPU; see MODEL_CARD.md) |
Same trained classifier + closed-loop retraining, provider-health-aware ranking |
| Post-generation verifier | Rule-based heuristic (refusal / length / JSON checks, ~1ms) | Optional trained reference-free verifier on complete non-streaming responses; streaming bypasses it, errors fail open |
| Verifier-gated cascade | Yes (heuristic verifier) | Yes (trained verifier) |
| Storage | Local JSONL + SQLite | Postgres (Supabase), multi-tenant |
| Dashboard | Terminal + local web | Hosted web dashboard, per-team analytics |
| Cost tracking | nadirclaw savings CLI |
Live dashboard, monthly invoices, projected savings |
| Extras | Context optimize, fallback chains | Everything in Free, plus semantic cache, response healing, prompt caching passthrough |
| Team | None | Org members, audit view, API key management, priority support (SSO on the roadmap) |
| Billing | N/A | Own provider keys on every plan; the provider bills inference. Nadir charges a flat $0.002 per request (decision calls included) from a prepaid balance, first 50 requests a month free, no fee on savings. Business is the same rate and adds orgs, a signed DPA and on-prem on a yearly license. Enterprise is custom (pricing) |
| Best for | Solo devs, self-hosters, a |