Skip to main content
Install the Dari CLI, then run:
The first launch signs you in and opens an Accounts page. Connect a Claude Code or ChatGPT subscription, an API key, or use Dari credits. After that, dari claude goes straight to Claude Code. Your own Claude Code settings are left alone. Arguments are passed through to Claude Code:

Choose A Model

Switch models with /model. You get every model enabled on your router, and each one shows what pays for it: a subscription, an API key, or Dari credits. Dari Routing (dari/routing) picks the best model for each request. It needs the Autorouting plan ($20/month for individuals); run dari accounts and choose Get auto-routing. Without it, Claude Code starts on your router’s first model. The status line shows which model served each turn and links to it in Activity.

Usage Limits

When a subscription hits its limit, Dari pauses it until it resets and moves to your next subscription or API key. See Usage Limits.

Main And Subagent Models

To run the main agent on one model and subagents on another, set Role Models on a router and assign it to Claude Code:
assign-agent works for any router. Move Claude Code back by assigning it to the default router.

Plain claude And The Desktop App

dari claude never changes your Claude Code settings. To make plain claude or the Claude desktop app route through Dari, set it up once:
--cli sets up plain claude and --desktop sets up the app; pass both to set up both. Restart the app afterward. Run setup again after you change your router’s models, and dari setup claude --remove to undo it. The app lists only Claude models, plus Dari Routing.

Manual Setup

To skip the launcher, create a Routing key and set:
For another router, use https://routing.dari.dev/<router_id> as the base URL.

Details

opus, sonnet, fable, and haiku mean your router’s model from that family. If the router doesn’t enable that family, the request fails instead of running on something else.
With Dari Routing, a subagent that names no model is routed on its own. Otherwise it uses the session’s current model. A model named in an agent definition always wins. Main, subagent, and workflow agents appear separately in Activity.
On Dari Routing, the router picks the reasoning level. On a specific model, the effort you pick in /model is used.
Background requests skip routing. Compaction, side questions, and prompt suggestions run on the model and thinking level the agent is on, as they do in Claude Code itself. Conversation titles use the router’s Haiku, and auto mode’s safety checks run on the cheapest model. Web search runs on the cheapest Claude model your router enables on the Anthropic API. On Dari managed billing, each search costs the provider’s search fee, $10 per 1,000 searches, on top of tokens; a search that fails is free. Auto mode’s server-side checks work when an Anthropic model serves the turn; on other providers, Claude Code checks actions itself.
The launcher sends your Routing key in a custom header, so claude.ai connectors and Artifacts keep working. Your claude.ai sign-in is never sent to Dari. For manual setup, use ANTHROPIC_AUTH_TOKEN="" and ANTHROPIC_CUSTOM_HEADERS="Authorization: Bearer $DARI_ROUTING_API_KEY". After /login in a session, relaunch dari claude.
Set DARI_ROUTING_API_KEY to use an existing key instead of the one the CLI creates. Router and account settings are stored in Dari, so a new computer picks them up after sign-in.