What do you want to do?
4 use cases
-
Preview which agent and model a task would use
Run a dry run to see the agent, model, and effort the router would pick, without launching anything.
- Agent Router
- Software and DevOps
- Intermediate
View prompt
In the agent-router repo, run `router run "<task description>" --dry-run` and report the Selected line, the Why line, and the Quota line from the decision card. Verify that no Herdr pane was opened and no command was started.
-
Launch a task in a Herdr pane with the chosen agent
Let the router pick an agent, open a new Herdr pane, start it, and hand it the task.
- Agent Router
- Software and DevOps
- Intermediate
View prompt
In the agent-router repo, run `router run "<task description>"` from inside a Herdr pane and report the exit code. Verify that a new pane opened with the selected agent running, and that `router session` lists this launch.
-
Check subscription quota before routing a task
Read account usage with the status command so you know which subscriptions still have capacity.
- Agent Router
- Software and DevOps
- Intermediate
View prompt
In the agent-router repo, run `router status --usage` and list each account with its quota and whether it is eligible. Verify that shared accounts show their reserve and that no personal account is excluded only because quota is missing.
-
Let an agent route its next work phase via skill
Link the model-router skill so an agent can route the next phase of your work through the router.
- Agent Router
- Claude Code
- Codex
- Cursor
- Software and DevOps
- Intermediate
View prompt
Using the model-router skill from the agent-router repo, route the next phase of the plan at <plan path> and report which agent, model, and effort the router selected. Verify that the router decision card appears in the output before any work starts.
How to use Agent Router
- Check you have what it needs: Node.js 20 or newer; A TypeSafe API key, since routing always calls TypeSafe; At least one agent CLI you are logged in to: agent (Cursor), claude (Claude Code), codex, or opencode.
- Open nidhi-singh02/agent-router on GitHub and read the README and license.
- Run
git clone https://github.com/nidhi-singh02/agent-router.gitand change into the cloned folder. - Run
npm installand thennpm run build. - Run
npm link -w @agent-router/routerto putrouteron your PATH. - Store your TypeSafe key with
security add-generic-password -a "$USER" -s model-router-typesafe -won macOS, then add your accounts to.model-router/config.json.
These steps come from our top use case, Preview which agent and model a task would use, which also has a copy-paste agent prompt.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeAgent Router alternatives · Best AI repos for Software and DevOps
About this repo
- Who it is forDevelopers who use several AI coding agent subscriptions and want a quota-aware way to pick one for each task.
- Why it is hot
- LanguageTypeScript
- Sourcegithub.com/nidhi-singh02/agent-router · Back to Hot repos
Requirements
- Node.js 20 or newer
- A TypeSafe API key, since routing always calls TypeSafe
- At least one agent CLI you are logged in to: agent (Cursor), claude (Claude Code), codex, or opencode
- Herdr, for launching agents without --dry-run
- A config file with your accounts in the model-router home folder
Maintain Agent Router? Add the Featured on Deduped badge
Paste this into your README:
[](https://dedupedai.com/use-cases/nidhi-singh02-agent-router/?ref=badge)
Questions about Agent Router
What is Agent Router?
Agent Router is a TypeScript command-line tool that picks an AI coding agent (Cursor, Claude Code, Codex, or OpenCode), a model, and a reasoning effort for a task, then starts that agent in a Herdr pane. It is an open-source project on GitHub: https://github.com/nidhi-singh02/agent-router.
Who is Agent Router for?
Developers who use several AI coding agent subscriptions and want a quota-aware way to pick one for each task.
What can I do with Agent Router?
4 use cases so far, for example: Preview which agent and model a task would use; Launch a task in a Herdr pane with the chosen agent; Check subscription quota before routing a task. Each has steps and a copy-paste agent prompt.
What do I need to run Agent Router?
Node.js 20 or newer; A TypeSafe API key, since routing always calls TypeSafe; At least one agent CLI you are logged in to: agent (Cursor), claude (Claude Code), codex, or opencode; Herdr, for launching agents without --dry-run.
What are alternatives to Agent Router?
Other hot AI repos in Software and DevOps: Harness2, iFixAi, Orca, Diagram Design, AI Memory.
Is Agent Router safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.