Skip to main content
Every model your agent uses is paid for by one of three things:
  • A subscription you already have, such as Claude Code or ChatGPT.
  • An API key from a provider, OpenRouter, or Vercel AI Gateway.
  • Dari credits, when you have neither.
Dari prefers a subscription when one can serve the model.

Add A Subscription

Run dari accounts and choose Add a subscription, or open Subscriptions & Keys in the Dari Dashboard and choose Add Subscription. Subscriptions are personal. Each person on your team connects their own, and their requests use it. Connect more than one to pool them. Dari uses one at a time and moves to the next when it hits its limit. When several of your plans serve a model, a request tries the model maker’s plan first, then the others in this order: Claude Code, ChatGPT, Grok, Muse Code, OpenCode Go, GitHub Copilot, Vercel Token Pass. A plan that is paused or whose sign-in the provider rejects is skipped within the same request.

Add An API Key

Run dari accounts, or open Subscriptions & Keys in the dashboard, find the provider, and choose Add. API keys belong to your organization, and any of its routers can use them. Google (Gemini) models run only on your own Gemini API key; Dari credits do not cover them. From a script, pipe the key in so it stays out of shell history:
To use your own Amazon Bedrock or Microsoft Azure account, see Cloud Providers.

Usage Limits

When a subscription hits its usage limit, Dari pauses it until the provider’s reset time, and the request moves on:
  • Your next subscription of the same kind, in the order you connected them.
  • Your other plans that serve the model, in the order above.
  • An API key or Dari credits, once no plan can serve the model, for models with API Fallback turned on. Models without it pause too.
  • Your other models. If a plan caps one model, such as a weekly Opus limit, only that model pauses.
Turn on API Fallback per model on the router’s Models & Keys tab, or with dari router update <router_id> --api-fallback <model>. To serve only some of a provider’s models from your subscriptions, list them with dari router update <router_id> --subscription-model <model>; that provider’s other models run on its API key or Dari credits. Paused subscriptions show in dari accounts and on Subscriptions & Keys. Mark Available in a subscription’s menu ends a pause early.

Details

Some plans grant limit resets. With Use Banked Resets on in a subscription’s menu, Dari spends one when every subscription is paused. It is off by default. From the CLI: dari accounts subscription auto-reset <provider> on.A subscription’s page in dari accounts lists its banked resets with their expiry, and choosing one spends it now. From the CLI: dari accounts subscription resets <provider> lists them and dari accounts subscription use-reset <provider> [reset-id] spends one.
Dari reads Codex’s usage report, so a pause lasts until the window that blocked it resets, such as the weekly window rather than the five-hour one.
If every subscription is paused and no model has API Fallback, the request fails with 424 personal_subscription_unavailable. Requests that aren’t attributed to a person never use a subscription.
dari accounts provider update <credential_id> <name> --value-stdin replaces a key’s value. Every router using it picks up the change. dari accounts provider remove <credential_id> deletes a key that no router uses.
Meta limits a Muse Code subscription to Muse Code itself (Muse Code subscriptions). Dari recognizes Muse Code by the x-client-id header it sends.
dari accounts subscription connect <codex|claude-code|github-copilot|grok|muse-code|opencode-go|vercel-token-pass> connects a subscription. dari accounts subscription mark-available <provider> ends a pause. To choose subscriptions and fallback in a router file, see Router YAML.