Run It
The gateway needs Bun 1.3 or later. From thedari-gateway directory:
Provider API keys use each provider’s standard variable, such as
ANTHROPIC_API_KEY, OPENAI_API_KEY, or OPENROUTER_API_KEY.
Configure Routers
model: "dari/model/<id>" to pin one of a router’s models, or model: "dari/routing" to let the router choose. Without DARI_AUTO_ROUTING_API_KEY, dari/routing serves the router’s first model that has a credential, and falls back down the list on provider failures.
Connect Subscriptions
Point the Dari CLI at your gateway and connect plans:Launch Coding Agents
WithDARI_GATEWAY_URL and DARI_GATEWAY_KEY set, the launchers make no calls to Dari’s hosted API:
dari router request-costs and dari credentials subscription auto-reset are hosted-only.