Back to list
High-Potential
Python

🧩 NadirClaw: Open-Source LLM Router and Cost Optimizer

526 stars66 forksPython
aiai-cost-reductionai-routerclaude-codecodexcost-optimizationgeminillmllm-gatewayllm-proxyllm-routermodel-routing
As developers increasingly rely on AI tools, API costs can quickly escalate. NadirClaw addresses this by acting as an open-source LLM routing gateway that automatically directs requests to different models based on the complexity of the prompt. The logic is straightforward: simple tasks are routed to cheaper or local models, while complex queries are reserved for premium models. It functions as a drop-in, OpenAI-compatible proxy, making it easy to integrate with development tools like Cursor and Claude Code. Crucially, it is entirely self-hosted, ensuring that prompts do not pass through a third-party middleman. For teams or individuals who heavily use AI-assisted coding and want to strictly manage their API expenditures, this is a highly practical piece of infrastructure.