
Using NadirClaw with Claude Code
Using NadirClaw with Claude Code Claude Code burns through Sonnet 4.5 tokens faster than you'd expect. A typical refactoring session can rack up $2-3 in API costs. NadirClaw cuts that by 50-70% by routing simple tasks to cheaper models automatically. How It Works Claude Code sends every prompt to whatever model you configured. NadirClaw sits between Claude Code and Anthropic, classifies each prompt, and routes trivial stuff (doc lookups, simple edits, boilerplate) to Haiku while keeping complex reasoning on Sonnet. You don't change how you work. The savings happen invisibly. Setup 1. Install NadirClaw git clone https://github.com/doramirdor/NadirClaw.git cd NadirClaw npm install 2. Configure Your API Keys Create .env : ANTHROPIC_API_KEY=sk-ant-xxx PORT=3000 3. Start the Proxy npm start NadirClaw runs on localhost:3000 by default. 4. Point Claude Code at NadirClaw Instead of using Anthropic's API directly, configure Claude Code to use your local proxy. Option A: Environment variable exp
Continue reading on Dev.to Tutorial
Opens in a new tab




