by doramirdor
Smart LLM router that cuts AI costs by 40-70%. Routes simple prompts to cheap/local models, complex ones to premium. Works with Claude Code, OpenClaw, Cursor. OpenAI-compatible proxy, runs locally.
# Add to your Claude Code skills
git clone https://github.com/doramirdor/NadirClawOpen-source LLM router that saves you money. Simple prompts go to cheap/local models, complex prompts go to premium models -- automatically.
NadirClaw sits between your AI tool and your LLM providers as an OpenAI-compatible proxy. It classifies every prompt in ~10ms and routes it to the right model. Works with any tool that speaks the OpenAI API: OpenClaw, Codex, Claude Code, Continue, Cursor, or plain curl.
🔒 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.
<p align="center"> <img src="docs/images/architecture.png" alt="NadirClaw Architecture" width="700" /> </p> <p align="center"> <img src="docs/images/dashboard.svg" alt="NadirClaw Dashboard" width="800" /> </p>Comparisons: NadirClaw vs OpenRouter | NadirClaw vs ClawRouter
CI/CD? Use the NadirClaw GitHub Action to route your CI LLM calls automatically.
No comments yet. Be the first to share your thoughts!
Monitor your routing in real-time with nadirclaw dashboard:
Install the dashboard extras: pip install nadirclaw[dashboard]
pip install nadirclaw
Or install from source:
curl -fsSL https://raw.githubusercontent.com/doramirdor/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.
auto, eco, premium, free, reasoning — choose your cost/quality strategy...