Skip to main content
Create a router from a local YAML manifest with the Dari CLI. This is the easiest way to keep a router configuration in source control.

YAML

Create router.yml:
Sign in and create the router:
dari enables automatic routing. For BYOK providers, first save an organization provider credential, then reference its stable ID with provider_credential_ids. The CLI uses the platform default and enables speculative routing. The command returns a router ID. Use it to retrieve the endpoint:

Dashboard

For a quick setup, open Routers in the Dari Dashboard, select Create Router, choose your models and saved provider credentials, and copy the endpoint from the router detail page. The dashboard is also where you can disable speculative routing. A router endpoint looks like this:

Next Steps