8 Best Claude Code Router Alternatives in 2026 (Open Source)
Claude Code Router — Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interact with the model while enjoying updates from Anthropic.. vs using Claude Code directly: Route different types of requests (background, thinking, long context) to optimal models from any provider, saving costs while maintaining Claude Code's UX - with dynamic switching and plugin system
These 8 open-source tools do the same job. They are ordered by how closely they match Claude Code Router, with live GitHub data so you can see which projects are actively maintained.
| Tool | GitHub stars | Stars / 30d | Last commit |
|---|---|---|---|
| Claude Code Router(original) | 37.5k | +1,113 | 2026-09-26 |
| NadirClaw | 655 | +46 | 2026-09-23 |
| Manifest | 7.5k | +552 | 2026-09-30 |
| Claude Code | 148.7k | +10,459 | 2026-09-30 |
| Codex | 127.4k | +9,531 | 2026-09-30 |
| Ollama | 182.0k | +2,511 | 2026-09-30 |
| Gemini CLI | 107.2k | +1,269 | 2026-09-29 |
| LLM | 12.6k | +179 | 2026-09-22 |
| Happy | 24.0k | +1,210 | 2026-09-28 |
1. NadirClaw
Open-source LLM router & AI cost optimizer. Routes simple prompts to cheap/local models, complex ones to premium — automatically. Drop-in OpenAI-compatible proxy for Claude Code, Codex, Cursor, OpenCl
What sets it apart: Local-first LLM cost optimizer — classifies prompt complexity in 10ms and routes simple requests to 10-20x cheaper models, with no third-party proxy or middleman
Best for: Teams spending heavily on LLM APIs wanting 40-70% cost reduction; AI coding assistants (Claude Code, Cursor) with mixed complexity prompts; Budget-conscious developers using multiple LLM providers
2. Manifest
Smart LLM Routing for OpenClaw. Cut Costs up to 70% 🦞🦚
What sets it apart: Free, open-source, local-first LLM router with transparent scoring — vs OpenRouter which is a cloud proxy with 5% fee and no routing transparency
Best for: Reducing LLM API costs by routing to cheapest capable model; Teams using multiple LLM providers who want automatic failover
3. Claude Code
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows
What sets it apart: Unlike Codex (OpenAI) which also runs in terminal, Claude Code has deeper codebase understanding via long-context and native GitHub integration with @claude mentions
Best for: Developers who live in the terminal and want AI-assisted coding without leaving CLI; Teams using GitHub workflows who want automated PR reviews and code generation
4. Codex
Lightweight coding agent that runs in your terminal
What sets it apart: Unlike Claude Code (Anthropic-only), Codex uniquely integrates with existing ChatGPT subscriptions and offers both CLI and cloud-based (Codex Web) agent variants
Best for: OpenAI ecosystem users wanting a terminal-first coding agent with ChatGPT plan integration; Teams already paying for ChatGPT Enterprise who want CLI-based code automation
5. Ollama
Get up and running with Kimi-K2.5, GLM-5, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
What sets it apart: Unlike vLLM (production server focus) or LM Studio (GUI-first), Ollama is the simplest CLI-first tool for running local LLMs with one-command setup, an OpenAI-compatible API, and the largest ecosystem of 100+ community integrations.
Best for: Developers who want to run open-source LLMs locally with zero configuration; Privacy-sensitive use cases requiring fully offline LLM inference
6. Gemini CLI
An open-source AI agent that brings the power of Gemini directly into your terminal.
What sets it apart: Unlike Claude Code ($20+/month) and Codex (ChatGPT subscription), Gemini CLI offers the most generous free tier (1,000 req/day) with 1M token context and built-in Google Search grounding
Best for: Developers wanting a free, high-quota AI coding CLI with 1M token context for large codebases; CI/CD pipelines needing automated AI-powered PR reviews via GitHub Actions
7. LLM
Access large language models from the command-line
What sets it apart: vs direct API calls: Swiss-army-knife CLI that unifies 100+ LLMs behind one command, with automatic SQLite logging, embeddings, schemas, and a rich plugin ecosystem
Best for: Power users who want LLM access from the terminal; Quick prototyping and experimentation with multiple LLM providers; Building CLI-based LLM workflows with conversation history
8. Happy
Mobile and Web client for Codex and Claude Code, with realtime voice, encryption and fully featured
What sets it apart: Only mobile client for Claude Code and Codex with E2E encryption and instant device switching — vs being tethered to your desktop while agents run
Best for: Developers wanting mobile access to Claude Code sessions; Monitoring long-running AI coding tasks from phone; Teams needing push notifications for AI agent actions