> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dari.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Create A Router

> Create an endpoint that routes across your enabled models.

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`:

```yaml theme={null}
name: Production Router
enabled_models:
  - openai/gpt-5.6-sol
  - anthropic/claude-sonnet-4-6
provider_key_sources:
  openai: managed
  anthropic: managed
routing_strategy: slm
```

Sign in and create the router:

```bash theme={null}
dari auth login
dari router create ./router.yml
```

`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:

```bash theme={null}
dari router get <router_id>
```

## Dashboard

For a quick setup, open **Routers** in the [Dari Dashboard](https://app.dari.dev), 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:

```text theme={null}
https://routing.dari.dev/rtr_123/chat/completions
```

## Next Steps

* [Configure Models](/router/configure-models)
* [Configure Provider Keys](/router/configure-provider-keys)
* [Speculative Routing](/router/speculative-routing)
* [Router Evals](/evals/overview)
