NadirClaw
by @doramirdor
Install, configure, and run NadirClaw LLM router to cut AI API costs by 40-70%. Use when the user wants to reduce LLM spending, route prompts to cheaper mode...
clawhub install nadirclawπ About This Skill
name: nadirclaw version: 1.0.0 description: Install, configure, and run NadirClaw LLM router to cut AI API costs by 40-70%. Use when the user wants to reduce LLM spending, route prompts to cheaper models, set up cost-saving proxy, or optimize API usage across providers (OpenAI, Anthropic, Google, Ollama). Also use when asked about model routing, LLM cost optimization, or setting up NadirClaw with OpenClaw.
NadirClaw Skill
NadirClaw is an open-source LLM router that classifies prompts in ~10ms and routes simple ones to cheap/local models while keeping complex work on premium models.
Install
pip install nadirclaw
Setup
Run the interactive wizard:
nadirclaw setup
Or auto-configure for OpenClaw:
nadirclaw openclaw onboard
This writes NadirClaw as a provider in OpenClaw config with model nadirclaw/auto. No restart needed.
Start
nadirclaw serve --verbose
Runs on http://localhost:8856. Any OpenAI-compatible tool can use it by pointing to this URL.
Point tools at NadirClaw
# OpenClaw (auto)
nadirclaw openclaw onboardClaude Code
ANTHROPIC_BASE_URL=http://localhost:8856/v1 claudeAny OpenAI-compatible tool
OPENAI_BASE_URL=http://localhost:8856/v1
Routing profiles
Pass x-routing-profile header or use these models:
nadirclaw/auto - smart routing (default)nadirclaw/eco - maximize savingsnadirclaw/premium - always use best modelnadirclaw/free - Ollama/local onlynadirclaw/reasoning - chain-of-thought optimizedMonitor savings
nadirclaw savings # cost savings report
nadirclaw report # detailed routing analytics
nadirclaw dashboard # live terminal dashboard
Key features
Troubleshooting
nadirclaw serve fails, check API keys: nadirclaw setupollama serve is running firstnadirclaw report --last 20 to see recent routing decisionsnadirclaw serve --verbose --log-rawβοΈ Configuration
Run the interactive wizard:
nadirclaw setup
Or auto-configure for OpenClaw:
nadirclaw openclaw onboard
This writes NadirClaw as a provider in OpenClaw config with model nadirclaw/auto. No restart needed.
π Tips & Best Practices
nadirclaw serve fails, check API keys: nadirclaw setupollama serve is running firstnadirclaw report --last 20 to see recent routing decisionsnadirclaw serve --verbose --log-raw