dari pi goes straight to Pi on your default router. Your Pi configuration is left alone.
Arguments are passed through to Pi:
Choose A Model
Switch models with/model, or request dari/model/<model> directly. Each model shows what pays for it: a subscription, an API key, or Dari credits. Press s in the setup model picker to change it.
Dari Routing (dari/routing) picks the model and reasoning level for each request. It needs the Autorouting plan ($20/month for individuals); run dari accounts and choose Get auto-routing (or press a in the setup model picker). Without it, Pi starts on your router’s first model.
The footer shows the model that served the turn, its thinking level, turns left on the routing lease (or pinned under Session Pinning), and a link to the turn 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.Use Another Router
Edit the default router, or make a new one, then assign it to Pi:Web Search
When your router has an OpenAI or Claude model, the launcher gives Pi aweb_search tool. Searches run on OpenAI’s or Anthropic’s own web search, so there’s no search key to set up. Dari serves each one on the cheapest model that can search, whichever model your session is on.
A ChatGPT subscription, an API key, or Dari credits can pay for searches. A Claude subscription can’t, since it serves only Claude Code. To launch without the tool:
Manual Setup
To skip the launcher, create a Routing key, export it asDARI_ROUTING_API_KEY, and add this to ~/.pi/agent/models.json:
baseUrl to https://routing.dari.dev/<router_id>/v1 and contextWindow to the smallest window among its models. To see the router’s reported value:
Details
Web search details
Web search details
OpenAI is tried first, then Claude, so a plan at its usage limit doesn’t stop searches. Search works with or without the Autorouting plan. The tool is offered only in sessions on a Dari model, and if another Pi extension already provides
web_search, Dari leaves it in place. 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.What the config fields do
What the config fields do
"reasoning": false lets Dari choose the reasoning level. contextWindow is the window Pi assumes; the default router’s models range from 200,000 to over 1,000,000 tokens, and a large value keeps long sessions from compacting early. sendSessionAffinityHeaders keeps one session grouped as one conversation in Activity, even after compaction.Your own key and other computers
Your own key and other computers
Set
DARI_ROUTING_API_KEY to use an existing key instead of the one the CLI creates. Router and subscription settings are stored in Dari, so a new computer reuses them after sign-in.