# EvalRouter documentation > EvalRouter runs model benchmarks from a terminal or over HTTP: pick a benchmark and a model, run, and export versioned results. Generated from https://evalrouter.ai/llms.txt: agents.md, then every published docs page in the same order. --- Source: https://evalrouter.ai/agents.md # EvalRouter for agents EvalRouter runs model benchmarks from a terminal or over HTTP. Choose a benchmark and model, run the evaluation, and export versioned results. An optional spending cap limits EvalRouter charges, including its platform fee; without one, the workspace's wallet balance limits the run. A connected model provider bills inference separately. Rules for agents: 1. The human's request to run an evaluation is enough to start it: no separate approval and no spending cap are needed. Show them the quoted price. When they ask what a run would cost, quote it with `--dry-run`, which starts nothing. Pass `--max-cost` only with a cap the human gave; never invent one. 2. Never print, log, commit or pass a credential as a command argument. 3. Use only IDs returned by this workspace's catalog and connections. Do not invent them. 4. Report a sample as a sample, and partial, failed or cancelled runs as what they are. The full agent workflow is the skill at https://evalrouter.ai/skill.md. This page is the short version. ## Install ```sh uv tool install --python 3.12 evalrouter # recommended: the evalrouter command in its own environment pip install evalrouter # or into an existing Python 3.12/3.13 environment evalrouter --help ``` ## Authenticate A human creates the account and workspace key in the browser: https://evalrouter.ai/register, then https://evalrouter.ai/settings/api-keys. The CLI never asks for a password. ```sh export EVALROUTER_API_KEY=... # set privately, from a secret manager export EVALROUTER_WORKSPACE_ID=... export EVALROUTER_BASE_URL='https://api.evalrouter.ai' # no /v1 suffix evalrouter whoami ``` Interactive alternatives: `evalrouter login` (browser device sign-in, `--no-browser` on a remote machine) or `evalrouter login --with-api-key` (stores a key read from stdin or a hidden prompt). `EVALROUTER_API_KEY` always takes precedence. Check that a key is set without printing it: `test -n "$EVALROUTER_API_KEY" && echo set`. ## Core loop ```sh evalrouter benchmarks list --json # benchmarks evalrouter benchmarks get gpqa-diamond --json # one benchmark's profiles, versions and metrics evalrouter models list --json # model routes evalrouter run gpqa-diamond --model gpt-4o-mini --sample 25 --dry-run --json # the quote; nothing starts evalrouter run gpqa-diamond --model gpt-4o-mini --sample 25 --yes --json # the run the human asked for evalrouter run gpqa-diamond --model gpt-4o-mini --sample 25 --max-cost 5 --yes --json # only with a cap the human gave evalrouter runs list --json # recent runs evalrouter runs get RUN_ID --json # one run's status and progress evalrouter runs wait RUN_ID --json # reattach to a run in progress evalrouter runs results RUN_ID --json # scores, coverage, errors, billing state evalrouter runs results RUN_ID --diff --json # compare with the previous run of this benchmark and model evalrouter runs export RUN_ID --file-format html,json # versioned reports; never overwrites without --overwrite ``` Without a terminal, with `--json` or `--no-input`, in CI and in known agent environments, `run` never prompts: it refuses a paid start without `--yes` and makes no paid request. `--max-cost` is optional: pass it only with a cap the human gave. Without it the workspace's wallet balance limits the run. Coverage defaults to a 25-task sample; `--full` grades every task. Repeating the same command resumes the same run instead of charging again; `--new` starts a separate one and `--detach` returns right away. `RUN_ID` may be a unique prefix; it is always required. Use an idempotency key for safe retries of an uncertain request. See the [model-evaluation quickstart](/developers/docs/quickstart) for an HTTP example. Exit codes: 0 success, 1 the API refused the request or another error, 2 invalid command line or input (nothing was sent), 3 the run ended without completing (failed, partial or cancelled), 4 not signed in or the credential was rejected, 5 a confirmation or choice was needed and not given, or the spending cap is below the quote's minimum cap to start, or the quote's own cap is above `--max-cost` (nothing started), 6 the API could not be reached, 124 `--wait-timeout` passed. A local wait timeout does not stop server work; `evalrouter runs cancel RUN_ID` does, and only when the human intends it. ## Output - `--json` writes one JSON result to stdout and progress to stderr; an error is one `{"error": {...}}` object on stderr with stdout empty. Prefer it whenever you parse output. - List commands also take `--jq EXPR`, `--columns a,b`, `--sort COL`, `--filter KEY=VALUE` and `--limit N`. - `evalrouter runs export RUN_ID --file-format json,csv,html,bundle` chooses report formats; `--output` names the file. - `evalrouter run --output-format` (and `quotes create --output-format`) chooses how a model is asked for a JSON answer on benchmark versions that offer a choice: `default`, `leaderboard`, `prompt_json`, `native_json` or `json_schema`. Results record the format, and scores from different formats are never ranked together. - `--progress auto|plain|json|off` controls progress on stderr. `json` writes `evalrouter.progress.v1` records (phase, processed/planned, percent, errors, spend, elapsed time) on every change and every 30 seconds. - `evalrouter runs events list RUN_ID --follow` prints the run's events as JSON lines until it ends. Use `--type` to keep categories such as `sample` or `capacity`, and `--after SEQUENCE` to resume. ## Reporting progress to the human Start the run detached with the browser open, then check it in short steps, so no command outlives your tool timeout: ```sh evalrouter run gpqa-diamond --model gpt-4o-mini --sample 25 --yes --detach --open --json evalrouter runs get RUN_ID --json # repeat about once a minute until status is terminal evalrouter runs results RUN_ID --json # when it ends ``` The `run` result carries `report_url` and `opened`. `--open` opens the live report page in the person's browser on their machine; when `opened` is false (CI, SSH, no display), give them `report_url` instead. `evalrouter open RUN_ID --json` does the same later. Report from `progress` on the run record, not from guesses: "37/120 tasks, 2 errors, $0.41 spent, 4 minutes in". Say "waiting for capacity" when `phase` is `waiting`. Do not promise a finish time; task durations, capacity waits and retries make time-left estimates unreliable. A run you stop checking keeps running on the server. If you can read stderr as it streams, `evalrouter runs wait RUN_ID --json --progress json` gives the same record on every change instead. ## Your own model endpoint (BYOK) The provider key is never a command argument. In a terminal the CLI asks for it with hidden input; scripts pipe it with `--key-stdin` or name an environment variable with `--key-env NAME`. ```sh evalrouter connections create --name NAME --endpoint URL --model MODEL # hidden prompt printf '%s' "$PROVIDER_KEY" | evalrouter connections create --name NAME --endpoint URL --model MODEL --key-stdin evalrouter connections create --name NAME --endpoint URL --model MODEL --key-env PROVIDER_KEY evalrouter connections check CONNECTION_ID # may send one small, provider-billed request evalrouter run gpqa-diamond --model connection:CONNECTION_ID --dry-run --json evalrouter connections update CONNECTION_ID --rotate-key ``` Without a terminal and without either option, the CLI reads `PROVIDER_API_KEY` if it is set and otherwise stops with an error. Your provider bills model requests separately, outside EvalRouter's charges and any cap. ## Costs Money in the API is a string of integer micro-USD: `"1000000"` is $1. A quote records: - `max_charge_microusd`: the spending cap, when the human gave one. New work stops when the cap or the balance can't fund the next call; calls already running finish and are charged. Without a cap, the workspace's wallet balance limits the run. - `plan`: coverage, total tasks, profiles, concurrency, rates (`plan.model.pricing`, `plan.pricing`), the minimum cap when one applies (`plan.pricing.minimum_cap_microusd`) and warnings. - `expires_at`, `price_version`, `retention` and the quote `id`. EvalRouter does not publish cost forecasts: charges follow actual usage at the quoted rates, and a cap stops new work (calls already running finish and are charged, so spend can end slightly above it). The optional legacy field `estimated_charge_microusd` (an upper estimate, not expected spend and not a bound) is omitted while forecasts are unpublished; treat it as absent, never as zero, and do not present it. Registration gives no credit; paid runs need available workspace credit. ## Errors API errors share one envelope: ```json {"error": {"code": "validation_error", "message": "Check the request fields.", "details": [], "request_id": "..."}} ``` Branch on `error.code`, never on `message`. Every response carries an `X-Request-ID` header with the same `request_id`. On 429, honour `Retry-After`. For an invalid or expired key, check the workspace and key status instead of creating an evaluation to diagnose it. To report a bug or missing feature, use `evalrouter feedback` (`POST /v1/feedback`) with the `request_id`, the command shape and the `error.code`, and no credentials or workspace identifiers. `evalrouter feedback status FEEDBACK_ID` reads a report back. The skill's [defect-reporting reference](https://evalrouter.ai/skill/report-defects.md) lists what to include. ## Turn your app's traces into a benchmark ```sh evalrouter traces connect --name my-app --env-file .env.local # the ingest key is written once, mode 0600 evalrouter traces list --connection CONNECTION_ID evalrouter datasets create --name "my-app production" evalrouter datasets import-traces DATASET_ID --connection CONNECTION_ID --limit 200 evalrouter datasets approve DATASET_ID --all evalrouter datasets versions create DATASET_ID evalrouter datasets benchmark DATASET_ID 1 # exact-match grading evalrouter run BENCHMARK_ID --model MODEL_A --full --yes evalrouter run BENCHMARK_ID --model MODEL_B --full --yes ``` See [Save traces to a dataset](https://evalrouter.ai/developers/docs/trace-datasets) for each step. ## More - Agent skill: https://evalrouter.ai/skill.md - Index for LLMs: https://evalrouter.ai/llms.txt (everything in one file: https://evalrouter.ai/llms-full.txt) - Public API schema: https://api.evalrouter.ai/openapi.json (also https://evalrouter.ai/.well-known/openapi.json) - Every docs page is also Markdown: add `.md`, for example https://evalrouter.ai/docs/cli.md ## Docs - [EvalRouter](https://evalrouter.ai/developers/docs/overview) ([Markdown](https://evalrouter.ai/docs/overview.md)): Run model benchmarks and inspect their results. - [Run a model evaluation](https://evalrouter.ai/developers/docs/quickstart) ([Markdown](https://evalrouter.ai/docs/quickstart.md)): Install, sign in, choose a benchmark and model, run and export. - [Account and workspace key](https://evalrouter.ai/developers/docs/authentication) ([Markdown](https://evalrouter.ai/docs/authentication.md)): Create an account and configure a scoped workspace key for the CLI. - [Sign in from the CLI](https://evalrouter.ai/developers/docs/cli-login) ([Markdown](https://evalrouter.ai/docs/cli-login.md)): Sign the CLI in with your EvalRouter account, switch workspaces and revoke devices. - [CLI commands](https://evalrouter.ai/developers/docs/cli) ([Markdown](https://evalrouter.ai/docs/cli.md)): Discover models and benchmarks, manage model connections, quote, run, monitor and export. - [Results and exports](https://evalrouter.ai/developers/docs/results) ([Markdown](https://evalrouter.ai/docs/results.md)): Read status, coverage and billing alongside native scores and versioned reports. - [Availability and limits](https://evalrouter.ai/developers/docs/availability) ([Markdown](https://evalrouter.ai/docs/availability.md)): Check runnable model/profile combinations and spending requirements. - [Model API reference](https://evalrouter.ai/developers/docs/model-api) ([Markdown](https://evalrouter.ai/docs/model-api.md)): Authentication, model discovery, quotes, spending caps, runs, status, results and exports. - [Python SDK](https://evalrouter.ai/developers/docs/python) ([Markdown](https://evalrouter.ai/docs/python.md)): Use the typed Python client for discovery, quotes, runs, progress, and results. - [TypeScript SDK](https://evalrouter.ai/developers/docs/typescript) ([Markdown](https://evalrouter.ai/docs/typescript.md)): The TypeScript client shares the API contract with the Python client. - [Bring your own benchmark](https://evalrouter.ai/developers/docs/bring-your-own-benchmark) ([Markdown](https://evalrouter.ai/docs/bring-your-own-benchmark.md)): Create a private benchmark with built-in scoring or request a maintained catalog addition. - [Benchmarks from Hugging Face datasets](https://evalrouter.ai/developers/docs/huggingface) ([Markdown](https://evalrouter.ai/docs/huggingface.md)): Pin a Hugging Face dataset to a commit; we check its hashes and license and keep our own copy. - [Report bugs and missing features](https://evalrouter.ai/developers/docs/feedback) ([Markdown](https://evalrouter.ai/docs/feedback.md)): Report a defect, missing capability or docs gap from the API or CLI, then check its outcome. - [Upload a file](https://evalrouter.ai/developers/docs/byob) ([Markdown](https://evalrouter.ai/docs/byob.md)): Make a private benchmark from a JSON Lines, CSV or Parquet file. - [Models, environments, and compatibility](https://evalrouter.ai/developers/docs/selection) ([Markdown](https://evalrouter.ai/docs/selection.md)): Select exact admitted identities and inspect compatibility before spending. - [Quotes, budgets, and billing](https://evalrouter.ai/developers/docs/quotes-budgets) ([Markdown](https://evalrouter.ai/docs/quotes-budgets.md)): A quote states prices and an optional spending cap, and makes external charges explicit. - [Import a workload](https://evalrouter.ai/developers/docs/workload-imports) ([Markdown](https://evalrouter.ai/docs/workload-imports.md)): Connect provider traces and datasets, review tasks, and freeze grading evidence. - [Import OpenTelemetry files](https://evalrouter.ai/developers/docs/otel-import) ([Markdown](https://evalrouter.ai/docs/otel-import.md)): Upload exported OpenTelemetry traces, folders and gzip files into a trace source, with an outcome for every trace. - [Save traces to a dataset](https://evalrouter.ai/developers/docs/trace-datasets) ([Markdown](https://evalrouter.ai/docs/trace-datasets.md)): Save retained traces as evidence, or turn recent traces into a private benchmark. - [Changelog](https://evalrouter.ai/developers/docs/changelog) ([Markdown](https://evalrouter.ai/docs/changelog.md)): Released app, CLI, and SDK updates, with explicit alpha and stable channels. --- Source: https://evalrouter.ai/developers/docs/overview Markdown: https://evalrouter.ai/docs/overview.md # EvalRouter Run models and agents on benchmarks, then see what each one completed, what it cost and the evidence behind every score. Pick a benchmark and a model in the catalog, check the quote and set a spending cap, run it, then read the graded results and exports. A run charges recorded usage against workspace credit. With a spending cap, new work stops when the cap or your balance can't fund the next call; calls already running finish and are charged. Finished work stays available. ## Start here - [Run your first evaluation](/developers/docs/quickstart) from the CLI. - Use the [Python SDK](/developers/docs/python), the [TypeScript SDK](/developers/docs/typescript) or the [model API](/developers/docs/model-api) from code. - [Bring your own benchmark](/developers/docs/bring-your-own-benchmark) from a file or a Hugging Face dataset, where your deployment has private imports. [Model compatibility](/developers/docs/selection) explains which combinations run. [Quotes and billing](/developers/docs/quotes-budgets) explains spending caps, credit set aside for running work, and charges. --- Source: https://evalrouter.ai/developers/docs/quickstart Markdown: https://evalrouter.ai/docs/quickstart.md # Run a model evaluation Pick a benchmark and a model, check the quote, and start the run from your terminal. The flow has five steps: - Choose a benchmark and a model. - Review the quote and set a spending cap. - Accept the quote. EvalRouter sets a little credit aside for each running task and charges actual usage. - Wait while the tasks run and EvalRouter grades them. - Read the results and exports. A model provider you connect may bill inference separately. ## Install and sign in 1. Install [uv](https://docs.astral.sh/uv/getting-started/installation/), then the CLI: ```sh uv tool install evalrouter ``` If your shell can't find the command, run `uv tool update-shell` and restart the terminal. Upgrade later with `evalrouter upgrade`. 2. Sign in through your browser. The CLI picks a workspace after sign-in. ```sh evalrouter login evalrouter whoami ``` For remote terminals and CI, see [CLI sign-in](/developers/docs/cli-login). ## Run in one step ```sh title="CLI" evalrouter run gpqa-diamond --model gpt-4o-mini --sample 25 ``` ```python title="Python" from evalrouter import EvalRouter client = EvalRouter() # reads EVALROUTER_API_KEY run = client.runs.create(benchmark="gpqa-diamond", model="gpt-4o-mini", wait=True) print(run.score) ``` ```typescript title="TypeScript" import { EvalRouter } from "@kimpton-ai/evalrouter"; const client = new EvalRouter(); // reads EVALROUTER_API_KEY const run = await client.runs.create({ benchmark: "gpqa-diamond", model: "gpt-4o-mini", wait: true }); console.log(await run.score()); ``` The CLI quotes the run, shows the quote, asks you to confirm, then follows it to the results. Add `--max-cost USD` to set a spending cap: new work stops when it can't fund the next call, and calls already running finish and are charged. > [!WARNING] > In a script, pass `--yes`. Without it, the CLI creates no quote, charges nothing and exits with status 5. ## Quote, then start 1. Find benchmark profile and model IDs: ```sh evalrouter benchmarks list --json evalrouter models list --json ``` 2. Save a quote request as `quote.json` with your IDs. To cap the run, add `max_charge_microusd` in micro-USD (2,000,000 is $2): new work stops when the cap can't fund the next call. Without it, your wallet balance limits the run. ```json { "model": {"kind": "managed", "route_id": "MODEL_ROUTE_ID"}, "selection": {"profile_ids": ["BENCHMARK_PROFILE_ID"]}, "coverage": {"mode": "sample", "sample_count": 3, "seed": 42} } ``` 3. Review the quote, start it and read the result: ```sh evalrouter quotes create --body quote.json --json evalrouter runs create --quote QUOTE_ID --yes --wait --json evalrouter runs results RUN_ID evalrouter runs export RUN_ID --file-format html,json ``` A quote checks compatibility, coverage and prices without calling a model. Starting the same quote again returns the same run, so a retry never starts a second one. [CLI commands](/developers/docs/cli) lists every command and exit status. ## Use HTTP Create a [workspace API key](/developers/docs/authentication) with the `eval:read` and `eval:write` scopes, then: 1. Send the same body to the quotes endpoint. 2. Start the quote with `POST /v1/runs`, restating its cap. 3. Follow the run with `GET /v1/runs/{run_id}`, then read its results. The [API schema](/developers/docs/openapi.json) lists every field. --- Source: https://evalrouter.ai/developers/docs/authentication Markdown: https://evalrouter.ai/docs/authentication.md # Sign-in and automation keys At a terminal, run `evalrouter login` and approve in your browser. You don't need an API key. See [CLI sign-in](/developers/docs/cli-login). For CI and services, use a workspace key. ## Workspace keys for CI and services [Create an account](/register), verify your email, then create a [workspace API key](/settings/api-keys) with only the permissions it needs. Set these through your secret manager or a private shell environment: - `EVALROUTER_API_KEY`: the key's secret value. - `EVALROUTER_WORKSPACE_ID`: its workspace's ID. - `EVALROUTER_BASE_URL`: `https://api.evalrouter.ai`, without `/v1`. Keep keys out of command arguments, URLs, source control, screenshots and shared logs. A key grants only its workspace permissions. It doesn't add credit or make an unavailable evaluation runnable. A device sign-in can read the credit balance but can't create keys, add credit or change billing settings. ## Manage keys - A key belongs to its workspace, not its creator, so it keeps working if they leave or change role. - The API keys page shows who created each key and when it was last used. Revoke keys you no longer need. - To replace a key, roll it: the new key has the same permissions, and the old one keeps working for up to seven days. - You're emailed a week before a key expires. EvalRouter revokes a key automatically when it appears in public code. - A key has permissions, not a role. An admin-only action also needs the key's write permission: `eval:write`, or `billing:write` for billing. A read-only key can't use it. If a key fails, check its status and workspace before retrying. Don't start an evaluation to diagnose authentication. Next: the [CLI quickstart](/developers/docs/quickstart). --- Source: https://evalrouter.ai/developers/docs/cli-login Markdown: https://evalrouter.ai/docs/cli-login.md # Sign in from the CLI Sign in from your terminal through your browser. New users can create an account in the same browser window. `evalrouter login` opens your browser at `auth.kimpton.ai`. After you sign in, the browser hands the session back to the waiting CLI, which then selects a workspace. ```sh evalrouter login evalrouter whoami ``` The CLI offers to open the browser. Press Enter, choose your account and finish at `auth.kimpton.ai`. The browser returns to the waiting CLI and shows the email you signed in as, or what went wrong. Choose **Try again** if sign-in wasn't completed. When sign-in finishes, the CLI shows your email and workspace. It selects your only workspace, the one named with `--workspace ID_OR_NAME`, or one you pick. Signing in costs nothing. Paid runs need credit. The CLI never asks for your password. ## Sign in with a code On a remote machine, or when the browser can't return to this computer, use a one-time code. The CLI also falls back to this flow, and says so. ```sh evalrouter login --no-browser ``` 1. Open the printed URL on any device and check that the account and code are yours. 2. Choose **Continue to Kimpton sign-in**, confirm the code and sign in if asked. 3. Keep the tab open until it says **Device connected**, and keep the command running. Confirming the code alone doesn't finish sign-in. The CLI issues one code per command and exits when it expires. If the code expires or you close the browser, press Ctrl+C and sign in again. You keep your account and workspace. Use **Use another account** if the browser shows the wrong identity. If you open `/device` directly, run `evalrouter login` first and enter its code. A failed attempt says why and leaves older CLI credentials in place. Older CLI versions may start with a code even when the browser can return. Upgrade with `uv tool upgrade evalrouter`. ## Commands | Command | Purpose | | --- | --- | | `login [--workspace ID_OR_NAME] [--no-browser]` | Sign this device in and choose a workspace. | | `login --with-api-key` | Store a workspace API key instead, from stdin or a hidden prompt. | | `whoami` | Show the signed-in account, workspace, role and scopes. | | `workspaces list` | List your workspaces and which ones this device is signed in to. | | `workspaces switch [WORKSPACE]` | Use another workspace by ID or name without signing in again. At a terminal, omit it to choose from a list. | | `logout [--all]` | Revoke this device's sign-in and delete its stored credentials, including a stored API key. | Google and email-and-password sign-in open the same account when both use the same verified email, on the website and in the terminal. Settings › Account › **Sign-in methods** lists them. ## Store a workspace API key For unattended agents and CI, use a scoped [workspace key](/developers/docs/authentication). The CLI never takes it as an argument: it asks with hidden input at a terminal, or reads stdin. ```sh evalrouter login --with-api-key printf '%s' "$EVALROUTER_KEY_FROM_SECRET_MANAGER" | evalrouter login --with-api-key ``` The CLI checks the key with the API before saving it and never prints it. A device keeps either a sign-in or a stored key: storing a key revokes the sign-in, `evalrouter login` replaces a stored key, and `evalrouter logout` deletes it. The CLI uses the first credential it finds: 1. the `EVALROUTER_API_KEY` variable 2. a stored key 3. a stored sign-in In a non-interactive shell it never prompts. With no credential it fails and asks you to sign in or set the key variable. With `--json`, the result goes to stdout and the sign-in code to stderr. ## Access and revocation Each workspace a device uses is a separate signed-in device. It can read evaluations, the credit balance and billing records, and write evaluations when your role allows. EvalRouter checks membership and role on every request. Removal from a workspace takes effect immediately. A CLI sign-in can't create API keys, add credit or change billing settings. A device signed in before credit reads existed must run `evalrouter login` once more. It is never upgraded silently. Review and revoke devices in [account settings](/settings/account). Revocation applies on the device's next request. `evalrouter logout` revokes the device on the server before deleting local credentials.
Where credentials are stored The CLI uses the operating-system keychain when available, otherwise a private file readable only by your user. You install nothing extra. A system permission prompt may appear for the keychain. Tokens are never printed, and sessions refresh locally.
--- Source: https://evalrouter.ai/developers/docs/cli Markdown: https://evalrouter.ai/docs/cli.md # CLI and interactive workspace Run, follow, compare and export evaluations from your terminal. Every resource command has the shape `evalrouter ` and maps to one API operation. ```sh uv tool install evalrouter evalrouter login evalrouter ``` Run the command alone for the interactive workspace, or add `--help` to any command for its flags. If your shell can't find the command, run `uv tool update-shell` and restart the terminal. The upgrade command installs new releases. Start with the [quickstart](/developers/docs/quickstart). ## Command shape ```sh evalrouter benchmarks list evalrouter models list evalrouter quotes create gsm8k --model gpt-5 evalrouter runs create --quote QUOTE_ID --yes --wait evalrouter runs list evalrouter runs get RUN_ID evalrouter runs results RUN_ID evalrouter runs export RUN_ID --file-format html,json ``` | Shortcut | What it does | | --- | --- | | `run` | Quote, confirm, start and follow a run in one step | | `agents list` | List the ACP Registry agents you can run | | `login`, `logout`, `whoami` | Sign in, sign out, show the account | | `open` | Open a run's report in the browser | | `upgrade` | Install the latest release | | `completion` | Print a shell completion script | | `api PATH` | Send one raw request (`-X METHOD`, `--body FILE`) | A command from an earlier release, such as `status` or `wait`, prints its replacement and exits 2. The [command reference](#command-reference) lists every resource command. ## Start a run The `run` command quotes the run, shows the price, asks you to confirm, starts it and follows it: ```sh evalrouter run gsm8k --model gpt-5 evalrouter run gsm8k --model gpt-5 --dry-run # the quote, nothing is charged evalrouter run gsm8k --model gpt-5 --yes --json evalrouter run gsm8k --model gpt-5 --max-cost 5 # with a spending cap evalrouter run --from RUN_ID # the same setup again, as a new run ``` - **Names, not IDs.** Benchmarks and models take a slug or an unambiguous name, and `gsm8k@2` pins a version. Exact IDs work too. At a terminal, a missing or ambiguous name becomes a choice. - **`--max-cost USD`** is the run's spending cap. New work stops when the cap or your balance can't fund the next call; calls already running finish and are charged. The run is refused before it starts only when the cap is below the quote's minimum cap. Without it, your wallet balance limits the run and the confirmation says so. Your API key's spend ceiling applies to everything it starts. - **`--dry-run`** prints the quote (spending cap and plan), starts nothing and needs no confirmation. - **Idempotent.** Repeating the same start after a lost connection returns the same run, never a second one. > [!WARNING] > Without a terminal (scripts, CI and agents), a paid start needs `--yes`. Without it, the command creates no quote, charges nothing and exits 5. To review the quote on its own, create it first with `quotes create`, then start it with `run --quote QUOTE_ID --yes`. ## Several models in one run Repeat `--model` to run two to eight models on the same tasks in one run, with one spending cap or your wallet: ```sh evalrouter run gsm8k --model gpt-5 --model claude-sonnet-5 --dry-run # one quote for every model evalrouter run gsm8k --model gpt-5 --model claude-sonnet-5 --benchmark gpqa-diamond evalrouter runs compare RUN_ID # rank, model, score, 95% range evalrouter runs continue RUN_ID # finish an interrupted run ``` The quote lists every model and, when the cap is split, each one's share. The reasoning setting applies to every model. The compare command ranks the models on the tasks every model finished: ```text gsm8k@6 · Accuracy · 1,319 tasks claude-sonnet-5-5 92.7% vs gpt-4.1-mini 84.2% on 1,319 tasks · difference 8.5 percentage points (6.9–10.1) 1 claude-sonnet-5-5 92.7% (91.3–94.0) 2 gpt-4.1-mini 84.2% (82.2–86.1) Difference 8.5 percentage points (6.9–10.1) ``` - The second line summarises the top two, adding "(N models)" when there are more. - Each row is rank (`1=` for a tie), model, score and 95% range. - The difference row (top model minus the other) appears with exactly two models. - A run compared on fewer tasks than planned says "300 of 1,319 tasks". - With `--json`, the output adds every pair. A run stopped by its cap, your credit or a cancellation shows as interrupted, with the reason. The continue command quotes only its unfinished tasks, asks you to confirm and starts the run that completes it, reusing finished tasks at no charge. The original then shows as continued, and comparing it compares the completed run. ## Evaluate an agent The `--agent` flag takes one value, and `--model` is the model the agent uses through the run's metered gateway: ```sh evalrouter agents list # ACP Registry agents and their integrity evalrouter run gsm8k --model gpt-5 --agent opencode # the pinned snapshot's version evalrouter run gsm8k --model gpt-5 --agent opencode@1.18.34 evalrouter run gsm8k --model gpt-5 --agent "local:my-agent --acp" evalrouter run gsm8k --model gpt-5 --agent remote:my-agent # a remote a2a agent, by connection name evalrouter run gsm8k --model gpt-5 --agent opencode --hosted # hosted by EvalRouter (or --agent hosted:opencode) ``` Registry and local agents run on this machine: EvalRouter delivers each task, meters every model call and grades the submission. A remote agent calls the model through EvalRouter. The agent list comes from the ACP Registry snapshot bundled with the CLI, with no API call, and labels each agent's integrity: | Label | Meaning | | --- | --- | | `pinned` | A binary with a published sha256 | | `package-registry` | An exact npm or PyPI package | | `unverified-upstream` | Runs only with `--allow-unverified`, and its observed hash is recorded | ### The agent contract EvalRouter evaluates any agent that meets its agent contract: | Part | What the agent does | | --- | --- | | Transport | It speaks ACP over stdio, and the CLI starts it. A remote agent speaks A2A with EvalRouter's evaluation extension. | | Model calls | It sends every model call to the run's gateway with the run's token. The gateway serves OpenAI Chat Completions, and an Anthropic Messages subset on routes that offer one. | | Task tools | It reads the task, submits its answer and finishes with the tools of the MCP server named `evalrouter`. EvalRouter grades only the last submission before `done`. | On your machine, the agent starts with an empty private home directory. It gets only the locale, path, proxy and certificate variables from your environment. Your EvalRouter and provider keys don't reach it. > [!WARNING] > This isn't a sandbox. The agent runs as your user, with network access, and can read any file whose path it knows. Some agents ask permission before they act, as Qwen Code and Claude Code do. The CLI then approves only calls to the `evalrouter` tools and reads or edits inside the task's workspace. The policy trusts what the agent reports, so it isn't an isolation boundary. OpenCode and Goose run their own shell and file tools without asking. ### Agent status | Agent | Status | How the CLI points it at the gateway | | --- | --- | --- | | `opencode` | `conformant` (1.18.34) | Its own config file names the gateway as its only provider. It ignores a workspace `opencode.json`. The models.dev download and auto-update are off. ACP mode `build`. | | `qwen-code` | `conformant` (0.25.0) | System settings select the gateway and the run's model. They outrank a workspace `.qwen/settings.json`. Qwen Code finds the task tools before the chat starts. Telemetry, suggestions, managed memory and the models.dev refresh are off. ACP mode `default`. | | `goose` | `conformant` (1.53.0) | Environment settings, which Goose reads before any config file, select its `openai` provider at the gateway. Workspace files don't change the provider. Session naming and telemetry are off. ACP mode `auto`. | | `claude-acp` | `conformant` (0.86.0) | Claude Code's gateway mode points every model it picks at the run's model, so it needs a managed Anthropic Messages model. It reads no user, project or local settings. ACP mode `default`. | | Status | Meaning | | --- | --- | | `conformant` | The agent meets the contract with a reviewed launch profile. This doesn't mean it is isolated. | | `compatible` | The agent meets the contract with the generic gateway settings. | | `unsupported` | The agent needs a model API the gateway doesn't serve, or a vendor-hosted account. | | `broken:` | The agent fails a contract check, for the stated reason. | A status holds for the pinned version. EvalRouter checks a new version again before it lists that version. These statuses are separate from the integrity labels above, which say how an agent is published. Check an agent yourself with `evalrouter agents check AGENT`. The check needs no account and makes no model calls. It sees only connections that use the proxy settings, so it reports `checks-passed`, never a contract status, and then exits 0. An interactive `evalrouter run --agent` runs the same check on a registry agent's first use. It stops the run only when the check sees a model bypass. Only a model call that bypasses the run's gateway fails the contract. That is a call to a known model provider, such as api.openai.com, or an agent that ignores the gateway settings. Other network activity doesn't fail it. At startup, OpenCode installs its plugin package from registry.npmjs.org, and Goose downloads the public models.dev catalog. Neither carries the task or a credential. Any other agent, including a local command, gets the gateway in the standard OpenAI environment variables, such as `OPENAI_BASE_URL`. The run plan warns that EvalRouter can't stop that agent from calling another provider. The run neither meters nor caps those calls. ## Scripts and agents | Setting | Effect | | --- | --- | | `--format human\|json\|ids` (`EVALROUTER_FORMAT`) | `json`: one JSON document on stdout. `ids`: one ID per line. | | `--json` | Same as `--format json`. | | `--no-input` | Never prompt. Where a choice is needed, fail with exit status 5. | | `--profile NAME` (`EVALROUTER_PROFILE`) | A named sign-in and API origin, kept separately (`evalrouter login --profile NAME`). | | `--base-url`, `--workspace-id`, `--timeout` | API origin, workspace and request deadline for this command. | A flag wins over its environment variable, which wins over the profile. The `options` command lists them all. With JSON output, stdout carries exactly one JSON document. Progress goes to stderr, only on a terminal. An error is one object on stderr, with stdout empty: ```json {"error": {"code": "confirmation_required", "message": "…", "hint": "…", "retryable": false, "request_id": null, "details": null}} ``` JSON output, `CI=true` and known agent environments never prompt. Colour is off without a terminal, and with `NO_COLOR` or a dumb terminal. The API serves clients from 0.5.0 on. An older CLI or SDK gets HTTP 426 on every command. Nothing runs, and EvalRouter charges nothing. The CLI prints the upgrade command for its installation. An interactive CLI offers to upgrade when a newer release exists. The background check never installs anything or delays startup. Scripts, JSON output and pinned installations skip it, and `EVALROUTER_NO_UPDATE_CHECK=1` turns it off. ### Exit status | Status | Meaning | | --- | --- | | 0 | Success. | | 1 | The API refused the request, or another error. | | 2 | Invalid command line or input. Nothing was sent. | | 3 | The run ended without completing (failed, partial or cancelled). | | 4 | Not signed in, or the credential was rejected. | | 5 | A confirmation or choice was needed and not given, or the spending cap is below the quote's minimum cap to start (or the quote's own cap is above `--max-cost`). Nothing started. | | 6 | The API could not be reached. A run you were watching keeps going on the server. | | 124 | The wait timeout passed. The server work continues. | | 130 | Interrupted (Ctrl-C). Submitted server work is not cancelled. | ### Lists and pages **Paging** | Flag | What it does | | --- | --- | | `--limit N` | Read up to N rows (default 50) | | `--all` | Read every page | | `--cursor` | Continue after an earlier page | **Output** | Flag | What it does | | --- | --- | | `--json` | One document that includes the next page cursor, empty on the last page | | `--columns`, `--sort` | Choose and order the table's columns | | `--filter KEY=VALUE` | Keep matching rows | | `--wide` | Show every column | | `--jq EXPR` | Shape the JSON with a jq expression | **Browse interactively** - `benchmarks list -i` - `models list -i` - `runs list -i` **Cache** | Flag | What it does | | --- | --- | | `--refresh` | Read now, ignoring a recent local copy | | `--offline` | Make no request | Public catalog reads may reuse a recent local copy when the server allows it, and say so. Quotes always check live availability and prices. ## Follow, read and export a run ```sh evalrouter runs wait RUN_ID --progress auto evalrouter runs events list RUN_ID --follow evalrouter runs results RUN_ID evalrouter runs export RUN_ID --file-format html,json --open evalrouter runs cancel RUN_ID evalrouter open RUN_ID ``` | Command or flag | What it does | | --- | --- | | `runs wait` | Retries temporary API failures with growing delays. Stops watching with exit status 6 after `--disconnect-timeout` (default 90 seconds) without an answer. | | `--progress json` | One `evalrouter.progress.v1` record per line on stderr | | `runs events list` | One JSON event per line. With `--follow`, reads until the run ends and exits like `runs wait`. | | `runs export` | Prints the full path of every file saved. Without `--output`, files are named `evalrouter-.` in the current directory, and an existing name gets a `-2` suffix. | | `--file-format bundle` | Saves the evidence ZIP | | `--include-resumed` | Saves the chain result of a run and its completed successors | | `comparisons report RUN_A RUN_B` | Downloads one descriptive comparison from saved results, without running inference. `--evidence` also downloads each full export. | | `comparisons create` | Compares exact result versions under a release policy on the server | | `result-groups create --name NAME --run RUN --run RUN` | Saves a group of runs for one report | | `open RUN_ID` | Opens the run's live report and prints its address. Never opens a browser in CI, over SSH, without a display, or with `--no-browser`. | ## Reasoning and output format Reasoning defaults belong to the exact model route. The `--reasoning` flag sets an explicit effort. Without it the route's default applies, and the quote shows the effective choice. The API refuses a route that can't run a requested effort, before any charge. Benchmark versions that grade a JSON answer may offer a choice of output format with `--output-format`. Prompts and grading are the same in every format. Results record the format, and scores from different formats are never ranked together. The API refuses a route that can't run the chosen format. Neither setting can change on an existing quote. | Format | Use | | --- | --- | | `default` | The benchmark version's default format | | `leaderboard` | The version's leaderboard policy. Never falls back to `prompt_json`. | | `prompt_json` | The author prompt only | | `native_json` | Adds the provider's JSON object response format | | `json_schema` | Adds the row's author schema as a non-strict JSON schema response format | ## Connections and remote agents The `connections create` command registers your own model endpoint. The CLI never takes a key as an argument. At a terminal it asks with hidden input, and scripts pass the key on stdin or name an environment variable. ```sh printf '%s' "$PROVIDER_KEY" | evalrouter connections create --name NAME --endpoint URL --model MODEL --key-stdin evalrouter connections check CONNECTION_ID ``` Use a checked connection as a quote's model, or as `--model connection:ID` on `run`. Your provider may bill model or agent requests separately. A **provider account** holds one key and base URL for several models. Add it once, then attach each model to it: ```sh evalrouter providers add --name munito --endpoint URL --key-ref op://vault/item/key evalrouter connections create --name qwen --provider munito --model MODEL ``` | Change with `providers update NAME` | Effect | | --- | --- | | A new key (`--rotate-key`, `--key-stdin`, `--key-env` or `--key-ref`) | Running evaluations continue and their next call uses it. A call already being sent when the change commits may use the previous key once. | | A new `--endpoint` | Running evaluations on the account stop. Check each model again before quoting it. | | A lower `--max-concurrency` | Running calls keep their slots. New calls wait for the new limit. | Disabling the account with `providers disable NAME` stops every model on it. A **remote agent** is a connection with `--protocol a2a`. Its credentials come from the environment or stdin, never the command line: ```sh evalrouter connections create --protocol a2a --name my-agent --endpoint https://agent.example.com \ --header-env Authorization=AGENT_TOKEN evalrouter run BENCHMARK --model MODEL --agent remote:my-agent --yes ```
Remote agent options | Flag | What it does | | --- | --- | | `--header-env NAME=ENVVAR` | A header from an environment variable (repeatable, up to four) | | `--header-stdin NAME` | A header from stdin | | `--oauth2-token-url`, `--oauth2-client-id` | OAuth2 client credentials | | `--oauth2-client-secret-env ENVVAR` | The OAuth2 secret from an environment variable | | `--oauth2-scope`, `--oauth2-audience` | Optional OAuth2 scope and audience | | `--card-path` | The agent card path (default `/.well-known/agent-card.json`) | | `--agent-parameters @file.json` | Agent parameters from a JSON object file, on `run` and `quotes create` | | `--agent-gateway-api chat_completions` | A model API the agent may call through the run's gateway (repeatable, omit for none) | | `--agent-max-concurrent-tasks N` | Tasks the agent runs at once, 1 to 4 (default 4) |
## API keys and workspaces ```sh evalrouter api-keys create --label ci --scope eval:read --scope eval:write --spend-ceiling 20 evalrouter api-keys update KEY_ID --spend-ceiling none evalrouter api-keys roll KEY_ID evalrouter workspaces switch NAME_OR_ID ``` A key's spend ceiling limits what that key can spend in total: work it started stops at the first call the ceiling can't fund, and calls already running finish and are charged. `none` removes it. Switching workspaces registers this device for another workspace without a browser.
Tab completion | Shell | Setup | | --- | --- | | zsh | Add `eval "$(evalrouter completion zsh)"` to `~/.zshrc`, after `compinit` | | Bash | Add `eval "$(evalrouter completion bash)"` to your startup file | | fish | Run `evalrouter completion fish > ~/.config/fish/completions/evalrouter.fish` | Open a new terminal afterwards. Tab completes commands, flags and their choices, benchmark names (type `@` for versions), model names, registry agents, remote connection names, profiles and recent run IDs. Commands, flags and agents come from the installed CLI. The other names come from a local cache, kept per profile, API origin and workspace. The CLI clears the cache when you sign in, sign out or switch workspace. A background process refreshes it with read-only list requests when it is more than five minutes old. Pressing Tab never waits for the API and works offline.
## Preview commands These commands are preview. `evalrouter --help` marks them. They sit outside the stability promise, and any release may change or remove them. Scripts should rely only on the commands in the reference below. - `recommend`, `releases`, `traces` - `datasets`, `tune` ### Import OpenTelemetry files `evalrouter traces import FILE|DIR… --source ID [--report FILE]` uploads exported OpenTelemetry traces into a trace source. It reads `.json` and `.jsonl` files, plain or gzip-compressed, and walks folders recursively. Spans are grouped by trace across every file in one import. `--report` writes the per-trace outcomes and the file counts as JSON. See [Import OpenTelemetry files](/developers/docs/otel-import) for formats, limits and rejection codes. | Status | Meaning | | --- | --- | | 0 | Every trace was stored or unchanged. | | 1 | At least one trace was rejected or a file couldn't be read. The other traces were imported. | | 2 | Invalid input, such as a missing path or no spans to import. Nothing was sent. | Running the same import again is safe: traces already stored come back unchanged. For a scheduled job, `evalrouter traces connect --name NAME --framework otlp --env-file .env.local` creates a source and writes its ID and ingest key to the env file. Run the import with `EVALROUTER_API_KEY` set to that key. ## Command reference Every resource command and what it does. Run any of them with `--help` for its flags.
All resource commands | Command | What it does | |---|---| | `evalrouter api-keys create` | Create an API key; its secret is shown once. | | `evalrouter api-keys delete KEY_ID` | Revoke an API key. | | `evalrouter api-keys list` | List this workspace's API keys. | | `evalrouter api-keys roll KEY_ID` | Replace an API key; the old one keeps working for the overlap. | | `evalrouter api-keys update KEY_ID` | Change an API key's spend ceiling. | | `evalrouter benchmarks environments get FAMILY` | Show one environment family. | | `evalrouter benchmarks environments list` | List environment families. Pages with `--limit`, `--all` and `--cursor`. | | `evalrouter benchmarks evals get REF` | Show one evaluation reference. | | `evalrouter benchmarks evals list` | List evaluation references. Pages with `--limit`, `--all` and `--cursor`. | | `evalrouter benchmarks get SLUG` | Show one benchmark and its versions. | | `evalrouter benchmarks imports capabilities` | Show which imports this workspace can use. | | `evalrouter benchmarks imports github` | Import a file from a GitHub repository as a private source. | | `evalrouter benchmarks imports github-preview` | Preview the files of a GitHub repository revision. | | `evalrouter benchmarks imports github-refs` | List the branches and tags of a GitHub repository. | | `evalrouter benchmarks imports huggingface` | Import a Hugging Face dataset as a private source. | | `evalrouter benchmarks list` | List maintained benchmarks. Pages with `--limit`, `--all` and `--cursor`. | | `evalrouter benchmarks private archive PROFILE_ID` | Stop new runs of a private benchmark. | | `evalrouter benchmarks private create` | Create a private benchmark from a data file and a small manifest. | | `evalrouter benchmarks private get PROFILE_ID` | Show one private benchmark. | | `evalrouter benchmarks private list` | List this workspace's private benchmarks. | | `evalrouter benchmarks uploads archive UPLOAD_ID` | Archive an uploaded source to free a slot. | | `evalrouter benchmarks uploads create` | Upload local data files as a source private to this workspace. | | `evalrouter benchmarks uploads get UPLOAD_ID` | Show one uploaded source. | | `evalrouter benchmarks uploads list` | List uploaded sources and the slots they hold. | | `evalrouter comparisons create` | Compare exact result versions under a release policy. | | `evalrouter comparisons get COMPARISON_ID` | Show a comparison. | | `evalrouter comparisons list` | List comparisons. Pages with `--limit`, `--all` and `--cursor`. | | `evalrouter connections check CONNECTION_ID` | Test a connection with one small request. | | `evalrouter connections create` | Connect an OpenAI-compatible endpoint. | | `evalrouter connections delete CONNECTION_ID` | Stop using a connection. | | `evalrouter connections list` | List endpoint connections. Pages with `--limit`, `--all` and `--cursor`. | | `evalrouter connections update CONNECTION_ID` | Change a connection or rotate its key. | | `evalrouter datasets approve DATASET_ID` | Approve pending examples. | | `evalrouter datasets benchmark DATASET_ID VERSION_ID` | Build a private benchmark from a dataset version. | | `evalrouter datasets import-traces DATASET_ID` | Add recent production traces as held-out examples; running it confirms the workspace may evaluate on them. | | `evalrouter datasets versions create DATASET_ID` | Freeze the approved examples as a new version. | | `evalrouter datasets versions list DATASET_ID` | List a dataset's versions. | | `evalrouter models list` | List models and their prices. Pages with `--limit`, `--all` and `--cursor`. | | `evalrouter providers add` | Add a provider's key and address once. | | `evalrouter providers disable ACCOUNT_ID` | Stop using a provider account and its models. | | `evalrouter providers get ACCOUNT_ID` | Show a provider account. | | `evalrouter providers list` | List provider accounts. Pages with `--limit`, `--all` and `--cursor`. | | `evalrouter providers update ACCOUNT_ID` | Rotate a provider account's key or change its address. | | `evalrouter quotes create` | Price a run and freeze its setup without starting it. | | `evalrouter quotes get QUOTE_ID` | Show a quote. | | `evalrouter result-groups create` | Group existing runs' results for reuse. | | `evalrouter result-groups export GROUP_ID` | Save a result group export to a file. | | `evalrouter result-groups get GROUP_ID` | Show a result group. | | `evalrouter result-groups list` | List result groups. Pages with `--limit`, `--all` and `--cursor`. | | `evalrouter runs attempts list RUN_ID` | List a run's attempts and their outcomes. Pages with `--limit`, `--all` and `--cursor`. | | `evalrouter runs cancel RUN_ID` | Request cancellation of a run. | | `evalrouter runs compare RUN_ID` | Compare a multi-model run's models on the tasks every model finished. | | `evalrouter runs create` | Start a run from a quote under a spending cap (--max-cost). | | `evalrouter runs events list RUN_ID` | Print a run's events as JSON lines. | | `evalrouter runs export RUN_ID` | Save a run's versioned export to a file. | | `evalrouter runs get RUN_ID` | Show one run. | | `evalrouter runs list` | List recent runs. Pages with `--limit`, `--all` and `--cursor`. | | `evalrouter runs receipt RUN_ID` | Show a run's frozen receipt. | | `evalrouter runs results RUN_ID` | Show a run's scores, coverage and uncertainty. | | `evalrouter runs samples RUN_ID` | List a run's per-task samples (--all pages through every one). Pages with `--limit`, `--all` and `--cursor`. | | `evalrouter runs wait RUN_ID` | Wait until it ends; interrupting never cancels the server work. | | `evalrouter traces connect` | Create a trace connection and print its ingest key once. | | `evalrouter traces connections list` | List trace connections. | | `evalrouter traces list` | List recent complete traces. Pages with `--limit`, `--all` and `--cursor`. | | `evalrouter workspaces create` | Create a workspace. | | `evalrouter workspaces delete WORKSPACE_ID` | Delete a workspace (confirm with its name). | | `evalrouter workspaces get WORKSPACE_ID` | Show a workspace. | | `evalrouter workspaces list` | List workspaces you belong to. | | `evalrouter workspaces update WORKSPACE_ID` | Rename a workspace. |
--- Source: https://evalrouter.ai/developers/docs/results Markdown: https://evalrouter.ai/docs/results.md # Results and exports Check that a run finished and how much it covered, then read its scores or export a versioned report. ## Read a result ```sh evalrouter runs get RUN_ID --json evalrouter runs results RUN_ID --json ``` A result records the benchmark version, completed and missing work, scores, errors and billing state. A sample is not a full benchmark result: mark partial and failed runs as such in comparisons. For a run still in progress, use `evalrouter runs wait RUN_ID --wait-timeout 3600 --json`. In a terminal, the results command lists failed tasks under **Why tasks failed**, using each sample's error code from `GET /v1/runs/{run_id}/samples?status=error`. A task without a code has no class. The terminal shows plain metric names (**Accuracy** for `acc`). JSON and exports keep the original keys and error codes. If a benchmark offers [output formats](/developers/docs/cli#reasoning-and-output-format), the run's selection and each sample record the chosen one. Compare only matching formats. Otherwise a comparison returns `output_format_differs` with no delta, and leaderboard protocol hashes differ. ## Compare runs in the browser Open **Evaluations › Group runs**. A group holds models started together or runs grouped later. Use **Runs** for its members and **Comparison** to read their results together. - **Create group from existing runs** takes two to four finished results: one baseline and up to three candidates. It saves frozen result references (version, checksum and model index) and never reruns a model. Pass/fail checks are optional. Without them the comparison makes no pass/fail decision. Incompatible pairs explain their differences and show no direct score deltas or release conclusions. - **New evaluation › Run a benchmark** starts one to eight managed models. Two to eight start a group on the same selection, whose Comparison tab reads each member's latest result without running inference or saving another comparison. It says when results are pending or unavailable. Comparing a resumed group isn't available in the browser yet. ## Save a versioned report ```sh evalrouter runs export RUN_ID --version RESULT_VERSION --file-format json --output result.json evalrouter runs export RUN_ID --version RESULT_VERSION --file-format csv --output result.csv evalrouter runs export RUN_ID --version RESULT_VERSION --file-format html --output result.html ``` Use the integer version the result returns. Exports need a destination and refuse to overwrite a file by default. Keep the version and checksum with any downstream report. Workspace permissions and the evaluation's rights govern what you can export. If a download fails, retry the same run and version.
Metrics in HTML reports HTML single-run bundles and CLI comparisons show **All benchmark metrics**, with each recorded value and its available uncertainty. Hover a metric name for its definition and exact key, or expand the glossary. Weighted variants stay separate. SOB source scores appear only when the export includes them. Source coverage alone is not a score. Missing values are never inferred from pooled averages. An upgrade of the CLI doesn't change an existing archive. Generate a new report instead. When the saved data lacks the source metrics, request a new API export.
--- Source: https://evalrouter.ai/developers/docs/availability Markdown: https://evalrouter.ai/docs/availability.md # Availability and limits Run any maintained benchmark in the catalog. Where your deployment has private imports, you can also make a benchmark from a file or a Hugging Face dataset. ## Benchmarks and models A ready benchmark may still reject your model. Some tasks need continuation likelihoods that a chat-only model can't provide. Reasoning settings, output format and context limit must also fit. EvalRouter checks compatibility again before a run starts. Check [the catalog](/catalog), or run `evalrouter benchmarks list` and `evalrouter models list`. Maintained benchmarks use their version's recorded grader. Private imports use EvalRouter's built-in graders. Read the [formats and limits](/developers/docs/byob) before you [import your data](/catalog/import). ## Credits and execution Runs need workspace credit. [Credits and billing](/developers/docs/quotes-budgets) explains spending caps, credit set aside for running work and provider charges. Results separate wrong answers from system errors and unfinished work, and a terminal timeout doesn't stop the run on the server. ## Self-service limits Private imports accept JSON Lines, CSV and Parquet with a built-in grader. They can't run uploaded code, custom graders or arbitrary evaluation repositories. [Public catalog additions](/developers/docs/bring-your-own-benchmark#request-an-addition) need separate review. Each deployment turns on hosted source connections separately from catalog evaluations. A visible interface or SDK method doesn't mean a deployment has them. The API refuses disabled operations. See [workload imports](/developers/docs/workload-imports). --- Source: https://evalrouter.ai/developers/docs/model-api Markdown: https://evalrouter.ai/docs/model-api.md # Model API reference Discover models, quote a run, start it once and read results over HTTP. The CLI and SDKs use this API. The [API schema](/developers/docs/openapi.json) has every field, limit and pagination rule. The flow has five steps: - Discover a benchmark profile and a model route. - Create a quote. - Start it once with an idempotency key. - Poll the run. - Read the results and exports. The schema describes the release source, not every operation deployed to your workspace. Availability, permissions and feature flags still apply. Optional legacy response fields don't expand the public offering. ## Authentication and workspace Send requests to `https://api.evalrouter.ai` with a [workspace API key](/settings/api-keys) ([create an account](/register) first): ```http Authorization: Bearer YOUR_WORKSPACE_KEY X-Workspace-ID: YOUR_WORKSPACE_ID Accept: application/json ``` Add `Content-Type: application/json` for JSON bodies. Load credentials from a secret manager or your client's secure configuration, and keep keys out of URLs, source files, shared commands and logs. ## Discover model routes and benchmark profiles | Method and path | Purpose | | --- | --- | | `GET /v1/catalog/benchmarks?status=active` | Discover active benchmarks. Listing alone doesn't mean a profile is runnable. | | `GET /v1/catalog/benchmarks/{slug}` | Read the benchmark and its profiles. Choose a profile with `quote_availability.status` equal to `ready_for_quote`. | | `GET /v1/catalog/models` | Discover model routes and their availability. | | `GET /v1/catalog/execution-options` | Read available execution choices. | Paginated endpoints accept `cursor` and `limit` where the schema declares them. Follow the returned cursor. A single page may not be complete. The quote remains the final compatibility and cost check. ## Model connections | Method and path | Purpose | | --- | --- | | `GET /v1/connections` | List workspace model connections. | | `POST /v1/connections` | Create a supported endpoint connection. | | `PATCH /v1/connections/{connection_id}` | Update a connection. | | `POST /v1/connections/{connection_id}/check` | Test a connection before selecting it. | | `DELETE /v1/connections/{connection_id}` | Disable a connection. | A check may make a small model request, which your provider may bill separately. Keep provider credentials private. ## Quote a model evaluation Send `POST /v1/quotes` with identifiers from discovery: ```json { "model": {"kind": "managed", "route_id": "MODEL_ROUTE_ID"}, "selection": {"profile_ids": ["BENCHMARK_PROFILE_ID"]}, "coverage": {"mode": "sample", "sample_count": 3, "seed": 42}, "max_charge_microusd": "1000000" } ``` - For a checked connection, `model` is `{"kind":"connection","connection_id":"CHECKED_CONNECTION_ID"}`. Full coverage is `{"mode":"full"}`. - The cap is a decimal string in micro-USD (`1000000` is $1). A quote starts no paid work and doesn't guarantee the run fits the example cap. Paid runs need available credit. - The response is a quote record (HTTP 201). Review compatibility, counts, warnings, expiry and cost components, and keep its `id` and expiry. `GET /v1/quotes/{quote_id}` reads it again. ## Submit once and follow status Send the reviewed quote to `POST /v1/runs`: ```json {"quote_id":"REVIEWED_QUOTE_ID","name":"Model evaluation"} ``` A quote starts at most one run. After a lost response, send the **same quote** again: you get the same run back, not a second charge. A new quote can start separate, separately charged work. The response is the run record with its ID: HTTP 201 when the run is created, HTTP 200 when the quote already started it. | Method and path | Purpose | | --- | --- | | `GET /v1/runs` | List workspace runs. | | `GET /v1/runs/{run_id}` | Read status, progress counts and accounting state. | | `POST /v1/runs/{run_id}/cancel` | Request cancellation explicitly. | Poll with a bounded local timeout. Completed and error counts describe processed work. A percentage isn't a score. A local timeout or a disconnected client doesn't cancel the run, and cancellation is a request, not proof that work or accounting has stopped. ## Results and exports | Method and path | Purpose | | --- | --- | | `GET /v1/runs/{run_id}/results` | Read results. Keep the returned result version. | | `GET /v1/runs/{run_id}/export?format=json` | Download a report as JSON, CSV or HTML. Add the integer version for a repeatable export. | [Results and exports](/developers/docs/results) explains coverage and partial runs. ## Errors and recovery A rejected request starts no evaluation. Check the HTTP status and the structured error body. On an authentication failure, check the key and the workspace. Otherwise, fix the request fields or unavailable choices before you submit again. Keep request IDs for support. After an uncertain submission, send the same quote again. Every error body includes `error.feedback`, which names the endpoint for [reporting a suspected defect](/developers/docs/feedback). --- Source: https://evalrouter.ai/developers/docs/python Markdown: https://evalrouter.ai/docs/python.md # Python SDK Run benchmarks, compare models and read results from Python 3.12 or 3.13. The SDK is the `evalrouter-sdk` package. It depends only on httpx and pydantic and has no terminal interface. The command line is a separate package that installs the same SDK version. ```bash python -m pip install evalrouter-sdk ``` ```python from evalrouter import EvalRouter client = EvalRouter() # EVALROUTER_API_KEY and EVALROUTER_BASE_URL from the environment run = client.runs.create(benchmark="gsm8k", model="gpt-5", max_cost=5, wait=True) print(run.score) ``` The async client, `AsyncEvalRouter`, has the same calls, awaited. The client's benchmark and model lists read the catalog. ## Upgrade from 0.4 From 0.5.0 the SDK is `evalrouter-sdk` and the `evalrouter` package is the command line only. The API refuses 0.4.x clients with HTTP 426 and the upgrade command. | Where the SDK is installed | Upgrade | | --- | --- | | An environment with pip | `pip install --upgrade evalrouter && pip install --force-reinstall --no-deps evalrouter-sdk` | | A uv-created environment (no pip) | `uv pip install --upgrade evalrouter` | | A uv project | `uv remove evalrouter && uv add evalrouter-sdk` | | The CLI as a uv tool | `uv tool upgrade evalrouter` | Then depend on `evalrouter-sdk` in your requirements. Upgrading only `evalrouter-sdk` in place leaves the old 0.4 command line behind, broken. ## Run a benchmark - **Names, not IDs.** The benchmark and model take a slug or an unambiguous name, and `"gsm8k@2"` pins a version. Exact IDs work too. - **`max_cost`** is the run's spending cap in USD. New work stops when the cap or your balance can't fund the next call; calls already running finish and are charged. EvalRouter refuses the run before it starts only when the cap is below the quote's minimum cap. Without it, your wallet balance limits the run. - **`wait=True`** returns the finished run. Without it, wait later with `run.wait()`. - **Idempotent.** Repeating a create never starts a second run. ## Several models in one run ```python run = client.runs.create(benchmark="gsm8k", subjects=["gpt-5", "claude-sonnet-5"], wait=True) ranking = run.compare() ``` The `subjects` list runs two to eight models on the same tasks with one spending cap, or your wallet. Each name resolves like a single model. The comparison ranks the models on the tasks every model finished: | Field | Meaning | | --- | --- | | `profile_id`, `metric`, `tasks_compared` | What was compared | | Per model | Rank (`1=` for a tie), score and 95% interval | | `summary` | The top two as one line | | `pairs` | Every pairwise difference | A run that stopped early (cap reached, out of credit or cancelled) carries the reason in `run.interruption`. Continuing it with `run.continue_()` prices only its unfinished tasks and starts the run that completes it, reusing finished ones at no charge. A dry run returns that quote first. ## Quote, then start Use a quote when a person or application reviews the cost first: ```python quote = client.runs.create(benchmark="gsm8k", model="gpt-5", max_cost=5, dry_run=True) # Review the quote's spending cap and plan. Nothing has started. run = client.runs.create(quote_id=quote.id, max_cost=5) run = client.runs.wait(run.id, timeout=3600) result = client.runs.results(run.id) ``` To build the request yourself, `client.quotes.create(body)` takes the same body as the quotes endpoint. Its `max_charge_microusd` is in micro-USD (1 USD = 1,000,000), so `"1000000"` is $1. The convenience parameters `max_cost` and `budget_usd` take USD. Waiting is polling. A local timeout raises `WaitTimeout` and never cancels the server work, so read the run, or cancel it explicitly, before starting another. ## Evaluate an agent on your machine The agents module runs your agent locally. EvalRouter does four things for each task: - It delivers the task. - It meters every model call through the run's gateway (managed models only). - It grades the submission with the benchmark's own grader. - It records the trajectory. The agent can be: - an ACP Registry agent, `registry_agent("opencode")` - a local ACP command, `local_agent("my-agent --acp")`, which needs the `evalrouter-sdk[agents]` extra - an agent written in Python: ```python from evalrouter import EvalRouter, agents class Solver(agents.Agent): name = "my solver" async def run(self, context): task = await context.task.get() reply = await context.gateway.chat(messages=task["inputs"]["messages"]) await context.task.submit(reply["choices"][0]["message"]["content"]) await context.task.done() client = EvalRouter() evaluation = agents.quote( client, agent=Solver(), model="ADMITTED_ROUTE_ID", tasks=agents.benchmark("eval://PROVIDER/NAME/VERSION"), coverage={"mode": "sample", "sample_count": 3, "seed": 42}, budget_usd="2", ) # Review evaluation.quote before starting; nothing is charged until start(). run = evaluation.start() for event in run.events(): # or: async for event in run.events_async() print(event.type, event.task_ref, event.failure_code or "") print(run.wait()["status"], run.results()) ``` One call, `agents.evaluate(...)`, does all of this. Its result reports whether the run succeeded. A failed, partial or abandoned run comes back marked unsuccessful, as a wait returns it, and is not raised. The CLI's agent runs use the same functions and exit 0 only for a completed run (1 when it failed, 4 otherwise).
Tasks, context and resuming | Source of tasks | Call | | --- | --- | | A benchmark | `agents.benchmark(REF)` | | An environment version | `agents.environment(REF, split="test")` | | A private benchmark | `agents.private_benchmark(ID)` | | A suite | A saved suite version | | Context | What it does | | --- | --- | | `context.task.get()` | Read the task | | `context.task.submit(...)` | Submit the answer text, or nothing for file and repository tasks, whose files or diff are collected from `context.workspace` | | `context.task.done()` | Finish the task | | `context.tools.list()`, `context.tools.call(...)` | List and call every task tool | | `context.gateway` | OpenAI chat-compatible. `gateway.openai()` returns an `AsyncOpenAI` client when `openai` is installed. | | Run control | What it does | | --- | --- | | Leaving the event loop early | Finishes the attempt in flight as an interrupted controller | | `agents.AgentRun.resume(client, RUN_ID, agent)` | Continues the run with the same agent | | `run.cancel()` | Stops the run | | `run.costs()`, `run.export("csv")`, `run.trajectories()` | Read the finalized results | | `agents.compare(client, [run_a, run_b])` | Compare finalized runs |
Agent traces Each attempt's trace is one span tree: the agent, the model turns and the tool calls each turn requested. The SDK sends it while the attempt runs, about every half second. The SDK records gateway calls and task tool calls automatically. | Add to the trace | Call | | --- | --- | | Your own spans | `with context.trace.span("plan"):` | | Checkpoints | `context.trace.checkpoint("after planning")` | | Test results | `context.trace.test_results(passed=41, failed=1, total=42)`, optionally split SWE-bench style with `groups={"fail_to_pass": {"passed": 2, "failed": 0}, ...}` | | Command results | `context.trace.command_result(...)` | | An OpenTelemetry framework (LangGraph or the OpenAI Agents SDK, through OpenInference, OpenLLMetry or the GenAI conventions) | `provider.add_span_processor(context.trace.otel_processor())` | | LangGraph checkpoints | `context.trace.langgraph_checkpointer(saver)` | Choose what the trace records with a `trace=` argument when quoting or evaluating. It takes a level and the kinds to include: | Level | Records | | --- | --- | | `off` | Nothing | | `metadata` | Agent spans with their counts and results only | | `spans` (default) | The tree, metadata only | | `content` | Also tool inputs and outputs, agent messages and file diffs, with secrets redacted and each field bounded to 8 KiB, in the SDK and again on the server | By default the trace includes every kind: - `model_turns`, `tool_calls`, `command_output` - `file_diffs`, `agent_messages` Where the platform turns content off, the API refuses a content-level quote with `client_trace_level_unavailable`. Add your own redaction patterns with `trace_redact=[r"acct-\d+"]` when executing. They never leave your machine. The CLI takes the same choices as trace level, include and redact flags.
Import OpenTelemetry traces (preview) Available from the first release after 0.5.3. Upload traces you already exported with OpenTelemetry into a trace source. Each trace comes back `stored`, `unchanged` or `rejected` with a code. See [Import OpenTelemetry files](/developers/docs/otel-import) for formats, limits and codes. | Import | Call | | --- | --- | | Files and folders, plain or gzip, grouped by trace and split into requests for you | `client.traces.import_otlp_file(source_id, ["./otel-export"], on_progress=print)` | | One OTLP JSON request (at most 20 traces and 10,000 spans) | `client.traces.import_otlp(source_id, {"otlp": export_trace_service_request})` | `import_otlp_file` returns a dict with `stored`, `unchanged`, `rejected`, `traces`, `files_read`, `files_skipped` and `file_errors`. Running it again is safe: traces already stored come back unchanged.
## Names, progress and reports The SDK resolves the same names the command line accepts, without prompting: ```python bench = client.benchmarks.resolve_benchmark("gpqa-diamond") model = client.benchmarks.resolve_model("ADMITTED_MODEL_NAME", benchmark=bench) ``` - The benchmark resolver returns the one quotable version for a slug, display name, `slug@version`, eval reference or private benchmark ID. - The model resolver returns the quote's model body for a route ID, model name or connection, matching only models that benchmark version can run. - Several matches raise `ambiguous_benchmark` or `ambiguous_model`, and the message lists them. Use the exact slug or route ID. No match raises `benchmark_not_found` or `model_not_found`. A model the benchmark refuses raises the API's refusal code. Following a run yields its events in order until the run ends. It retries transient API failures and only reads, so stopping the loop never cancels the run. Pass `after=` the last sequence you processed to resume without gaps, and ignore event types you don't recognise. ```python for event in client.runs.follow(run_id): print(event["sequence"], event["type"]) print(client.runs.report_url(run_id)) ``` The report link comes from the `web_url=` argument, the `EVALROUTER_WEB_URL` variable or the API address, and is empty when unknown. Charts are drawn by the web app and the command line. The SDK returns the data behind them (results, comparisons and exports), so plot it with your own library if you need a picture in code.
Stability tiers Stable resources keep their behaviour within a major version. Preview resources ship in the same package but are outside that promise. Any release may change or remove them. Each preview method says so in its docstring. | Tier | Groups | | --- | --- | | Stable | `benchmarks` (with `uploads`, `imports`, `private`, `evals` and `environments`), `models`, `connections`, `quotes`, `runs` (with `events`, `attempts` and `samples`), `comparisons`, `result_groups`, `api_keys`, `workspaces`, `account`, `wallet`, `agents` (the ACP Registry agents you can run, read offline), `feedback` ([report bugs and missing features](/developers/docs/feedback)) | | Preview | `recommendations`, `releases`, `suites`, `traces`, `trace_integrations`, `trace_discovery`, `datasets`, `schedules`, `tune`, `tune_monitors`, `improvements`, `remote_scorers`, `workload_evaluators`, and individually marked methods on `runs` |
## Errors and retries Read an error's code and status, not its human-readable message. Every error derives from `EvalRouterError`. | Error | When | | --- | --- | | `APIStatusError` subclasses | HTTP failures: `BadRequestError`, `AuthenticationError`, `PaymentRequiredError`, `PermissionDeniedError`, `NotFoundError`, `ConflictError`, `UnprocessableEntityError`, `RateLimitError`, `InternalServerError` | | `APIConnectionError`, `APITimeoutError` | Transport failures | | `ClientUpgradeRequired` | HTTP 426 for a release the API no longer serves. Its `upgrade` is the command to run. | When a response marks an operation as deprecated (with a Deprecation or Sunset header), the SDK warns once per process. It retries supported reads and idempotent submission and cancellation requests. It never blindly repeats quote creation, connection verification or other side effects. Use the preview traces group for capture settings and scoring. Use the types shipped with your pinned release and the [OpenAPI schema](/developers/docs/openapi.json) for exact payload limits. See [Save traces to a dataset](/developers/docs/trace-datasets) for capture. --- Source: https://evalrouter.ai/developers/docs/typescript Markdown: https://evalrouter.ai/docs/typescript.md # TypeScript SDK Run benchmarks and read results from a trusted Node.js 22+ server (ESM). The package is `@kimpton-ai/evalrouter`. It shares the API contract with the Python SDK. The command line is a separate Python package. ```sh npm install @kimpton-ai/evalrouter ``` ```typescript import { EvalRouter } from "@kimpton-ai/evalrouter"; const client = new EvalRouter(); // EVALROUTER_API_KEY, optional EVALROUTER_BASE_URL and EVALROUTER_WORKSPACE_ID const run = await client.runs.create({ benchmark: "gsm8k", model: "gpt-5", maxCost: 5, wait: true }); console.log(await run.score()); ``` > [!WARNING] > Keep credentials in server-side code. A browser application should call its own authenticated server rather than bundle a workspace key. Pin the version you test against, and keep the API and SDK release identifiers with your lockfile. ## Run a benchmark - `benchmark` and `model` take a slug or an unambiguous name (`"gsm8k@2"` pins a version). Exact IDs work too. - `maxCost` is the run's spending cap in USD. New work stops when the cap or your balance can't fund the next call; calls already running finish and are charged. EvalRouter refuses the run before it starts only when the cap is below the quote's minimum cap. Without it, your wallet balance limits the run. - `wait: true` resolves with the finished run. Without it, `await run.wait()` later. Repeating a create never starts a second run. - `dryRun: true` resolves with the quote (spending cap and plan) and starts nothing. Start it later with its `quoteId`. To build the request yourself, the quotes client takes the same body as the quotes endpoint. - `subjects` runs two to eight models on the same tasks under one cap, or your wallet. Comparing the run ranks them on the tasks every model finished. Continuing an interrupted run prices only its unfinished tasks and starts the run that completes it. Money fields in API records are strings of integer micro-USD. Don't convert them to floating-point dollars for accounting. UUIDs and timestamps are strings. Pages contain `data` and an opaque `next_cursor`. Keep the same filters when continuing. ## Evaluate an agent ```typescript await client.runs.create({ benchmark: "gsm8k", model: "gpt-5", agent: "opencode" }); // ACP Registry agent await client.runs.create({ benchmark: "gsm8k", model: "gpt-5", agent: "local:my-agent --acp" }); await client.runs.create({ benchmark: "gsm8k", model: "gpt-5", agent: "remote:my-a2a-agent" }); // a connection's name ``` Registry and local agents, and agents written in TypeScript (`defineAgent({ name, run })` from `@kimpton-ai/evalrouter/agents`), run on your machine. EvalRouter delivers each task and meters every model call through the run's gateway. It grades the submission with the benchmark's own grader. ACP process agents need the optional peer packages listed in the package README. ## Names, progress and reports The SDK resolves the same names the command line accepts, without prompting: ```typescript const bench = await client.benchmarks.resolveBenchmark("gpqa-diamond"); const model = await client.benchmarks.resolveModel("ADMITTED_MODEL_NAME", { benchmark: bench }); for await (const event of client.runs.follow(run.id)) console.log(event.sequence, event.type); console.log(client.runs.reportUrl(run.id)); ``` - Several matches throw an `EvalRouterError` coded `ambiguous_benchmark` or `ambiguous_model`. No match throws `benchmark_not_found` or `model_not_found`. - Following a run is an async iterator of its events in order until the run ends. It only reads. Pass the last sequence as `after` to resume, and ignore event types you don't recognise. - The report URL is the web report link, or null when the web address is unknown. - Charts are drawn by the web app and the command line. The SDK returns their data and the report link. ## Import OpenTelemetry traces `client.traces.importOtlp(sourceId, { otlp })` sends one OTLP JSON `ExportTraceServiceRequest` (at most 20 traces and 10,000 spans) to a trace source and returns an outcome for each trace: `stored`, `unchanged` or `rejected` with a code. It is preview, available from the first release after 0.5.3. To import files and folders, use the CLI's `traces import`. See [Import OpenTelemetry files](/developers/docs/otel-import). ## Requests, retries and upgrades - Persist the reviewed quote ID and keep it across network retries and restarts. Starting a run with the same quote again returns the existing run, so a user pressing submit again recovers it instead of starting a second one. - Honor retry headers and stop local polling with the client's request controls. Stopping the local request doesn't prove the run stopped. Use the cancellation endpoint and keep checking the run's final status and cost state. - A client release the API no longer serves gets HTTP 426 as `ClientUpgradeRequired`, whose `upgrade` is the command to run. The SDK warns once per process about a `Deprecation` or `Sunset` response header. - For raw HTTP, use `fetch` with JSON bodies and the headers in [authentication](/developers/docs/authentication). Keep tokens out of URLs, telemetry and client-side error reports.
Stability tiers Stable resources keep their behaviour within a major version. Preview resources ship in the same package but are outside that promise. Any release may change or remove them. Each preview method says so in its doc comment. | Tier | Groups | | --- | --- | | Stable | `benchmarks` (with `uploads`, `imports`, `private`, `evals` and `environments`), `models`, `connections`, `quotes`, `runs` (with `events`, `attempts` and `samples`), `comparisons`, `result_groups`, `api_keys`, `workspaces`, `account`, `wallet`, `agents` (the ACP Registry agents you can run, read offline), `feedback` ([report bugs and missing features](/developers/docs/feedback)) | | Preview | `recommendations`, `releases`, `suites`, `traces`, `trace_integrations`, `trace_discovery`, `datasets`, `schedules`, `tune`, `tune_monitors`, `improvements`, `remote_scorers`, `workload_evaluators`, and individually marked methods on `runs` |
--- Source: https://evalrouter.ai/developers/docs/bring-your-own-benchmark Markdown: https://evalrouter.ai/docs/bring-your-own-benchmark.md # Bring your own benchmark Turn your own data into a benchmark that stays private to your workspace, or ask us to add a maintained benchmark to the public catalog. A private benchmark takes four steps: - Upload a file or import a dataset. - Map the prompt, the answer and the grader. - Validate every row. - Run the verified private copy by its benchmark ID. ## Choose a path | What you want | Availability | Start here | | --- | --- | --- | | Run a maintained benchmark | Available | The [catalog](/catalog), or `evalrouter benchmarks list`. | | Upload your own dataset | Available | [Upload a file](/developers/docs/byob): JSON Lines, CSV or Parquet. No manifest needed in the browser. | | Import a Hugging Face dataset | Supported files and licenses | [Hugging Face datasets](/developers/docs/huggingface). Gated or private datasets need a token with access. | | Import a GitHub data file | Enabled workspaces only | [A CSV, JSONL or Parquet file](/developers/docs/byob#from-a-github-data-file) up to 16 MiB, from a public repository or a connected private one. | | Score with built-in rules | Available | Exact match, multiple choice, numeric, regular expression or JSON fields. See [graders](/developers/docs/byob#graders). | | Add a public benchmark to the catalog | Reviewed by request | [Request an addition](#request-an-addition) with the source, task and license. | | Import from another HTTPS URL | Catalog request only | Include the URL in your request, or upload a supported file you already have. | | Run custom grader code or an evaluation repository | Not available | Describe the grader in a catalog request. Uploads never execute code. | | Use data for one run without keeping a benchmark | Not available | Create a private benchmark, then archive it to stop future runs. Archiving is not immediate deletion. | Every self-service import is private to your workspace and doesn't change your data's license. A catalog addition is visible to every workspace. ## Request an addition Email [info@kimpton.ai](mailto:info@kimpton.ai) with: - where the data is (Hugging Face dataset, GitHub repository or release, or HTTPS URL) and the commit, tag or URL - the lm-eval or Inspect task it matches, and the split to score - the data license and a link to the page that grants it. We review each request. An accepted benchmark appears as a versioned catalog benchmark that compatible models can run. If we decline a request, we say which requirement it didn't meet. Any change to the data, task, grader, sampling or license creates a new version. Earlier versions keep working, so earlier results stay comparable.
What a catalog addition needs - **Public data pinned exactly**, in one of three forms. The first is a Hugging Face dataset or GitHub repository at a full 40-character commit (Git LFS files are fine). The second is a GitHub release asset by tag and file name (we check its sha256). The third is a public HTTPS URL for one file. The URL must need no login or signed link, and it can't be on a private or internal network. For repositories, we don't accept branches, tags, `main` or `latest`. If you send one, we pin its commit at review. We download each file once and keep our copy, so later host changes don't alter the catalog version. - **Every file listed with its sha256 and size**, including companion files the task loader needs, such as other splits. We refuse a file whose bytes don't match. - **An existing task** in [lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness) or [inspect_evals](https://github.com/UKGovernmentBEIS/inspect_evals) at the revision EvalRouter's runners pin. We run the author's task code unchanged. For data on GitHub or at an HTTPS URL, the framework's loader reads our verified copy in Parquet, JSON Lines, JSON or CSV. Inspect's Hugging Face reader takes JSON Lines, JSON or CSV. The version records the new location and each file's sha256. This works for one lm-eval task that reads one plain Hugging Face dataset. It also works for an Inspect task in the catalog that uses Inspect's Hugging Face reader. Name each file for its split, such as `train.jsonl` or `test-00000-of-00001.parquet`. The main file is the scored split. We decline task groups, loading scripts, custom dataset code, row shuffling on read and tasks that require their exact Hub dataset. - **The author's grader and metrics** at the same pinned revision. You can't supply scoring code. - **An allowed data license**: MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, CC-BY-4.0, CC-BY-SA-4.0 or CC0-1.0, agreeing with what the Hub or GitHub reports at the pin. For a plain HTTPS URL, link to the page that grants the license. We review it and keep a copy of the notice. Any other license needs a separate review, and we may decline it.
--- Source: https://evalrouter.ai/developers/docs/huggingface Markdown: https://evalrouter.ai/docs/huggingface.md # Benchmarks from Hugging Face datasets Import a Hugging Face dataset as a benchmark private to your workspace. EvalRouter pins the dataset to an exact commit and checks its files and license. Runs read EvalRouter's own copy, so later Hub changes can't alter an earlier version. "Public" and "private" below describe who can read the dataset on Hugging Face. A benchmark you import is always private to your workspace. An import keeps the data, not the author's evaluation: you choose prompts, answers and a [built-in grader](/developers/docs/byob#graders). For an author's established protocol, use a maintained catalog benchmark or [request an addition](/developers/docs/bring-your-own-benchmark#request-an-addition). ## Name the dataset and file | Form | Example | Where | | --- | --- | --- | | Dataset page URL | `https://huggingface.co/datasets/cais/mmlu` | Browser | | Dataset ID | `cais/mmlu` | Browser | | Pinned reference | `hf://cais/mmlu@main` or `hf://cais/mmlu@<40-character commit>` | Browser, CLI and API | Only a dataset page is accepted. A model page, a single-file link, a viewer link or a URL with a query or fragment is refused before anything is fetched. A URL or ID uses the main branch. The CLI and API always need a revision after `@`: a commit, tag or branch. EvalRouter resolves it to one commit, and stored files and receipts name only that commit. Importing a moved branch later creates a new source. Then choose a **config** and **split** (`--config abstract_algebra --split test`. We use the files the dataset card assigns, or the Hub's usual layout), or explicit **file paths** (`*` matches within one folder). Only Parquet, JSON Lines and CSV are accepted. Nothing else is downloaded and nothing is executed: no loading script, custom code or repository grader. ## Import in the browser 1. Open [Import a benchmark](/catalog/import) and choose **Hugging Face**. Search by dataset or publisher, or enter an ID or page URL, and select a public dataset to pin its commit. 2. Browse its folders and choose one JSON Lines, CSV or Parquet file. **Preview selected file** shows CSV or JSONL columns and sample rows. For Parquet, enter column names in Scoring and review the server's sample at validation. **Source and access options** holds config, split, exact file and a read token for private or gated data. 3. Map the prompt and answer columns, choose a grader and click **Import and validate**. Review the returned rows exactly as the model receives them, and which columns are never sent, then **Create benchmark**. No EvalRouter API key or manifest is needed. The server checks access, file integrity, license and every row when you validate.
Example: 100 MMLU questions | Setting | Value | | --- | --- | | Dataset | `https://huggingface.co/datasets/cais/mmlu`, `cais/mmlu`, or `hf://cais/mmlu@main` | | Config and split | `abstract_algebra`, `test` | | File | `abstract_algebra/test-00000-of-00001.parquet` | | Columns | prompt `question`, choices `choices`, answer `answer` | | Grader | `multiple_choice`, answers are zero-based indexes | For the exact data, enter `hf://cais/mmlu@c30699e8356da336a370243923dbaf21066bb9fe` (100 rows). The built-in multiple-choice grader scores it. This doesn't reproduce the original MMLU protocol.
## Create the benchmark with the CLI 1. Import the dataset. The import runs on our side and the CLI uploads nothing. It pins the commit, checks hashes and license, and keeps a private copy: ```bash evalrouter benchmarks imports huggingface hf:///@main --config --split test \ --prompt-field question --answer-field answer --grader exact_match ``` The receipt lists each file as `hf:///@/` with its sha256 and size. With the mapping flags (prompt, answer and grader, plus choices for multiple choice) it also validates the rows and returns a declaration. A choices column may be a list, an ARC-style `{text, label}` struct or a `{label: text}` mapping. For one column per choice (`option_a`, `option_b`, ...), send `choice_fields` in the API mapping instead. | Grader | Default template | | --- | --- | | Any | `{prompt}` | | `multiple_choice` | `{prompt}`, a blank line, `{choices}`, a blank line, then `Answer with one letter as "ANSWER: ".` | Whatever template your manifest holds is delivered verbatim. 2. Name that file in a manifest instead of `data`: ```json { "name": "Imported QA (example)", "source": "hf:///@/data/test-00000-of-00001.jsonl", "source_sha256": "", "source_bytes": 12345, "task": "exact_match", "columns": {"question": "question", "answer": "answer"}, "prompt_template": "{question}\nAnswer briefly.", "rights_attestation": true } ``` 3. Create and run it as for [an uploaded file](/developers/docs/byob#use-the-cli): `evalrouter benchmarks private create manifest.json`. Only a full 40-character commit and a file your own workspace imported are accepted: another workspace's import, a different sha256 or size, or a tag or branch name is refused. Hugging Face imports must be enabled where you run, or an `hf://` source is refused. The same size, row, rights and privacy rules apply as for uploads. ## Gated and private datasets A gated or private dataset needs a Hugging Face token that can read it. For a gated dataset, first accept its terms on huggingface.co with the token's account. - **Browser:** paste the token when asked. It's sent with that import only and isn't saved in your draft. - **CLI:** keep it off the command line: ```bash evalrouter benchmarks imports huggingface hf:///@main --split test --hf-token-env HF_TOKEN printf '%s\n' "$HF_TOKEN" | evalrouter benchmarks imports huggingface hf:///@main --split test --hf-token-stdin ``` EvalRouter uses the token only to read that dataset for that one import. It is never stored and never appears in the receipt, the benchmark, logs or error messages. | Case | Refusal | | --- | --- | | A gated dataset, no token | `token_required` (403) | | A private dataset, no token | `access_refused` (404), exactly like a dataset that doesn't exist | | A token that can't read it, for example terms not accepted | `access_refused` (404) |
Put your own data in a private dataset, with a minimal token 1. On huggingface.co, create a dataset repository (**New Dataset**) and set it to **Private**. 2. Upload one CSV, JSON Lines or Parquet file with one row per question and a reference-answer column: **Files and versions › Add file › Upload files**, or `hf upload / ./test.jsonl test.jsonl --repo-type dataset`. 3. Add an [accepted license](#licenses) to the YAML header of the dataset card, for example `license: cc-by-4.0`. A private dataset needs one too. 4. In **Settings › Access Tokens**, create a **fine-grained** token with read access to this repository only: no write permission and no access to other repositories, models, Spaces or organization settings. Revoke it when you no longer need it. Import it by its page URL, its ID or `hf:///@main`, naming the uploaded file's path (for example `test.jsonl`).
## Licenses The dataset card must report a license at the resolved commit, and every license it reports must be MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, CC-BY-4.0, CC-BY-SA-4.0 or CC0-1.0. No license, an unknown or "other" license, or a non-commercial or no-derivatives license is refused with `license_refused`, listing what is accepted. This applies to private datasets too: a token grants access, not a license. The catalog accepts a few other permissive licenses, and "other" only after a separate review of those exact files. ## What can be evaluated A file becomes a benchmark only if its rows fit a [built-in grader](/developers/docs/byob#graders). Each row needs one prompt from text columns, one reference answer and one model reply. Mapped prompt columns must hold text or numbers in every row. EvalRouter refuses a list of chat messages or a nested object. A dotted path such as `reward_model.ground_truth` doesn't reach inside one. Not supported: images, audio, multi-turn conversations, tool use, agent environments, model-graded scoring, and a dataset's own graders, reward functions, verifiers or loading script. EvalRouter judges a dataset by its rows, not its name. An agent-environment dataset (chat-message prompts, a reward-model block, custom verifiers) passes the source import. Row validation then refuses its rows, for example `row 1 column 'prompt' must be text or a number, not list`. Send it as a [catalog request](/developers/docs/bring-your-own-benchmark#request-an-addition) instead. ## Two checks: source, then rows 1. **Source import.** Resolve the revision, select files, check access and license, then download and verify every file. These refusals happen before EvalRouter reads any row. Their codes are in Details below. 2. **Row validation** checks every row, not just the preview, against your mapping and grader. A refusal answers 422 and names the row and the reason: - a missing column - an empty reference - a duplicate ID - an answer that isn't a number where the grader needs one - a choice list that isn't a list - a prompt column that holds a list The refusal codes are in Details below. EvalRouter creates nothing and calls no model until both checks pass and you create the benchmark.
Refusal codes | Code | Status | Meaning | | --- | --- | --- | | `invalid_source`, `invalid_selection` | 422 | The dataset reference, config, split or file path is malformed. | | `revision_unresolved` | 422 | The branch, tag or commit does not exist. | | `config_required`, `unknown_config`, `split_required`, `unknown_split`, `incomplete_split` | 422 | The config or split is missing, unknown, or its files are incomplete. | | `file_not_found`, `unsupported_format` | 422 | The named file does not exist, is not Parquet, JSON Lines or CSV, or the selection mixes formats. | | `file_refused` | 422 | The Hub lists no size or hash for a selected file, so it cannot be verified. | | `too_many_files`, `import_too_many_files` | 422 | The selection has more files than one import or your workspace allows. | | `license_refused` | 422 | The card's license is missing or not accepted. | | `token_required` | 403 | A gated dataset (or one of its files) needs a token and none was given. | | `access_refused` | 404 | The dataset does not exist, is private and no token was given, the token cannot read it, or it is disabled on the Hub. | | `too_large` | 413 | The selection exceeds your workspace's upload limits. | | `hash_mismatch`, `hub_unavailable` | 502 | A file did not match the Hub's hash, or huggingface.co could not be reached. Retry later. | | `invalid_mapping` | 422 | Row validation during a Hugging Face import with a mapping. | | `invalid_private_benchmark` | 422 | Row validation in a private benchmark dry run (CLI, API or **Import and validate**). | | `import_row_limit`, `upload_row_limit` | 422 | The file has more rows than allowed. | | `private_benchmark_too_large` | 422 | The file is over 64 MiB. |
## After you create it
What we check and keep at import - **The commit.** The Hub must resolve the revision to a commit. A full hash must resolve to itself. - **Every file's hash.** We download only the selected files and refuse any whose size or sha256 (Git LFS) differs from the Hub's listing. We check a small file stored in Git against its blob ID and record its sha256. - **The license and access**, as above. We store each file under its sha256 and never overwrite a stored copy. The fetch receipt records these facts: - the dataset, the requested revision and the resolved commit - each file's size and sha256 - the card's license - whether the dataset is gated or private Importing the same selection again downloads nothing and returns the same receipt.
After you create it, the benchmark appears in [the catalog](/catalog) and the new-evaluation list, marked as your workspace's. Only members can see or run it, even when the dataset is public. Its version keeps the commit, file hash, mapping and grader forever. To change any of them, create a new benchmark. Results name an EvalRouter built-in grader, and you can compare them only with runs of the same benchmark ID. Manage and delete it as described in [Upload a file](/developers/docs/byob#manage-private-benchmarks). ## Limits - One import holds at most your workspace's upload limits (files, bytes and rows). - You can build a private benchmark only from a file of 64 MiB or less. A larger imported file stays in your workspace, but EvalRouter refuses a benchmark from it with `private_benchmark_too_large`. - A built-in grader reads exactly one file. Name it with `--file` when a split has several. - Datasets that need a loading script, archives and other formats aren't supported. --- Source: https://evalrouter.ai/developers/docs/feedback Markdown: https://evalrouter.ai/docs/feedback.md # Report bugs and missing features When the API or CLI fails in a way you can't explain, send one short report with `evalrouter feedback` or `POST /v1/feedback`, including the failed request ID. You can check its status later. ## When to report - A request fails in a way that looks like an EvalRouter defect (`bug`). Examples are an unexpected `500`, a response that contradicts the [OpenAPI schema](/developers/docs/openapi.json), or a result that can't be right. - You need a capability EvalRouter doesn't have (`missing_feature`). - The documentation is wrong, missing or out of date (`docs`). - The API works as designed but the design misled you (`confusing_behavior`). Coding agents should report these too. Fix expected refusals yourself: a named validation error, an exhausted balance, a missing key scope or an expired quote. > [!WARNING] > Never include credentials, customer data or hidden evaluation content in a report. ## Every error tells you where to report Every error response includes `error.feedback`, with the endpoint and the request ID to link: ```json { "error": { "code": "internal_error", "message": "The request could not be completed.", "request_id": "7d3c9a4e-5b1f-4c2e-9a8d-2f6b1e0c4a11", "feedback": { "url": "/v1/feedback", "method": "POST", "request_id": "7d3c9a4e-5b1f-4c2e-9a8d-2f6b1e0c4a11", "docs": "https://evalrouter.ai/developers/docs/feedback" } } } ``` Copy the error's request ID and code into the report's `attempted` block. The same request ID is in the `X-Request-Id` response header. ## Send a report Any member or key of the workspace can report, with a [workspace key](/developers/docs/authentication) or a [CLI sign-in](/developers/docs/cli-login). ```sh title="cURL" curl -sS https://api.evalrouter.ai/v1/feedback \ -H "Authorization: Bearer $EVALROUTER_API_KEY" \ -H "X-Workspace-Id: $EVALROUTER_WORKSPACE_ID" \ -H "Content-Type: application/json" \ -d '{ "kind": "bug", "severity": "blocker", "summary": "Results export returns 500 for a completed run", "details": "GET /v1/runs/RUN_ID/export?format=csv fails every time; json works.", "attempted": { "method": "GET", "path": "/v1/runs/RUN_ID/export", "request_id": "7d3c9a4e-5b1f-4c2e-9a8d-2f6b1e0c4a11", "http_status": 500, "error_code": "internal_error" }, "expected": "A CSV export", "actual": "HTTP 500 internal_error", "agent": {"name": "my-coding-agent", "version": "1.4.0", "model": "example-model"} }' ``` ```sh title="CLI" evalrouter feedback --kind bug --severity blocker \ --summary "Results export returns 500 for a completed run" \ --request-id 7d3c9a4e-5b1f-4c2e-9a8d-2f6b1e0c4a11 --error-code internal_error # Longer details from a file or another command: evalrouter feedback --kind docs --severity nice_to_have \ --summary "Quote docs do not say caps are decimal strings" --details - < notes.txt ``` The API answers 201 Created with the report's ID and its status, `received`. The CLI names itself as the client automatically. | CLI option | What it sets | | --- | --- | | `--json` | One machine-readable result | | `--http-status`, `--method`, `--path` | The failed request | | `--agent-name`, `--agent-version`, `--agent-model` | The reporting agent | | `--contact-ok` | Whether EvalRouter may contact the workspace owner |
Request fields | Field | Required | Description | | --- | --- | --- | | `kind` | yes | `bug`, `missing_feature`, `docs`, `confusing_behavior` or `other`. | | `severity` | yes | `blocker` (you cannot continue), `degraded` (a workaround costs time or quality) or `nice_to_have`. | | `summary` | yes | One line, 1 to 200 characters. | | `details` | no | Steps, context and what you already tried. Up to 5,000 characters. | | `attempted` | no | The failed request: `method`, `path`, `request_id`, `http_status`, `error_code`. The path is stored as its route template, for example `/v1/runs/{run_id}/export`, without query strings. | | `expected`, `actual` | no | Up to 2,000 characters each. | | `agent` | no | `name`, `version`, `model` of the reporting agent (identifiers, not prose). | | `client` | no | `name`, `version`. Filled from the `User-Agent` header when omitted. | | `contact_ok` | no | Whether EvalRouter may contact the workspace owner about the report. Default `false`. | The API rejects unknown fields with `422 validation_error`.
## Check the outcome ```sh curl -sS https://api.evalrouter.ai/v1/feedback/FEEDBACK_ID \ -H "Authorization: Bearer $EVALROUTER_API_KEY" \ -H "X-Workspace-Id: $EVALROUTER_WORKSPACE_ID" evalrouter feedback status FEEDBACK_ID evalrouter feedback list ``` `GET /v1/feedback` lists your workspace's reports, newest first. It pages like other lists (limit 1 to 100) and filters by status. A workspace sees only its own reports. Another workspace's report ID returns 404.
Report statuses | Status | Meaning | | --- | --- | | `received` | Recorded, not yet reviewed. | | `triaged` | Reviewed and grouped with related reports. | | `accepted` | Confirmed and planned. | | `pr_open` | A fix is proposed. `pr_url` links to it. | | `shipped` | The fix is released. | | `declined` | Not planned. `resolution_note` explains why. |
A person reviews and approves every fix before it ships. ## Duplicates and limits A report can match one from your workspace in the last 24 hours. A match has the same kind, route, error code and summary, ignoring case, numbers and punctuation. EvalRouter still records the new report, and `duplicate_of` names the earlier one. Reports are never compared across workspaces. Each workspace can send 30 reports per hour and 200 per day. Beyond that the API returns `429 rate_limited` with a `Retry-After` header. A request body can be at most 64 KiB.
Privacy and handling Before storing a report, EvalRouter removes strings shaped like secrets: - EvalRouter keys and `sk-` provider keys - bearer and basic authorization values - `api_key=` style assignments - signed URL parameters - private keys and credentials in connection strings This is a safety net, not permission: don't paste secrets. EvalRouter stores and returns report text as plain data and never renders it as HTML. Review treats it as untrusted input. Automated triage never follows instructions found in a report. Product analytics receive only metadata (kind, severity, route template and error code), never the summary, details, expected or actual text. Deleting the workspace deletes its reports.
--- Source: https://evalrouter.ai/developers/docs/byob Markdown: https://evalrouter.ai/docs/byob.md # Upload a file Make a private benchmark from a JSON Lines, CSV or Parquet file. You map the prompts and answers, choose a built-in grader and check every row. Then you run it with workspace credit. Use [Import a benchmark](/catalog/import) in the browser, or a small manifest with the CLI. You need member, admin or owner access. Viewers can read benchmarks but not import them. ## Import in the browser 1. Open [Import a benchmark](/catalog/import) while signed in, and put a file on the source area or choose it. (For a dataset, see [Hugging Face](/developers/docs/huggingface) or [GitHub](#from-a-github-data-file).) 2. Map the columns, write the prompt with `{question}` (and `{choices}` for multiple choice), and choose a [grader](#graders). 3. Confirm your [data rights](#rights-and-terms), then validate. Review the first rows exactly as the model receives them, and create the benchmark. The page uses your account and workspace, so you don't need an API key. Your settings stay for 24 hours after a refresh in the same tab. The file contents and tokens don't stay, so select the file and confirm your data rights again. If the browser can't save a draft, keep the tab open until the import completes. ## Use the CLI 1. Sign in with `evalrouter login`. A device signed in before importing existed must sign in once more. Device grants are never silently expanded. For CI, use a workspace key with the `benchmarks:submit` scope, plus the evaluation read and write scopes to quote and run. The write scope alone can't import. 2. Write a manifest next to your data file, in JSON. YAML also works when you install PyYAML with the CLI. ```json { "name": "Capitals (synthetic example)", "data": "capitals.jsonl", "task": "exact_match", "columns": {"id": "id", "question": "country", "answer": "capital"}, "prompt_template": "What is the capital of {question}? Answer with the city name only.", "grader_options": {"extract": "last_line"}, "max_output_tokens": 16, "data_license": "LicenseRef-Workspace-Private", "rights_attestation": true } ``` 3. Check every row without creating anything. The CLI uploads and verifies the data, and EvalRouter charges nothing. ```sh evalrouter benchmarks private create manifest.json --dry-run ``` The response shows the row count, [what the model receives](#what-the-model-receives), the first three rows as delivered, and warnings. Answers aren't shown, because they're never delivered. EvalRouter refuses a problem and names its row and reason: - a missing column - a duplicate ID - an answer that isn't a number where the grader needs one - a mapped column that carries the answer (`byob_answer_in_input`) 4. Create it, then run it by the printed ID like any benchmark: ```sh evalrouter benchmarks private create manifest.json evalrouter run byob-@1 --model openai/gpt-4.1-mini-2025-04-14 --full --max-cost 1 ``` `--max-cost 1` sets a $1 spending cap: new work stops when it can't fund the next call, and calls already running finish and are charged. Add `--dry-run` to `run` to see the quote. Its warnings repeat what the model receives and the grader's match rule. Read and export results as in [results](/developers/docs/results).
Manifest keys | Key | Meaning | | --- | --- | | `name`, `description` | What people in your workspace see. | | `data` or `source` | `data` is a local file relative to the manifest. The CLI uploads it first. `source` is an existing upload, `workspace:///`, or a Hugging Face file your workspace imported, `hf:///@/` (see [Hugging Face](/developers/docs/huggingface#create-the-benchmark-with-the-cli)). | | `source_sha256`, `source_bytes` | Required with an `hf://` source: the file's sha256 and size from the import receipt. | | `format` | Optional `jsonl`, `csv` or `parquet`. Inferred from the file name. | | `task` | The grader: `multiple_choice`, `exact_match`, `regex_match`, `numeric` or `json_field_match`. | | `columns` | Maps roles to your column names. `answer` is required. `id` (unique row ID) and `group` (sampling stratum) are optional. Every other role is a prompt placeholder, except the multiple-choice roles. For multiple choice, map `choices` to one column, or map one column per choice to `choice_a`, `choice_b` and so on, in order. | | `prompt_template` | The user message with `{role}` placeholders. Every mapped prompt column must appear, and the ID, answer and group columns never can. `{choices}` renders lettered lines. Doubled braces are literal braces. | | `system_prompt` | Optional system message. | | `grader_options` | Options for the grader (below). Defaults are recorded in the benchmark. | | `max_output_tokens` | Output limit per answer, 1 to 4096 (default 256). | | `split` | Optional label for the scored rows (default `test`). | | `data_license` | A license identifier recorded with results (default `LicenseRef-Workspace-Private`). | | `rights_attestation` | Must be `true`. See [Rights and terms](#rights-and-terms). |
## What the model receives The dry run, the created benchmark (`delivery` in the API response) and every quote state this contract for your benchmark. - **Delivered per row, and nothing else:** 1. your `system_prompt`, verbatim, if you set one 2. your `prompt_template` as the user message, with each placeholder replaced by that row's mapped value and `{choices}` by lettered lines (`A. text`) EvalRouter adds no instructions, format hints or examples. A mapped value must be text or a number. EvalRouter refuses a list or an object. - **Never delivered:** `answer`, `id` and `group`. The grader alone reads the answer, and the template can't contain `{answer}`. Unmapped columns are never read and stay only in the stored copy of your file. - **Answer guard:** if a row's delivered messages contain its own answer, EvalRouter refuses the benchmark with `byob_answer_in_input` and names the column. The check uses Unicode NFKC, case folding and collapsed whitespace, and covers answers of 20 or more characters. Shorter answers occur by chance and aren't checked, so make sure no mapped column carries them. Multiple-choice answers are letters and are never checked. - **How each row runs:** 0 shots, one greedy attempt at temperature 0, no automatic retry, no tools, each answer cut at `max_output_tokens`. Validation refuses a rendered user message over 100,000 characters. - **How each row scores:** one grader decides 1 or 0 from the text output alone. The benchmark records its options, including defaults, and they can't change. ## Graders Every grader is built in, deterministic and scores each row 1 or 0. Each grader is a versioned rule, such as `multiple_choice@2`. A new benchmark records the current rule, and it keeps that rule for good. A later rule version never re-scores it. They never execute uploaded code or arbitrary lm-eval or Inspect repositories. Results report accuracy with its standard error. Their label names an EvalRouter built-in grader, and you can compare them only with other runs of the same benchmark ID. Maintained catalog benchmarks can use their own specialized graders. | Grader | Options (defaults) | How it extracts and matches | | --- | --- | --- | | `multiple_choice` | `answer_format`: `letter`, `index` or `text` (`letter`) · `index_base`: `0` or `1` (`0`) | In order: the whole output is one letter, optionally in parentheses and followed by `.`, `)` or `:` (any case). Otherwise the last `answer`, optional `is`, optional `:` or `-`, then an **uppercase** letter (`answer: B` or `The answer is (C)`, but not `answer is b`). Otherwise the one choice whose normalized text equals the whole output. Otherwise, from `multiple_choice@2`, a leading choice label: `B. text`, `B) text`, `**B**`, or `B` alone on the first line. A bare `A word` is an article, not a label. Correct when that letter is the reference. A letter outside the row's choices scores 0. | | `exact_match` | `extract`: `full`, `last_line` or `answer_prefix` (`full`) · `prefix` (`ANSWER:`) · `normalize` | `full` takes the whole output, `last_line` the last non-blank line, `answer_prefix` the text after the last `prefix` (any case) up to the end of that line. Correct when it equals a reference, both normalized. `answer` may be a list of accepted answers (in CSV, a JSON list of strings). A number in a JSON Lines or Parquet file is compared as its text, such as `12`. | | `regex_match` | `pattern` (required, up to 512 characters) · `anchored` (`true`) · `ignore_case`, `dot_all` (`false`) · `normalize` | The pattern must match the whole stripped output (`anchored`) or anywhere in it. It takes the group named `answer`, else the only group, else the whole match. Correct when it equals a reference, both normalized. | | `numeric` | `extract`: `last_number`, `first_number`, `full` or `answer_prefix` (`last_number`) · `prefix` (`ANSWER:`, for `answer_prefix`) · `abs_tol`, `rel_tol` (`0`) | `last_number`/`first_number` take the last or first number in the output. `full` takes the whole output and `answer_prefix` the text after the last `prefix`. Both then drop trailing periods and one trailing `%` and must be a single number. Numbers may have a sign, comma thousands separators, decimals and an exponent. Correct when equal as decimals, or within `abs_tol`/`rel_tol` when set. | | `json_field_match` | `fields` (required dotted paths) · `extract`: `strict` or `first_object` (`strict`) · `normalize_strings` (`false`) | `strict` parses the whole output. `first_object` takes the first fenced JSON block, else the first decodable JSON object or array. Correct when every named field equals the reference's value. Booleans never equal numbers. Strings are compared exactly unless `normalize_strings`. | A `choices` column may hold a list of texts, a `{"text": [...], "label": [...]}` struct or a `{"A": text, ...}` mapping. With a struct or a mapping, a letter `answer` may also be the dataset's own label, such as `1`. A letter `answer` may be written `B`, `(B)`, `B.` or `B. text`, when the text is that choice's own text. `normalize` defaults to Unicode NFKC, case-folded and whitespace-collapsed comparison. Normalization keeps punctuation unless you set `strip_punctuation`, which turns punctuation into spaces. An unparseable or unmatched answer scores 0 with a recorded reason. Timeouts and provider errors are errors, never scores. ## Manage private benchmarks `evalrouter benchmarks private list` lists them. Archiving one with `benchmarks private archive` stops new runs and keeps earlier runs and results. In [the catalog](/catalog), **Source › Created by me** shows the ones you created in this workspace. Imports with the same name have separate IDs, and the creation date tells them apart. Members, admins and owners can choose **Delete**, which asks you to check the ID and date. Delete then does three things: - It archives that benchmark. - It removes the benchmark from the active catalog. - It frees the benchmark slot. Delete keeps the uploaded source and its source slot. A benchmark version never changes. To change the data, template or grader, create a new benchmark.
Free an uploaded source slot Every completed upload is an active source until you archive it, whether or not a benchmark uses it, and a workspace has 1,000 slots. Each create with a local data file uploads a new source, dry runs included. When all are in use, EvalRouter refuses a new upload with `private_benchmark_limit` and the limit kind `upload_sources`. Archiving a private benchmark doesn't free a source slot. ```sh evalrouter benchmarks uploads list --status completed evalrouter benchmarks uploads archive ``` The list shows each upload's ID, status, size, rows, date and files, and how many slots are in use. Archive takes the upload ID or its workspace source reference. Archiving is permanent, and a new manifest can't name the source. EvalRouter deletes nothing. Its files stay stored and count toward storage, and benchmarks already created from it, and their runs, keep working. To reuse a source instead of uploading again, name it as `"source": "workspace:///"` in place of the data file.
## From a GitHub data file GitHub imports are available only to enabled workspaces. Elsewhere the page hides the GitHub source, and a saved draft or direct link offers file upload or Hugging Face instead. 1. In [Import a benchmark](/catalog/import?source=github), choose **GitHub**. Use **Public** for a repository URL or `owner/repository`, or **Private** to select one connected private repository. Owners and admins connect or disconnect accounts in [Settings → Integrations](/settings/integrations). Set repository permissions on GitHub. Connecting an account makes its granted repositories available in the importer. You don't need a personal access token. 2. Files load automatically from the default branch. Expand folders in the file tree to select one CSV, JSONL or Parquet file, or filter by typing a path. You can also paste an exact file path. Use the arrow keys to move through files and expand or collapse folders, and Enter or Space to select a file. To use another revision, choose a branch, tag or recent commit from the dropdown. You can also enter a reference. Files can be up to **16 MiB** and within your workspace limits. The import keeps the commit it shows, even if the branch later moves. 3. Map the columns, choose one of the [built-in graders](#graders), confirm your data rights, then validate and create the benchmark. The verified file and benchmark stay private to your workspace, including data from a public repository. This imports data for your chosen prompts and scoring rules. It does not run repository code, install dependencies, or reproduce an author's custom evaluation protocol. JSON arrays, Git LFS pointers, symlinks and submodules are not supported. Upload the underlying supported data file instead. `evalrouter benchmarks imports capabilities`, or the capability endpoint below, shows whether GitHub imports are available to your workspace. Where they are, the GitHub import commands (refs, preview and import) follow the same steps as the browser. ## Privacy, rights and limits - A private benchmark and its upload are visible only inside your workspace. Anyone else gets "not found", never "forbidden". It never enters the shared catalog, and you can't share its results through a public link. - EvalRouter stores your file once per upload in your workspace's private storage. It reads the file back by its SHA-256 before every run. It never deduplicates or compares identical files in two workspaces. - Each run you start sends the rows to its model provider, like any benchmark prompt. - EvalRouter treats uploaded content as untrusted data and executes nothing in it. Previews and errors replace strings that look like credentials with `[redacted]` and warn you. The run still sends the file itself to the model, so remove real credentials. ### Rights and terms In the browser, choose the dataset’s existing license. Use **Private or proprietary** for data governed by your own private terms, a named license when it applies, or **Other license** to enter its identifier. This records the existing terms. It does not change them or make the benchmark public. The CLI records this choice in `data_license`. Hugging Face imports preserve the verified source license. By setting `rights_attestation: true` you confirm: "This workspace has the right to use this data for evaluation and to send its rows to the model providers selected for each run. EvalRouter keeps it private to this workspace and never publishes, shares or reuses it." The benchmark records the statement and your `data_license`, and every result's notices show them. Don't upload data that you may not process this way. Don't upload personal data that you have no basis to send to model providers. ### Limits | Limit | Value | | --- | --- | | File size for a private benchmark | 64 MiB | | GitHub source file | 16 MiB | | Rows | 100,000 | | Rendered prompt | 100,000 characters per row | | Private benchmarks created per workspace per day | 10 | | Active private benchmarks per workspace | 1,000 (archive one to free a slot) | | Active uploaded sources per workspace | 1,000 (archive one with `evalrouter benchmarks uploads archive`) | | Uploads per workspace per day | 10, at most 2 open at a time | | Minimum available balance to upload | $5 | The 64 MiB limit applies to the file that you build a benchmark from. An upload or a Hugging Face import can be larger, up to your workspace's upload limit. EvalRouter refuses to create a private benchmark from a file over 64 MiB, with `private_benchmark_too_large`. Uploads and imported GitHub and Hugging Face files share your workspace's storage allowance. A GitHub import reserves its bytes before it writes to storage. Retrying the same import after a storage failure reuses that reservation. Archiving a benchmark or completed upload does not free those stored bytes.
HTTP API | Operation | Purpose | | --- | --- | | `GET /v1/benchmark-imports/capabilities` | Return `{ "workspace_id": "", "github": true }` or `github: false` for the authorized workspace, with `Cache-Control: no-store`. Use the same authentication and workspace headers as importing. Clients should hide GitHub actions on false or an unavailable endpoint. | | `POST /v1/benchmark-uploads` | Create an upload, then send each file to its returned upload URL with `PUT` (what `evalrouter benchmarks uploads create` does). | | `POST /v1/benchmark-uploads/{id}/complete` | Complete the upload and verify the data file. | | `GET /v1/benchmark-uploads` | List your uploads (`status`, `cursor`, `limit` up to 100. With `active_sources` and `active_source_limit`). | | `POST /v1/benchmark-uploads/{id}/archive` | Archive a completed upload to free a source slot. | | `POST /v1/benchmark-imports/huggingface` | Import a pinned Hugging Face dataset into your workspace (what `evalrouter benchmarks imports huggingface` does). | | `POST /v1/benchmark-imports/github/refs` | When enabled, list the default branch, up to 100 branches, 100 tags and 20 recent commits for a repository. Branches and tags include `name` and `commit_sha`. Commits include `commit_sha`. `branches_limited` and `tags_limited` indicate lists that reached the limit. Private repositories require both workspace connection/repository identifiers. Responses use `Cache-Control: no-store`. | | `POST /v1/benchmark-imports/github/preview` | When enabled, resolve a repository and revision and preview a selected data file. | | `POST /v1/benchmark-imports/github` | Import the selected file using the preview's full `commit_sha` as `revision`. Private repositories also require the workspace's selected `github_connection_id` and `github_repository_id`. | | `POST /v1/private-benchmarks` | Validate (`"dry_run": true`) or create a private benchmark from `source` (with `source_sha256` and `source_bytes` for imported `hf://` or `github://` references) plus the manifest keys above. GitHub sources require current workspace availability and repository access. | | `GET /v1/private-benchmarks` | List your private benchmarks. | | `GET /v1/private-benchmarks/{id}` | Read a private benchmark. | | `GET /v1/evals?include_private=true&catalog_view=true&private_only=true` | Read the workspace catalog. Uploaded private benchmark records include `created_by` (user ID, or `null` when unavailable) and `created_at`. | | `POST /v1/private-benchmarks/{id}/archive` | Stop new runs and free the benchmark slot while keeping earlier runs and results. The browser's **Delete** action uses this operation. | | `POST /v1/runs` | Run with `"selection": {"profile_ids": ["byob-@1"]}`. A spending cap is optional. |
Not supported yet: model-graded (judge) scoring, partial credit, few-shot examples, more than one attempt per row, and custom grader code. --- Source: https://evalrouter.ai/developers/docs/selection Markdown: https://evalrouter.ai/docs/selection.md # Models, environments, and compatibility Choose a versioned evaluation and a model that can run it, and let the quote check the pair before you spend. ## Model routes and connections A managed route states its model, capabilities, rates and limits. Choose the exact catalog entry. A familiar model name doesn't tell you whether the route supports the tools, reasoning or output format a task needs. A workspace connection points to your own provider endpoint, which bills you separately. Checking it makes a small provider request that may cost money outside EvalRouter. `GET /v1/evals` lists evaluations from admitted providers. The public catalogs show native benchmarks and environments. Private environments in your workspace need workspace context to discover. ## Task identity and coverage - Name the exact evaluation with `eval://provider/name/version`. Native aliases such as `name@version` resolve through the registry. Save the resolved identity with reports. A label alone can't identify the version later. - The quote checks model capabilities, input and output limits, task availability, permissions and resources, and an unsupported pair fails before the run starts. Removing a requirement changes the protocol. It isn't a compatibility fix. - A sample freezes its tasks and seed. A full run targets the admitted task collection. Report completed, missing, failed and excluded tasks separately. Scores from different subsets, prompts, graders or splits may not be comparable, even under the same benchmark name. - Iterate on development results and keep held-out tests separate. Prior benchmark exposure or pretraining contamination can limit what a score means. ## Choose specific tasks In the browser, open **New evaluation › Benchmarks › Select tasks**, search task IDs and metadata, then review the exact IDs before starting. EvalRouter adds required dependencies when they are available. The saved setup and repeated runs keep the exact selection. In the CLI, choose **Specific tasks** in interactive `evalrouter run`, or repeat `--task`: ```sh evalrouter run BENCHMARK --model ROUTE_ID --task TASK_ID_1 --task TASK_ID_2 --dry-run ``` You can't combine task selection with sampling or a full run. An unavailable selection doesn't fall back to sampling. Over HTTP, `GET /v1/catalog/tasks?source_ref=EXACT_REF` lists safe task metadata for an accessible source, with search and paging. For automated release checks, the [CI integration guide](https://github.com/kimpton-ai/kimpton-evalrouter/tree/main/examples/ci) has a Python adapter and a GitHub Actions workflow. The workflow runs a pinned task suite against candidate and baseline models. It fails CI when evidence is incomplete or a run misses a score or regression threshold.
Recommend tasks for an objective (preview) ```bash evalrouter recommend --objective "math and reasoning" --model ROUTE_ID --tasks 25 --json > recommendation.json ``` The API equivalent is `POST /v1/recommendations` with an objective, models and a task limit. Review its selections, uncovered capabilities, exclusions and warnings. - A recommendation starts no work and creates no quote. To run one benchmark's selected tasks, pass their IDs to `run --task`. - Tasks can come from several benchmarks and environments, keeping their source versions and IDs. - Declared task metadata decides relevance where available. Source labels are a disclosed fallback. - Required dependencies count toward the limit. Results on a subset are not full benchmark scores. - The optional `--budget USD` is historical-cost guidance only. Its evidence can be missing or a source mean, and it isn't a price or a spending cap.
Reusable exact-task suites (preview) In New evaluation, choose tasks on the Benchmarks step and select **Save selection as suite**. A suite saves exact source versions, splits and task IDs across benchmarks and environments, but no model, and starts nothing. **Suites** configures an evaluation from a saved version or creates its next version. Earlier versions remain available. Over HTTP, `POST /v1/suites` takes task selections, each with a source reference, split and task IDs, plus the previous version's ID for the next immutable version. Sources must be available to the workspace, and selections must include their dependencies. | Command | What it does | | --- | --- | | `suites create` | Select and name a suite at a terminal, without a JSON file | | `suites version --id SUITE_VERSION_ID` | Edit a saved selection into its next version | | `run --suite SUITE_VERSION_ID --model MODEL` | Reuse a version. Add `--dry-run` to inspect preflight. | Exact-task suites use evaluation jobs, and the legacy suite quote path rejects them. Suite operations are preview SDK capabilities, and the CLI needs a package that contains them.
--- Source: https://evalrouter.ai/developers/docs/quotes-budgets Markdown: https://evalrouter.ai/docs/quotes-budgets.md # Credits and billing A quote states a run's plan and prices before any model call. While the run works, EvalRouter sets a little credit aside for each running task, charges each call's actual usage, and returns what is left when the task ends. Prices and fees are what the quote shows. ## Caps and confirmation A spending cap is optional. New work stops when the cap or your balance can't fund the next call; calls already running finish and are charged. The run is refused before it starts only when the cap is below the quote's minimum cap, the smallest cap that can start one task. Without a cap, your balance limits the run. At a terminal, the CLI shows the quote and asks before it charges anything. > [!WARNING] > Scripts must pass `--yes`. Without it, the CLI creates no quote and charges nothing. An API key can carry its own spend ceiling across everything it starts, with the same rule: work it started stops at the first call the ceiling can't fund. Set it when you create the key, or change it later with `--spend-ceiling USD|none`. A per-run cap still applies to each run. The API writes money as strings of integer micro-USD (`"1000000"` is $1). ## Credit set aside, charges and stops - Credit set aside for running work reduces available credit while a task runs: about $0.01 per running task to start, growing with the task's spend, plus any fee the quote charges per sample. It isn't a charge, and nothing is set aside per call. Results show actual EvalRouter spend, and billing may finish after a score appears. - Each call is charged its actual usage, even when it costs more than expected. Calls already running when a limit is reached finish and are charged, so a run can end slightly above its cap and your balance can go below zero. While the balance is zero or below, new calls are refused until you add credit. - A run that reaches its cap or empties your balance stops new work (`budget_exhausted`) and keeps its completed results. A usage-billed route can also stop a run once the run's spend passes that route's published threshold (`stop_threshold_reached`). Cancelling stops new work but can't retract a call already sent. - If EvalRouter can't confirm a call's charge, that task waits until the charge is settled; the run's other tasks continue. A new Tune session is refused with `reconciliation_required` while one of the workspace's drafting calls awaits that check. - EvalRouter's own infrastructure can end an attempt. Examples are a lost hosted or remote owner, a lost sandbox, an upstream provider failure, or EvalRouter stopping the run mid-attempt. EvalRouter doesn't charge that attempt's model calls, and its retry pays only for its own calls. - Your provider bills calls to your own provider endpoint or agent. These calls carry no EvalRouter fee, and EvalRouter's cap doesn't limit them. Check the external-cost notice before you start. ## Settled charges The billing page's **Settled charges** is everything settled against the wallet for evaluations. It has two parts: - **Usage**: metered model inference and compute. - **Platform fees**: EvalRouter's per-evaluation fee, net of platform fee credits. The quote shows it, and the ledger charges it as separate entries. You pay credit purchase fees at checkout, and Settled charges excludes them. The wallet endpoint reports the same split: | Field | Meaning | | --- | --- | | `settled_usage_microusd` | Usage | | `settled_platform_fees_microusd` | Platform fees | | `settled_charges_microusd` | Their sum | Usage and billing records remain the source for actual charges. Cost forecasts appear only where your deployment offers them. An absent forecast isn't a zero-cost estimate. --- Source: https://evalrouter.ai/developers/docs/workload-imports Markdown: https://evalrouter.ai/docs/workload-imports.md # Import a workload Bring production traces, datasets and experiments from Braintrust, Langfuse or LangSmith into review, then turn approved tasks into a reviewed workload. ## Connect a source From [New source](/traces/sources/new), a workspace admin supplies the provider credentials and selects the project and region. EvalRouter encrypts the credentials and syncs traces in the background. The connection shows progress and errors, with controls to pause, resume, import history or update credentials. A workspace can connect each source project once, and at most 20 projects in total. EvalRouter checks provider keys at most 30 times in 10 minutes for each workspace and each person. When you reach that limit, wait and try again. EvalRouter skips any trace or dataset row whose ID contains a credential. For Braintrust and Langfuse datasets or experiments, open a [dataset](/datasets) and choose **Import workload data**. Select the connected project and resource, declare usage rights and assign a split, then import pages until the import completes. Source identifiers and content hashes keep provenance across retries. ## Review before you rely on it - Historical model outputs and provider scores stay source evidence. They never become correct answers or pass labels. - Imported inputs seed a task draft. Review its instruction, inputs, tool behavior, reference answer and grading rule before approving it, and freeze an approved dataset version before you use it. - Choose configurations on development tasks and keep separate held-out tasks for the final comparison. A copied task, or a paraphrase of one, stays in its source's split. ## Grading Grade each task with a reviewed deterministic rule. Imported historical scores never become a grader, and these imports never run uploaded scorer code. Provider connections depend on deployment availability. See [availability](/developers/docs/availability). --- Source: https://evalrouter.ai/developers/docs/otel-import Markdown: https://evalrouter.ai/docs/otel-import.md # Import OpenTelemetry files Upload traces your agents already exported with OpenTelemetry, without adding the EvalRouter SDK. Each trace is stored, unchanged or rejected on its own, so one bad trace or file never drops the others. ## Import from the browser 1. Open [New source](/traces/sources/new), choose **OpenTelemetry file** under **Import existing traces** and name the source. A workspace admin creates sources; members can import into them. 2. Drop files or a folder on the drop zone, or click it and choose **Files…** or **Folder…**. EvalRouter reads folders recursively and groups spans by `traceId` across every file you choose. 3. Watch the counts of stored, unchanged and rejected traces. Rejected traces are listed with a code and a reason. **Retry rejected** sends only those traces again. 4. Open **View traces** to inspect the imported traces in the source. The browser reads at most 64 MiB at a time. Import larger exports with the CLI. ## What a file can contain - The protobuf JSON form of an OTLP `ExportTraceServiceRequest`, or JSON Lines of them, which is what the OpenTelemetry Collector file exporter writes. - `.json` and `.jsonl` files, plain or gzip-compressed (`.gz`). Other files in a folder are skipped and counted. - zstd and zip files and the binary protobuf format aren't supported. Each such file is listed as not imported, and the other files continue. Decompress or unzip it, then import the folder. EvalRouter keeps agent, model and tool spans. It recognizes them from the OpenTelemetry GenAI conventions (`gen_ai.operation.name`), OpenInference (`openinference.span.kind`) or `evalrouter.kind`. Other spans, such as HTTP or database spans, are dropped. A trace with no agent, model or tool span is rejected. Credentials are removed before storage, along with your workspace's redaction fields. Imported traces expire after your workspace's retention period, counted from the import, not from when the trace was recorded. ## Keep a trace's files together Import every file that holds part of a trace in the same import. An import completes each trace. If a later import sends new spans for that trace, it is rejected with `trace_already_complete`. Sending the same spans again is safe: the trace comes back `unchanged`. ## Outcomes and limits | Outcome | Meaning | | --- | --- | | `stored` | The trace is new, or gained spans, and is now complete. | | `unchanged` | Every span was already stored with the same content. | | `rejected` | Nothing was stored for this trace. The code says why. | Each stored or unchanged trace also returns its `started_at`: when the trace itself started, the time Traces shows and filters by, not the import time. It is `null` for a rejected trace. | Code | Why | | --- | --- | | `otlp_trace_invalid` | The trace isn't valid OTLP JSON, for example a span ends before it starts, an ID isn't hexadecimal, or no span is an agent, model or tool span. | | `trace_already_complete` | An earlier import completed this trace, and this one adds new spans. | | `trace_span_conflict` | A span ID was sent again with different content. | | `trace_span_too_large` | A span is larger than 128 KiB after redaction. | | `trace_size_limit` | The trace is larger than 16 MiB, or than one CLI request. | | `trace_span_limit` | The trace has more than 10,000 spans. | | `browser_limit` | The trace doesn't fit one browser request. Import it with the CLI. | | `request_failed` | The browser's request failed. Use **Retry rejected**. | Each request carries at most 20 traces and 10,000 spans. The browser and the CLI split an import into requests for you. The browser keeps each request to about 4 MiB and the CLI to about 15 MiB. The API accepts up to 16 MiB per request and 256 attributes per span. ## Import with the CLI `traces import` and the SDK import methods arrive in the first CLI and SDK release after 0.5.3. Sign in with `evalrouter login`, then import files, globs or folders: ```sh evalrouter traces import ./otel-export --source SOURCE_ID --report import-report.json ``` The CLI prints progress after each request, then the counts and every rejected trace and unreadable file. `--report` also writes the per-trace outcomes and file counts as JSON. It exits with status 0 when everything was stored or unchanged, 1 when a trace was rejected or a file couldn't be read, and 2 when the input is invalid, such as a missing path. Running the same import again is safe. For a scheduled job, a workspace admin creates a source and saves its ID and ingest key to an ignored env file. The job imports with that key, which can only write traces to that source. Never commit the key. ```sh evalrouter traces connect --name nightly-otel-export --framework otlp --env-file .env.local set -a; . ./.env.local; set +a EVALROUTER_API_KEY="$EVALROUTER_TRACE_KEY" evalrouter traces import ./otel-export --source "$EVALROUTER_TRACE_CONNECTION_ID" ``` ## Import from code The Python and TypeScript SDKs send one request of OTLP JSON, within the limits above: ```python result = client.traces.import_otlp(source_id, {"otlp": export_trace_service_request}) for trace in result.traces: print(trace.trace_id, trace.outcome, trace.code) ``` ```typescript const result = await client.traces.importOtlp(sourceId, { otlp: exportTraceServiceRequest }); ``` In Python, `client.traces.import_otlp_file(source_id, ["./otel-export"])` reads files and folders the way the CLI does and returns the same report. ## Score imported traces Enabled trace evaluators grade new traces every five minutes, including the **Turn used tools** check, which tells you whether a given turn called the tools you name. Create the evaluator before you import: traces imported before an evaluator exists aren't scored automatically. --- Source: https://evalrouter.ai/developers/docs/trace-datasets Markdown: https://evalrouter.ai/docs/trace-datasets.md # Save traces to a dataset Keep useful or failed traces together in a workspace-private dataset. Saving copies the content still available at that moment. It doesn't change the source trace or generate a correct answer. ## Save traces 1. Open **Datasets › New dataset** and name it. Members, admins and owners can create datasets and save traces. Viewers can read retained snapshots. 2. Open a trace and choose **Add to dataset**, or select up to 50 rows on **Traces** and choose **Add to dataset**. You can also open a dataset, choose **Add traces** and filter for failed ones. 3. Search for a dataset, or create one in the same dialog, and save. If part of a selection fails, retry the failed traces. Successful copies aren't saved twice. A snapshot includes available span inputs, outputs, errors, events, attributes and source provenance. Missing content stays marked as missing. The picker lists empty datasets and trace collections. Datasets with workload uploads, curated examples or frozen versions stay separate so saving traces doesn't interrupt their review or versioning. ### Tell infrastructure failures from model failures A model call can fail because the provider, EvalRouter or the run's own limits ended it, not because of the model's answer. Before you save failed traces as evidence about a model, check which kind of failure each one is. Each model call reports these fields: | Field | Meaning | | --- | --- | | `failure_class` | Empty when the call went through. Otherwise one of the classes below. New values can be added. | | `failure_class_source` | `exact` for EvalRouter's own gateway calls, from the gateway's record. `reported` for imported calls and a remote provider's own spans, read from what the span says. | | `upstream_http_status` | The provider's HTTP status, when known | | `attempt_count`, `retried_count` | The attempts made and how many were retries. Known for EvalRouter's gateway calls only. | | `model_outcome` | The model's finish reason (`length`, for example) or `completed`; empty when the call didn't complete | | Class | Meaning | | --- | --- | | `provider_fault` | The provider or endpoint failed: a 5xx, unreachable, an invalid answer | | `request_error` | The provider refused the request as invalid, or refused the credential of your own connection | | `throttled` | Rate limited | | `timeout` | No answer before the deadline | | `client_cancel` | The calling application cancelled the call | | `platform_fault` | EvalRouter's own path failed, including a managed route's credential | | `stopped` | The run's own terms ended it: its budget cap, reversed credit, a withdrawn route or connection | | `unclassified` | It failed, and the cause can't be read | These fields describe the outcome after retries. A call that the gateway retried until it succeeded isn't a failure; its `retried_count` shows the retries. A failure is never the model's: whether the model achieved the task is its grade. A trace's `failure_class` is its dominant class: the class with the most failed calls, a tie going to the class that failed last, then to the later class name, or empty when no call failed. What an imported span carries depends on where it came from: | Source | What classifies a failure | | --- | --- | | OpenTelemetry GenAI spans | `error.type`, when it names a rate limit, timeout or cancellation; `gen_ai.response.finish_reasons` gives the finish reason | | A span with `http.response.status_code` | 429 is `throttled`, 408 and 504 `timeout`, 499 `client_cancel`, other 5xx `provider_fault`, other 4xx `request_error` | | LangSmith, Braintrust, Langfuse, OpenInference | Nothing yet, so their failures are `unclassified` | `GET /v1/traces/query` returns all five fields on span rows, and the dominant `failure_class` on trace rows. Three counts of calls come from `GET /v1/traces/analytics`, in its totals and in each series bucket, and from a single trace's `failure_counts` in `GET /v1/traces/live/{trace_uuid}`: `failures_by_class`, and `failures_by_source` and `model_calls_by_source`, which count failed calls and calls for each source. The source counts leave out `stopped` calls, so `failures_by_source.exact / model_calls_by_source.exact` is EvalRouter's own failure rate, and a budget cap never reads as unreliability. `failure_class` and `failure_class_source` are filters and `group_by` dimensions on spans and traces, for example `{"field": "failure_class", "op": "eq", "value": "provider_fault"}`. On traces they use the dominant class and the source of that class's last failed call, and each group counts traces, not calls. ### Compare endpoints `endpoint_connection_id` on a span is the connection whose endpoint answered an EvalRouter model call. It differs from `connection_id`, which is where the trace came from: every span of a run shares the run's connection. It is empty for a managed route, which you identify by `model` and `model_provider`, and for imported spans. Filter or group spans by it, for example: ```json {"version": 1, "source": "spans", "filters": [{"field": "is_leaf_model", "op": "eq", "value": 1}], "group_by": ["endpoint_connection_id"]} ``` Each breakdown row of `GET /v1/traces/analytics` has the same measures as its totals, including `count`, `error_count`, `error_rate`, the latency percentiles and `duration_ms_max`, `failures_by_class`, token and cost totals, and `output_tokens_per_second`. Match connection IDs to names with `GET /v1/connections`. - **Per attempt.** EvalRouter retries some failed calls, and each retry is its own span. `count`, `error_rate` and the latency percentiles count attempts. `failures_by_class` counts calls that failed after their retries. - **`output_tokens_per_second`** is the sum of output tokens divided by the sum of call durations, over the calls that report both. A call's duration runs from the request to the complete answer, including queueing and prompt processing, because EvalRouter doesn't stream. It is empty for trace breakdowns, because a trace's duration includes work other than its model calls. - **Not like for like.** This breakdown covers whatever each endpoint happened to answer. Endpoints that answered different tasks, prompts or runs can't be compared fairly this way. To compare endpoints on the same tasks, run a comparison. ### What the agent did Each tool call is one span with its final status, so you can count an agent's calls and see which tools fail. A span's `tool_name` names the tool. Its `tool_origin` says whose tool it was: `agent` for the agent's own tools, `task` for the task's tools through EvalRouter, or `environment` for an environment's tools. Grading, an environment's own setup and teardown, and model requests the task refused carry a `span_class` (`grader`, `infrastructure` or `refused_request`). They are not the agent's calls. Trace detail retains EvalRouter's metered execution fee with public `kind=tool`; its raw `evalrouter.span_class=execution_service` attribute identifies it as platform execution rather than an agent tool. To see failures per tool, query spans grouped by `tool_name`, with the filters `{"field": "kind", "op": "eq", "value": "tool"}` and `{"field": "span_class", "op": "exists", "value": false}`. Each group's `top_error_type` is its most common error. Trace rows carry `tool_call_count` and `tool_error_count`. Analytics on traces return `tool_calls_per_trace_p50`, `tool_calls_per_trace_p90` and `tool_calls_per_trace_max`, and the same for model calls. ### Filter by whether the task passed Each trace, and each of its spans, carries whether its task passed, separate from the failure fields above: | Field | Meaning | | --- | --- | | `verdict` | `passed`, `failed`, `inconclusive` or `not_graded`. New values can be added. Empty while the task runs, when its grade is a score only, or while the grade is withheld. | | `verdict_judged_by` | Who decided: `benchmark_grader` for a trace from an EvalRouter run, `trace_evaluator` for any other trace. New values can be added. | | `verdict_score` | From 0 to 1 | | `verdict_evaluator_key` | The evaluator's key when exactly one evaluator judged the trace; empty when several did | Any other trace takes the most severe of its evaluators' results: `failed` if any evaluator failed it, otherwise `inconclusive` if any was inconclusive, otherwise `passed`. Each evaluator counts with its most recent whole-trace result. Opening a trace (`GET /v1/traces/live/{trace_uuid}`) lists each evaluator's verdict in `trace.evaluator_verdicts`. A trace from an EvalRouter run shows its task's verdict, the same as the run's task list. `failed` only ever means that the model's answer was wrong: a task whose model calls failed is `not_graded`. A client or remote agent run shows verdicts once the run ends, and a benchmark that shows only aggregate results never shows them. Filter or group by these fields in `GET /v1/traces/query` and `GET /v1/traces/analytics`, for example `{"field": "verdict", "op": "eq", "value": "failed"}`. `GET /v1/traces/analytics` also returns, in its totals and each time bucket, `verdicts` (the number of traces per verdict) and `pass_rate`: `rate`, its 95% interval `lower` and `upper`, and `n`. The rate is passed traces divided by passed and failed traces, the same calculation as a run's pass rate. Inconclusive traces aren't in it. On spans, this selects the calls made in failed traces. ### Break traces down by agent, Tune configuration or your own metadata Traces from EvalRouter runs carry what ran them: | Field | Meaning | | --- | --- | | `environment_version` | The environment version the run used, such as `acme/support@3`. `environment_id` is its ID. | | `agent` | The agent: its registry ID, your local agent's name, or your registered agent's name | | `agent_version` | The agent's version. A local agent that states no version shows a short fingerprint of what ran, such as `sha256:3f2a9c1b7e40`. | | `tune_session_id` | The Tune session the run belonged to | | `tune_configuration` | The model and reasoning level the run tried in that session, as `route` or `route:level` | Any trace, including traces you send or import, can also carry your own metadata keys. An admin chooses up to 10 keys in Settings › Integrations › Metadata keys, or with `PUT /v1/traces/metadata-keys`, for example `{"keys": ["customer_tier", "region"]}`. EvalRouter then keeps those keys, and no other attributes, for analytics. A key's value comes from the span attribute of that name, or from that key in a `metadata` object (imports from LangSmith and others keep it there). For a trace from an EvalRouter run, it can also come from the run's metadata. A trace takes its root span's value, otherwise the earliest span's that has the key. Filter or group traces by `metadata.`, for example `{"group_by": ["metadata.customer_tier"]}`. Sessions can be filtered by it. Spans can't, because a child span seldom repeats its trace's metadata. Declaring a key applies to traces received afterwards; earlier traces are not updated. Removing a key stops keeping it, but values already kept stay until their traces are deleted. All these fields work as filters and group-by fields in `GET /v1/traces/query` and `GET /v1/traces/analytics`. `GET /v1/traces/capabilities` lists them. Span rows include the run fields; trace rows don't, so trace lists stay fast. Group or filter by them instead. ### Chart a measure over time, by group `GET /v1/traces/analytics` returns the same measures in its totals, each time bucket, each `series_by` bucket and each breakdown row. The exception is a breakdown by a behavior field, such as `behavior_status`, which counts findings instead (`finding_count`, `observed_count`). The measures are: - `failure_rate`: failed model calls, after retries, over the calls that ended, with `by_class` per failure class. Calls the run's own spending cap stopped aren't failures. This isn't `error_rate`, which counts traces (or spans) with an error. - `pass_rate` and `verdicts`, as above. - `cost_per_case`: what EvalRouter charged per trace. Empty for imported traces. `reported_cost_per_case`: the cost your provider reported, per trace. - `tool_calls_per_trace_p50`, `_p90` and `_max`, and the same for model calls (traces only). Both `GET /v1/traces/query` and `GET /v1/traces/analytics` return `retention`: `days`, your workspace's trace window, and `kept_since`, the time before which no trace that EvalRouter received is kept. A trace you import keeps its own start time, so it can start before `kept_since`. Every explicit request carries ISO `from_ts` and `to_ts` values and can cover at most 366 days, so a leap-year calendar selection fits. The web offers 24-hour, 7-day, 30-day, 3-month, 6-month and 9-month presets plus a custom range. `GET /v1/traces/capabilities` returns `earliest_started_at` (or null when unknown), which callers can use to disable unavailable earlier days. The response's `window` gives the resolved `start` and `end` plus the chart's `bucket` and `bucket_seconds`. EvalRouter uses minute buckets through 6 hours, five-minute buckets through 24 hours, hourly buckets through 7 days, daily buckets through 90 days, and Monday-based UTC weekly buckets beyond that. When an analytics range is too large for its selected data path, the 422 response gives the largest fitting whole-day range in `suggested_window_seconds` and `suggested_from_ts`. Trace Logs scan newest-first in bounded slices. A selective search over a long range can return fewer rows than the requested limit while `has_more` is true; follow `next_cursor` to continue the scan. This keeps Load more bounded without skipping or repeating traces. Add `"series_by": "agent"` to get one series per value of a field. `series_by` works on the `traces` and `spans` sources, not `sessions`. It takes one field from that source's `group_by_fields` in `GET /v1/traces/capabilities`, including `metadata.` on traces. Behavior fields such as `behavior_status` are refused with a 422, as is anything that isn't a field name. You get the most frequent values first: 5 by default, or set `series_limit` from 1 to 10. An empty value counts as a value of its own. One group marked `other` holds the rest, and it appears only when there is a rest. Each group has exactly the time buckets and measures of `series`, and the groups add up to it. ## Inspect saved evidence Open a dataset to see saved traces, recorded outcomes and input/output coverage. Choose **View snapshot** to inspect a copy without leaving the dataset. A dataset is kept until you delete it. Its saved copies stay when the original traces are deleted. A dataset copies only the content that the source policy permits. Redaction and workspace access still apply. This initial release supports up to 100 spans and 256 KiB of saved evidence per trace. If the trace changes during capture, retry the save to capture one consistent revision. These snapshots are observations. They do not become reference answers, exportable training data or runnable benchmarks automatically. These screens don't include dataset imports, review workflows, version exports or benchmark generation. ## Turn your app's traces into a benchmark A coding agent can run this flow from the CLI with a workspace API key or a CLI sign-in. It needs a deployment with private benchmarks. Add `--json` to any command. 1. Create a trace connection. An API key needs the `eval:write` and `traces:write` scopes. A CLI sign-in needs the admin or owner role. EvalRouter shows the ingest key once. Write it to an ignored env file, and never commit it. ```sh evalrouter traces connect --name my-app --env-file .env.local ``` 2. Capture traces with the SDK using `EVALROUTER_TRACE_CONNECTION_ID` and `EVALROUTER_TRACE_KEY`. Set the root span input to the user's request and the root span output to your app's final answer. Plain text works best. The traces list command shows what has arrived, and the connections list command lists the connections. 3. Create a dataset and import the most recent completed traces. Each trace becomes one held-out example: the root span input is the task and the root span output is the reference answer. The import skips a trace without both, a trace whose root span failed and an oversized trace. It counts them in `skipped`. Importing confirms that your workspace may evaluate models on this data. ```sh evalrouter datasets create --name "my-app production" evalrouter datasets import-traces DATASET_ID --connection CONNECTION_ID --limit 200 ``` 4. Review the examples, then approve them and freeze a version. `--all` approves every pending example at its current draft. Use `--example ID` to approve a reviewed subset instead. ```sh evalrouter datasets approve DATASET_ID --all evalrouter datasets versions create DATASET_ID ``` 5. Build a private benchmark from the version. The command compares each answer with your app's answer as exact text. An API key needs the benchmark submit scope for this step. The command returns the benchmark ID. ```sh evalrouter datasets benchmark DATASET_ID 1 ``` 6. Run each candidate model on the benchmark, group the runs, and rank them: ```sh evalrouter run BENCHMARK_ID --model MODEL_A --full --yes evalrouter run BENCHMARK_ID --model MODEL_B --full --yes evalrouter result-groups create --name "my-app models" --run RUN_A --run RUN_B evalrouter result-groups get GROUP_ID --rank ``` `--rank` orders models by their headline score, then by cost, and marks the best model and the cheapest model within one standard error of it. The cheapest model within one standard error of the best score is the usual switch candidate. --- Source: https://evalrouter.ai/developers/docs/changelog Markdown: https://evalrouter.ai/docs/changelog.md # Changelog Released features, improvements, and fixes. ## Data kept by default and longer trace ranges 2026-10-16 · October 16 update · production Data stays until you delete it, runs set aside credit per task, and Traces covers up to a year. ### Added - Trace time ranges offer presets up to 6 months. - A custom trace range can span up to one year. ### Changed - Nothing is deleted by time unless your workspace sets a retention rule. - A run sets aside credit for each running task, not its whole cap. - The spending cap stops new work when it can't fund the next call. - EvalRouter's own execution span shows as EvalRouter, not as an agent tool. ### Fixed - Trace charts keep every bucket inside the plot area. - Empty time buckets on trace charts show as zero, not gaps. ### Details - Results, reports, datasets and benchmarks are kept until you delete them. - Calls already running when the cap is reached finish and are charged. - Metrics over long trace ranges come from daily totals. - Trace changes apply to workspaces with Traces enabled. ## Spending caps you can plan around 2026-10-16 · Python and npm 0.5.4 · stable A spending cap is refused only below the minimum to start, and the refusal says how to fix it. ### Changed - `--max-cost` is a spending cap that stops new work it can't fund. - A quote shows the minimum cap a run needs to start. ### Fixed - A cap is refused only when it is below the minimum needed to start. - The `budget_too_small` refusal names the exact minimum and exits with code 5. - The credits command says when a negative balance pauses new work. ### Details - In the TypeScript SDK the same spending cap is `maxCost`. - The refusal says how to raise the cap, and nothing starts or is charged. - Calls already running when the cap is reached finish and are charged. - Prices and fees are unchanged. ## Clients that tolerate new API values 2026-10-14 · Python and npm 0.5.3 · stable Published clients keep working when the API adds a new value or kind to a response. ### Fixed - An unknown response value no longer fails the call with `invalid_response`. - A new response kind, such as a new `model.kind`, parses instead of failing. ### Details - In Python, an unknown enum value parses as its plain string. - An unknown kind parses as `UnknownKind`, `UnknownMode`, `UnknownVariant` or `UnknownSchema`, and `to_dict()` returns the object as sent. - In TypeScript, response enums are typed `"a" | "b" | (string & {})`. - Request types stay closed, so the client still rejects values the API doesn't accept. ## Safer quotes for provider routes 2026-10-12 · Python and npm 0.5.2 · stable Quotes and starts now refuse provider routes that can no longer honor their price, before reserving any credit. ### Changed - The terminal app groups the quote review into Evaluation, Spending and Details. ### Fixed - Quotes and starts refuse provider routes whose price or endpoint has changed. - A refused route reserves no credit and starts no run. - AA-LCR checks Gemma 3 routes against their measured input size. ### Details - A refusal answers HTTP 409, or HTTP 503 with `provider_availability_unknown` when EvalRouter can't read the route's availability. - Cancel stays the default action in the quote review. ## Several models from the terminal app 2026-10-12 · Python and npm 0.5.1 · stable The terminal app runs several models at once and offers a clear upgrade when the API needs one. ### Added - The terminal app can run up to eight models in one shared run. ### Changed - When the API needs a newer client, the terminal app offers Upgrade now. ### Fixed - A guided run keeps the task count you selected. - Run summaries name every model in a shared run. - Quotes refuse AA-LCR model routes too small for its longest inputs. - The catalog hides public environments that you can't run. ### Details - Upgrade now restores the terminal, runs `evalrouter upgrade` and restarts at Home. It never repeats a command that may have started paid work. ## EvalRouter v2 clients: several models in one run 2026-10-11 · Python and npm 0.5.0 · stable · Breaking Run up to eight models on the same tasks under one cap, compare them, and finish interrupted runs. Earlier clients stop working. ### Breaking - 0.4.x clients get HTTP 426 on every request and are never charged. Upgrade with the commands below. - The SDK moved to `evalrouter-sdk`. Depend on it from now on. ```sh # The CLI (or: pipx upgrade evalrouter) uv tool upgrade evalrouter # A project with pip pip install --upgrade evalrouter && pip install --force-reinstall --no-deps evalrouter-sdk # A uv-created environment (no pip) uv pip install --upgrade evalrouter # A uv project uv remove evalrouter && uv add evalrouter-sdk # npm npm install @kimpton-ai/evalrouter@latest ``` [Upgrade guide](/developers/docs/python#upgrade-from-0-4) ### Added - Run two to eight models in one run with repeated `--model`. - Rank the models on the tasks every model finished. - Continue an interrupted run, paying only for unfinished tasks. - Read your credit balance and runnable registry agents from the SDK and CLI. ### Changed - Outdated clients show the exact upgrade command for your installation. ### Removed - Preview SDK groups for development-only features. ### Details - Several models share one spending cap: `evalrouter run gsm8k --model A --model B`, or `client.runs.create(benchmark=..., subjects=[...])` in the SDK. - Comparison: `evalrouter runs compare RUN` or `run.compare()` shows each model's rank, score and 95% range (`1=` for a tie), and the difference when there are two models. - Continue: a run stopped by its cap, your credit or a cancellation shows as interrupted. `evalrouter runs continue RUN`, `run.continue_()` in Python or `run.continue()` in npm prices only the unfinished tasks and never charges the finished ones again. - Reads: `client.wallet.get()` and `client.agents.list()`, matching `evalrouter credits` and `evalrouter agents list`. - The Python SDK package is `evalrouter-sdk`, and the old package name `evalrouter` is now the CLI. - Upgrade errors: the API answers 426 `client_upgrade_required`, and the SDKs raise `ClientUpgradeRequired` with the command. - Removed preview groups: `campaign_templates`, `environment_drafts`, `protocols`, and the agent attempt protocol `client_runs`. Agents on your machine run through `runs.create(agent=...)` and `evalrouter.agents`. ## One TypeScript SDK for evaluations and tracing 2026-10-06 · npm 0.4.1 · stable One npm package now covers both the evaluation client and trace capture. ### Added - Trace capture ships in the main package, at `@kimpton-ai/evalrouter/tracing`. - Tracing includes TypeScript declarations and OpenTelemetry dependencies for Node.js 22+. ### Details - `TraceCapture` is part of `@kimpton-ai/evalrouter`, so one install covers the client and capture. ## Python SDK and CLI 0.4.0 2026-10-06 · Python 0.4.0 · stable Shorter imports and trace capture for the Python client, and native benchmarks that start without a quote. ### Added - Import the client from `evalrouter`. - Capture agent, model and tool spans with the `evalrouter[tracing]` extra. - Native single- and multi-model benchmarks start without a quote or required cap. ### Changed - Upgrade the SDK and its CLI with `evalrouter upgrade`. ### Details - Trace capture uses `TraceCapture` from `evalrouter.tracing`. The upgrade also runs as `evalrouter --upgrade`. - You can still set an optional spending cap. ## Retained content in benchmark traces 2026-10-06 · October 6 update · production Model spans in benchmark traces show the recorded inputs and outputs. Workspaces with Traces enabled ### Changed - New native benchmark requests keep prompt inputs when chat formatting is off. ### Fixed - Model spans load their available input and output content. ### Details - Access and retention rules still apply. - Content never recorded in older runs remains unavailable. ## More room in comparison reports 2026-10-02 · Python 0.3.23 · stable Exported comparison reports have more space above their charts. ### Changed - Comparison reports have more space above their charts. ### Details - Generate a new report to use the new layout. Saved exports keep their original layout. A selection of verified releases. New updates will appear here as they ship.