NadirClaw
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 Ope
What is NadirClaw?
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.
Overview of NadirClaw
What it is
NadirClaw is a source-available LLM router and AI cost optimizer. It routes simple prompts to cheap or local models and complex ones to premium models automatically. It acts as a drop-in OpenAI-compatible proxy for tools such as Claude Code, Codex, Cursor, and OpenClaw. NadirClaw is self-hosted and runs locally; API keys never leave the user's machine. It is licensed under PolyForm Noncommercial 1.0.0, making it source-available but not open source.
Key features
- Routes every prompt to the cheapest model that can reliably answer, then verifies the output and escalates only when necessary.
- Classification overhead of approximately 10ms per request.
- Drop-in proxy compatible with any OpenAI-compatible client.
- Runs locally with no third-party middleman.
- Fallback chains for automatic failover when models are unavailable.
- Built-in cost tracking via CLI dashboard and reports.
- Context Optimize feature that compacts bloated context before dispatch, cutting input tokens by 29–71% on synthetic payloads and 1–10% on real traffic.
Use cases
NadirClaw is designed for coding sessions where 60–70% of prompts are simple (reading files, short questions, formatting) and can be handled by cheaper models. It works with AI coding assistants such as Claude Code, Cursor, Aider, Windsurf, Codex, and OpenClaw. It is suitable for solo developers and self-hosters who want to reduce LLM API costs without sacrificing quality.
Getting started
bashpip install nadirclawOr install from source:bashcurl -fsSL https://raw.githubusercontent.com/NadirRouter/NadirClaw/main/install.sh | shThen run the interactive setup wizard:bashnadirclaw setupStart the router:bashnadirclaw serve --verboseNadirClaw starts on http://localhost:8856 with sensible defaults (Gemini 3 Flash for simple, OpenAI Codex for complex).
License and pricing
NadirClaw is licensed under PolyForm Noncommercial 1.0.0. It is free for noncommercial use; a commercial license can be obtained via getnadir.com. The hosted version, Nadir Pro, has a separate pricing model (no base fee, 25% of the first $2K in measured monthly savings, 10% above), but NadirClaw itself has no billing.
Based on the project's public README and repository metadata.