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:
slm enables automatic routing. Use provider_key_envs for BYOK values from environment variables instead of storing secrets in YAML. 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 provider keys, 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