Claude Code model router
Agent Router
CLI that picks Cursor, Claude Code, Codex, or OpenCode + model/effort for a task, then launches it. Powered by Jev and Herdr
Install
git clone https://github.com/nidhi-singh02/agent-router.gitFrom the README
Agent Router Local-first, quota-aware routing for AI coding agents in Herdr. router is a command-line tool that picks an AI coding agent, model, and reasoning effort for a task, then starts that agent for you in a Herdr pane. It filters your subscriptions with fixed rules (enabled models, quota, the 40% reserve on shared accounts), asks TypeSafe to rank what is left and choose an effort, starts the chosen agent (Cursor, Claude Code, Codex, or OpenCode), and hands it the task. Pre-release: the project is under active development. Review the security and privacy notes below before using real credentials or shared accounts. Demo Why Agent Router? - Quota-aware: routes around depleted or reserved subscription capacity. - Policy-first: deterministic eligibility rules run before semantic ranking. - Local-first: configuration, usage snapshots, decisions, and session history stay on your machine unless an explicitly configured integration needs them. - Agent-agnostic: supports Cursor, Claude Code, Codex, and OpenCode through one command. Prerequisites - Node.js 20 or newer (nvm use reads .nvmrc). - A TypeSafe API key. Routing always calls TypeSafe; there is no fallback. Each run sends the task text to TypeSafe. Recognizable credentials are rejected locally before the call; do not place other sensitive narrative data in routing tasks. - At least one agent CLI you are logged in to: agent (Cursor), claude (Claude Code), codex, or opencode. The router uses those logins; no provider API keys are needed. - Herdr, to launch agents. router run without --dry-run only launches from inside a Herdr pane (HERDR_ENV=1). Setup 1. Install and build 2. Put router on your PATH Or add an alias to ~/.zshrc: After git pull, run npm run build again. 3. Create your…
Details
- Repository
- nidhi-singh02/agent-router
- Language
- TypeScript
- License
- MIT
- Last updated
- 27 September 2026
- Topics
- agentsaiclaude-codeclicodexcodingdeveloper-toolsherdrherdr-pluginjevmodel-routing
FAQ
What is Agent Router?
CLI that picks Cursor, Claude Code, Codex, or OpenCode + model/effort for a task, then launches it. Powered by Jev and Herdr It is a model router for Claude Code, from nidhi-singh02/agent-router on GitHub.
How do I install Agent Router?
Clone nidhi-singh02/agent-router from GitHub and follow the setup steps in its README.
Is Agent Router popular?
nidhi-singh02/agent-router has 120 GitHub stars and 15 forks. It was last updated on 27 September 2026.
More model routers & proxies
ccMesh
128VkRainB/ccMesh
Claude Code / Codex local AI proxy gateway desktop app (Tauri). Anthropic Messages <-> OpenAI-compatible protocol transform, model mapping, endpoint rotation/failover. 本地桌面代理网关:协议转换、模型映射、多端点轮换/熔断,对接官方 API 或中转站,不改客户端。Windows/macOS/Linux.
AnyRouter Transparent Proxy
110RebornQ/AnyRouter-Transparent-Proxy
一个基于 FastAPI 的轻量级透明 HTTP 代理服务,专为解决 AnyRouter 的 Anthropic API 在 Claude Code for VS Code 插件中报错 500 的问题而设计。
X Router
97daokimluc/X-Router
Connect **Claude Code, Cursor, Cline, Kiro, Windsurf, Codex, OpenClaw, Antigravity** and any OpenAI-compatible tool to multiple AI providers through a single endpoint.
Claude
107travisjneuman/.claude
The Ultimate Claude Code Toolkit: 180 skills, 10 agents, 29 commands, 7 hooks, and 81 marketplace repos (11,000+ community skills). Drop-in ~/.claude config with a generated index and router that loads the right resources on demand. Zero config required.
Antigravity Add Model
117vahapogut/antigravity-add-model
Proxy patch for Google Antigravity that intercepts internal Cloud Code API and adds support for OpenAI, Claude, Ollama, Gemini and any custom LLM provider.
Tokenbank
110wink-run/tokenbank
Token Bank — the local LLM gateway that sits between your AI agents and every provider. Know where tokens go · Spend less with smart routing to Ollama, Groq, GitHub Models · Earn by sharing idle quota on a community P2P network. One-click onboarding for Cursor, Claude Code, Codex CLI, Gemini CLI — no agent changes. Full trace, seamless model swap
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.