> ## 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.

# Router Evals

> Add benchmark scores as evidence for model selection.

Router evals are model scorecards. Create one from **Evals** in the dashboard or upload a CSV with the Dari CLI:

```csv theme={null}
model_id,score,thinking_level,notes
openai/gpt-6.1-sol,87,high,Strong public run
openai/gpt-6.1-sol,82,off,Non-reasoning run
anthropic/claude-sonnet-5-5,81,,Generic score
```

`model_id` and `score` must be the first two columns. Higher scores are better. `thinking_level` and `notes` are optional. The CLI also accepts an optional `metadata_json` column containing a JSON object. Model IDs must exactly match the provider-prefixed IDs enabled on the router, and each model/level pair must be unique.

```bash theme={null}
dari eval create \
  --name "SWE-bench Verified" \
  --description "Public benchmark scores." \
  --min-score 0 \
  --max-score 100 \
  --file scores.csv
```

Use `--file -` to read CSV data from standard input. The command validates the CSV before creating the scorecard and prints the created eval as JSON.

Put a `cost_per_task_usd` number in a row's `metadata_json` to record what the model cost per task. When two or more rows have one, the eval page plots score against cost per task and marks the Pareto frontier: the models no other model beats on both. `dari eval list` returns each eval's `picks`, its cheapest and best-scoring rows.

**Public Evals** are synced by Dari from public leaderboards. They include [SelfBench](https://selfbench.dev) releases: coding tasks rebuilt from real repositories' merged pull requests, each scored with accuracy and cost per task.

Filter scorecards by model from the filter button on **Evals**, or with the CLI. A scorecard matches when it scores every listed model. Add thinking levels after a colon to require a score at any of those levels for that model:

```bash theme={null}
dari eval list --model anthropic/claude-fable-5-1:medium,high --model openai/gpt-6.1-sol
```

Every router uses your evals automatically. For each routing decision, every eval your organization owns plus the Public Evals are candidates, and Dari asks Jev which ones measure the kind of work the request is doing; evals Jev rates more than 30% likely to be relevant inform that decision. Dari prefers a score matching both model and reasoning level, then falls back to that model's row with a blank level. Scores inform selection; they do not define a fixed formula.

Eval score imputation is on by default for new routers. Turn it off or back on from the CLI:

```bash theme={null}
dari router update <router-id-or-endpoint> --eval-score-imputation=false
dari router update <router-id-or-endpoint> --eval-score-imputation=true
```

Omitting the flag on update keeps the router's current setting.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.