evalrouter 0.4.3__tar.gz → 0.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. evalrouter-0.5.0/PKG-INFO +236 -0
  2. evalrouter-0.5.0/README.md +203 -0
  3. evalrouter-0.5.0/pyproject.toml +59 -0
  4. evalrouter-0.5.0/src/evalrouter_reports/__init__.py +1 -0
  5. evalrouter-0.4.3/src/kimpton_evalrouter/_report_brand.py → evalrouter-0.5.0/src/evalrouter_reports/brand.py +2 -2
  6. evalrouter-0.5.0/src/evalrouter_reports/data/__init__.py +1 -0
  7. evalrouter-0.4.3/src/kimpton_evalrouter/_report_chart_data.py → evalrouter-0.5.0/src/evalrouter_reports/data/chart_data.py +51 -11
  8. evalrouter-0.4.3/src/kimpton_evalrouter/_report_document.py → evalrouter-0.5.0/src/evalrouter_reports/data/document.py +3 -42
  9. evalrouter-0.5.0/src/evalrouter_reports/data/metrics.py +66 -0
  10. evalrouter-0.5.0/src/evalrouter_reports/data/native.py +104 -0
  11. evalrouter-0.5.0/src/evalrouter_reports/data/pareto.py +336 -0
  12. evalrouter-0.5.0/src/evalrouter_reports/html/__init__.py +1 -0
  13. evalrouter-0.4.3/src/kimpton_evalrouter/_chart_select.py → evalrouter-0.5.0/src/evalrouter_reports/html/chart_select.py +7 -5
  14. evalrouter-0.4.3/src/kimpton_evalrouter/_chart_specs.py → evalrouter-0.5.0/src/evalrouter_reports/html/chart_specs.py +101 -26
  15. evalrouter-0.4.3/src/kimpton_evalrouter/_report_charts.py → evalrouter-0.5.0/src/evalrouter_reports/html/charts.py +144 -25
  16. evalrouter-0.4.3/src/kimpton_evalrouter/_report_document_html.py → evalrouter-0.5.0/src/evalrouter_reports/html/document.py +1 -1
  17. evalrouter-0.4.3/src/kimpton_evalrouter/_report_pareto.py → evalrouter-0.5.0/src/evalrouter_reports/html/pareto.py +4 -325
  18. evalrouter-0.4.3/src/kimpton_evalrouter/_report_theme.py → evalrouter-0.5.0/src/evalrouter_reports/html/theme.py +5 -64
  19. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_account.py +177 -143
  20. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_artifacts.py +7 -7
  21. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_chain_prefetch.py +54 -70
  22. evalrouter-0.5.0/src/kimpton_evalrouter/_cli_commands.py +1992 -0
  23. evalrouter-0.5.0/src/kimpton_evalrouter/_client_run_cli.py +496 -0
  24. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_comparison.py +152 -104
  25. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_comparison_checkpoint.py +14 -14
  26. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_comparison_html.py +15 -66
  27. evalrouter-0.5.0/src/kimpton_evalrouter/_completion.py +549 -0
  28. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_environment_publishing.py +76 -38
  29. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_evaluation_jobs_cli.py +210 -57
  30. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_failure_guidance.py +23 -0
  31. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_group_results.py +6 -4
  32. evalrouter-0.5.0/src/kimpton_evalrouter/_group_review.py +91 -0
  33. evalrouter-0.5.0/src/kimpton_evalrouter/_group_summary_prefetch.py +105 -0
  34. evalrouter-0.5.0/src/kimpton_evalrouter/_groups.py +932 -0
  35. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_guided.py +712 -1649
  36. evalrouter-0.5.0/src/kimpton_evalrouter/_install_repair.py +142 -0
  37. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_listing.py +73 -219
  38. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_read_cache.py +35 -30
  39. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_reasoning_controls.py +1 -12
  40. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_release_cli.py +22 -24
  41. evalrouter-0.5.0/src/kimpton_evalrouter/_result_groups.py +358 -0
  42. evalrouter-0.5.0/src/kimpton_evalrouter/_subjects_cli.py +245 -0
  43. evalrouter-0.5.0/src/kimpton_evalrouter/_suite_cli.py +363 -0
  44. evalrouter-0.5.0/src/kimpton_evalrouter/_task_recommendation_cli.py +174 -0
  45. evalrouter-0.5.0/src/kimpton_evalrouter/_trace_benchmark_cli.py +203 -0
  46. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_tui.py +27 -14
  47. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_tui_port.py +6 -0
  48. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_tui_session.py +37 -72
  49. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_tui_views.py +62 -2
  50. evalrouter-0.5.0/src/kimpton_evalrouter/_tune.py +388 -0
  51. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_update_notice.py +14 -4
  52. evalrouter-0.5.0/src/kimpton_evalrouter/_workload_cli.py +85 -0
  53. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/cli.py +3278 -2154
  54. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/render/__init__.py +4 -0
  55. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/render/_theme.py +2 -0
  56. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/render/_widgets.py +36 -0
  57. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/render/live.py +2 -2
  58. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/render/screens.py +37 -17
  59. evalrouter-0.4.3/PKG-INFO +0 -465
  60. evalrouter-0.4.3/README.md +0 -426
  61. evalrouter-0.4.3/pyproject.toml +0 -57
  62. evalrouter-0.4.3/src/evalrouter/__init__.py +0 -26
  63. evalrouter-0.4.3/src/evalrouter/agents.py +0 -63
  64. evalrouter-0.4.3/src/evalrouter/langsmith.py +0 -18
  65. evalrouter-0.4.3/src/evalrouter/py.typed +0 -0
  66. evalrouter-0.4.3/src/evalrouter/tracing.py +0 -5
  67. evalrouter-0.4.3/src/evalrouter/types.py +0 -9
  68. evalrouter-0.4.3/src/evalrouter_contracts/__init__.py +0 -11
  69. evalrouter-0.4.3/src/evalrouter_contracts/bundle.py +0 -46
  70. evalrouter-0.4.3/src/evalrouter_contracts/components.py +0 -181
  71. evalrouter-0.4.3/src/evalrouter_contracts/models.py +0 -288
  72. evalrouter-0.4.3/src/evalrouter_contracts/protocol.py +0 -221
  73. evalrouter-0.4.3/src/evalrouter_contracts/py.typed +0 -0
  74. evalrouter-0.4.3/src/evalrouter_contracts/templates.py +0 -136
  75. evalrouter-0.4.3/src/evalrouter_contracts/validation.py +0 -329
  76. evalrouter-0.4.3/src/kimpton_evalrouter/__init__.py +0 -244
  77. evalrouter-0.4.3/src/kimpton_evalrouter/_acp_agents.py +0 -702
  78. evalrouter-0.4.3/src/kimpton_evalrouter/_acp_controller.py +0 -706
  79. evalrouter-0.4.3/src/kimpton_evalrouter/_acp_launch.py +0 -230
  80. evalrouter-0.4.3/src/kimpton_evalrouter/_acp_registry/LICENSE +0 -176
  81. evalrouter-0.4.3/src/kimpton_evalrouter/_acp_registry/registry-2026-10-06.json +0 -1547
  82. evalrouter-0.4.3/src/kimpton_evalrouter/_boundary.py +0 -274
  83. evalrouter-0.4.3/src/kimpton_evalrouter/_client_run.py +0 -1307
  84. evalrouter-0.4.3/src/kimpton_evalrouter/_forecasts.py +0 -100
  85. evalrouter-0.4.3/src/kimpton_evalrouter/_group_review.py +0 -399
  86. evalrouter-0.4.3/src/kimpton_evalrouter/_group_summary_prefetch.py +0 -134
  87. evalrouter-0.4.3/src/kimpton_evalrouter/_groups.py +0 -1919
  88. evalrouter-0.4.3/src/kimpton_evalrouter/_helpers.py +0 -101
  89. evalrouter-0.4.3/src/kimpton_evalrouter/_in_code.py +0 -434
  90. evalrouter-0.4.3/src/kimpton_evalrouter/_progress.py +0 -191
  91. evalrouter-0.4.3/src/kimpton_evalrouter/_repository_checkout.py +0 -331
  92. evalrouter-0.4.3/src/kimpton_evalrouter/_resources.py +0 -2467
  93. evalrouter-0.4.3/src/kimpton_evalrouter/_result_groups.py +0 -196
  94. evalrouter-0.4.3/src/kimpton_evalrouter/_task_adapters/__init__.py +0 -90
  95. evalrouter-0.4.3/src/kimpton_evalrouter/_task_adapters/a1_prompt_answer.py +0 -44
  96. evalrouter-0.4.3/src/kimpton_evalrouter/_task_adapters/a2_environment.py +0 -62
  97. evalrouter-0.4.3/src/kimpton_evalrouter/_task_adapters/a3_file_task.py +0 -237
  98. evalrouter-0.4.3/src/kimpton_evalrouter/_task_adapters/a4_repository.py +0 -115
  99. evalrouter-0.4.3/src/kimpton_evalrouter/_task_mcp.py +0 -290
  100. evalrouter-0.4.3/src/kimpton_evalrouter/_transport.py +0 -527
  101. evalrouter-0.4.3/src/kimpton_evalrouter/_tune.py +0 -257
  102. evalrouter-0.4.3/src/kimpton_evalrouter/_web_routes.py +0 -69
  103. evalrouter-0.4.3/src/kimpton_evalrouter/_workload_cli.py +0 -101
  104. evalrouter-0.4.3/src/kimpton_evalrouter/agents.py +0 -633
  105. evalrouter-0.4.3/src/kimpton_evalrouter/langsmith.py +0 -1214
  106. evalrouter-0.4.3/src/kimpton_evalrouter/py.typed +0 -0
  107. evalrouter-0.4.3/src/kimpton_evalrouter/tracing.py +0 -836
  108. evalrouter-0.4.3/src/kimpton_evalrouter/types.py +0 -4988
  109. {evalrouter-0.4.3 → evalrouter-0.5.0}/LICENSE +0 -0
  110. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/evalrouter/__main__.py +0 -0
  111. /evalrouter-0.4.3/src/kimpton_evalrouter/_chart_format.py → /evalrouter-0.5.0/src/evalrouter_reports/html/chart_format.py +0 -0
  112. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/__main__.py +0 -0
  113. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_history_labels.py +0 -0
  114. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/_tui_table.py +0 -0
  115. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/render/_console.py +0 -0
  116. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/render/picker.py +0 -0
  117. {evalrouter-0.4.3 → evalrouter-0.5.0}/src/kimpton_evalrouter/render/tables.py +0 -0
@@ -0,0 +1,236 @@
1
+ Metadata-Version: 2.4
2
+ Name: evalrouter
3
+ Version: 0.5.0
4
+ Summary: The EvalRouter command line and interactive terminal workspace
5
+ Project-URL: Homepage, https://evalrouter.ai
6
+ Project-URL: Documentation, https://evalrouter.ai/developers/docs/cli
7
+ License-Expression: LicenseRef-Kimpton-EvalRouter-SDK
8
+ License-File: LICENSE
9
+ Keywords: benchmarks,cli,evalrouter,llm,model-evaluation
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Requires-Python: <3.14,>=3.12
17
+ Requires-Dist: evalrouter-sdk==0.5.0
18
+ Requires-Dist: rich==15.0.0
19
+ Requires-Dist: textual==8.2.8
20
+ Provides-Extra: agents
21
+ Requires-Dist: evalrouter-sdk[agents]==0.5.0; extra == 'agents'
22
+ Provides-Extra: benchmark
23
+ Requires-Dist: evalrouter-sdk[benchmark]==0.5.0; extra == 'benchmark'
24
+ Provides-Extra: keyring
25
+ Requires-Dist: keyring==25.7.0; extra == 'keyring'
26
+ Provides-Extra: langsmith
27
+ Requires-Dist: evalrouter-sdk[langsmith]==0.5.0; extra == 'langsmith'
28
+ Provides-Extra: strands
29
+ Requires-Dist: evalrouter-sdk[strands]==0.5.0; extra == 'strands'
30
+ Provides-Extra: tracing
31
+ Requires-Dist: evalrouter-sdk[tracing]==0.5.0; extra == 'tracing'
32
+ Description-Content-Type: text/markdown
33
+
34
+ # EvalRouter CLI
35
+
36
+ Evaluate models in a full-screen terminal workspace or from scripts. Browse
37
+ benchmarks, choose models, optionally set a spending cap, follow runs,
38
+ compare or export their results, and author your own benchmarks. The CLI is
39
+ built on the [`evalrouter-sdk`](https://pypi.org/project/evalrouter-sdk/) Python SDK, which
40
+ it installs at exactly the same version.
41
+
42
+ Requires Python 3.12 or 3.13. Distributed under the proprietary Kimpton EvalRouter
43
+ SDK License, included as `LICENSE` in the package.
44
+
45
+ ## Install and create your account
46
+
47
+ We recommend [uv](https://docs.astral.sh/uv/getting-started/installation/) to install the CLI in its own Python environment:
48
+
49
+ ```sh
50
+ uv tool install evalrouter
51
+ evalrouter
52
+ ```
53
+
54
+ With pip, use `python -m pip install evalrouter` in a Python 3.12 or 3.13 environment.
55
+ uv selects a compatible Python for the CLI and downloads one if needed. If
56
+ your shell cannot find `evalrouter`, run `uv tool update-shell` and restart your
57
+ terminal. Upgrade an existing installation with `evalrouter upgrade` (or
58
+ `evalrouter --upgrade`). Stable installations stay on stable unless you pass
59
+ `--pre`; installed prereleases include prereleases automatically. The command
60
+ uses uv, pipx or pip in the current virtual environment. Source installs,
61
+ system Python and installer-pinned versions need their original installer.
62
+ Check the installed version with `evalrouter --version`. Use `evalrouter --help`
63
+ for explicit commands, or see the [CLI guide](https://evalrouter.ai/developers/docs/cli).
64
+
65
+ The interactive workspace checks for newer releases in the background and shows
66
+ an update notice when one is available. The check never installs an update or
67
+ delays opening the workspace. Set `EVALROUTER_NO_UPDATE_CHECK=1` to disable it.
68
+ Scripts, editable installs and explicitly pinned installations skip update checks.
69
+
70
+ ### Complete command names with Tab
71
+
72
+ For zsh, add this line to `~/.zshrc` after your `compinit` setup, then start a new
73
+ terminal:
74
+
75
+ ```sh
76
+ eval "$(evalrouter completion zsh)"
77
+ ```
78
+
79
+ For bash, add this line to `~/.bashrc`:
80
+
81
+ ```sh
82
+ eval "$(evalrouter completion bash)"
83
+ ```
84
+
85
+ For fish, run `evalrouter completion fish > ~/.config/fish/completions/evalrouter.fish`.
86
+
87
+ Tab completes commands, subcommands, flags and their choices, plus benchmark and
88
+ model names, ACP Registry agents, connection names, profiles and recent run IDs.
89
+ Names come from a local cache that a background process refreshes with read-only
90
+ list requests; pressing Tab never waits for the API.
91
+
92
+ This package was previously published as `kimpton-evalrouter-sdk`. The command
93
+ stays `evalrouter`. Use `from evalrouter import EvalRouter` for new integrations;
94
+ legacy `kimpton_evalrouter` imports remain compatible and refer to the same
95
+ public classes. To switch, run
96
+ `uv tool uninstall kimpton-evalrouter-sdk` (or
97
+ `pip uninstall -y kimpton-evalrouter-sdk evalrouter`) and install `evalrouter`.
98
+
99
+ The package supplies the `evalrouter` command; no repository checkout is needed.
100
+ [Create an EvalRouter account](https://evalrouter.ai/register), verify your email,
101
+ and follow the browser sign-in below.
102
+ Package installation does not grant account access or evaluation credit.
103
+
104
+ Sign in with your account:
105
+
106
+ ```sh
107
+ evalrouter login
108
+ evalrouter whoami
109
+ ```
110
+
111
+ Follow the browser sign-in; on a local computer the browser returns to the
112
+ waiting CLI. For a remote terminal, use `evalrouter login --no-browser` and
113
+ approve the code on a device with a browser. New accounts finish setup there.
114
+ The CLI selects your only workspace automatically, or lets you choose one.
115
+ Production is the default API; `evalrouter options` lists `--base-url` and the other
116
+ settings that apply to every command.
117
+ No API key or credential-storage setup is needed for a normal sign-in.
118
+ The optional `evalrouter[keyring]` extra enables a compatible OS keychain
119
+ backend; otherwise credentials use a private file readable only by your user.
120
+ In the workspace, **Account and workspace → Sign in** starts the same flow.
121
+ See the [sign-in guide](https://evalrouter.ai/developers/docs/cli-login) for
122
+ workspace switching, stored API keys and signing out.
123
+
124
+ CI and services can use `EVALROUTER_API_KEY` and `EVALROUTER_WORKSPACE_ID` supplied
125
+ privately by a secret manager. Never put credentials in arguments, URLs, request
126
+ files or logs.
127
+
128
+ ## Interactive workspace
129
+
130
+ Run `evalrouter` without arguments in a terminal to open the full-screen
131
+ workspace. Choose **Account and workspace → Sign in** to connect your account.
132
+ Local sign-in returns from the browser to the waiting CLI; for a remote terminal,
133
+ use `evalrouter login --no-browser` and approve the code on a device with a browser.
134
+
135
+ **Run a benchmark** guides you through the benchmark, your selected compatible models, each
136
+ model's reasoning settings and coverage. Type to filter lists; Space or Enter
137
+ toggles a model and Tab continues. A one-model evaluation shows its quote and starts when you confirm. A spending
138
+ cap (`--max-cost`) is optional; without one the run is bounded by your wallet
139
+ credit. Each run is one model on one benchmark; to compare models, run each one and
140
+ compare the results.
141
+
142
+ Choose a suggested sample, **Custom sample size**, or **Full benchmark** for
143
+ coverage. A custom sample accepts 1 to 1,000 tasks, limited to the benchmark's
144
+ task count when known. Full benchmark includes every task.
145
+
146
+ Home includes **Run history** and **Results**, plus model and benchmark
147
+ browsing, billing and account settings. **Results** offers **Single run**,
148
+ **Saved result group** and **Compare runs**.
149
+ While watching, choose **Open live run in browser** with Enter, B or a click. Live status continues in the terminal.
150
+
151
+ Escape goes back; Left also goes back when you are not editing text. Backspace
152
+ edits text and filters. Back controls stay on Home at the root, and returning
153
+ to Home preserves its selection. Ctrl+Q or the **Exit** action exits. Leaving a
154
+ live run stops watching only: submitted server work continues. Use
155
+ PgUp/PgDn for long reviews and results, and F1 for keyboard help. Select output
156
+ with the mouse and press Ctrl+C to copy; with no selection, Ctrl+C goes back.
157
+ Password fields cannot be copied. `EVALROUTER_TUI=off` selects the older interactive
158
+ shell; explicit commands, plain output and JSON remain available.
159
+
160
+ ## Run a model benchmark
161
+
162
+ For a shared native benchmark, the single-benchmark model picker lists the
163
+ routes accepted by that exact version's catalog checks. Its explanation names
164
+ fixed sampling or native continuation scoring requirements where applicable;
165
+ the listed models are alternatives. A named excluded route reports the API's
166
+ reason. Unavailable or unknown discovery remains explicit, and launch checks
167
+ current eligibility again. Private benchmarks and registry evals without this
168
+ scoped catalog check retain their qualification step before launch.
169
+
170
+ Sign in, choose a ready benchmark and compatible model, then run:
171
+
172
+ ```sh
173
+ evalrouter login
174
+ evalrouter benchmarks list
175
+ evalrouter models list
176
+ evalrouter run BENCHMARK_SLUG --model MODEL_ID --sample 3
177
+ evalrouter run BENCHMARK_SLUG --model MODEL_ID --task TASK_ID --task OTHER_TASK_ID
178
+ ```
179
+
180
+ A spending cap is optional: with `--max-cost USD` a run starts only when its
181
+ quote's maximum charge fits under the cap; without it the run is bounded by your
182
+ available wallet credit. Without a terminal, a paid start needs `--yes`.
183
+
184
+ For scripts, approve paid work explicitly and retain the operation identity:
185
+
186
+ ```sh
187
+ evalrouter run BENCHMARK_SLUG --model MODEL_ID --sample 3 --yes --json
188
+ evalrouter runs list
189
+ evalrouter runs wait RUN_ID
190
+ evalrouter runs results RUN_ID
191
+ evalrouter runs export RUN_ID --file-format json --output result.json
192
+ ```
193
+
194
+ A sample is not a full-benchmark score. A local timeout or interrupted watcher
195
+ does not stop server work. Reuse the saved request identity when recovering an
196
+ uncertain submission; a new identity can start another evaluation.
197
+
198
+ Use repeatable `--task ID` flags to run exact task IDs. In an interactive run,
199
+ choose **Specific tasks** to browse the selected source. Required dependencies
200
+ are added automatically and included in the displayed task count. The service
201
+ checks direct task IDs during preflight before starting work.
202
+
203
+ Use `evalrouter --help` and each command's `--help` for supported options.
204
+ Account commands include `login`, `whoami`, `workspaces` and `logout`;
205
+ `credits` reads balance and holds. Payments take place on the website.
206
+
207
+ ## Author your own benchmark
208
+
209
+ `benchmarks init`, `benchmarks validate` and `benchmarks bundle` run entirely on
210
+ your machine: no account, no network request, and nothing from your package is
211
+ imported or executed. The normative validator ships inside `evalrouter-sdk`, so
212
+ the base installation includes it:
213
+
214
+ ```sh
215
+ evalrouter benchmarks init ./my-benchmark --namespace example --name my-benchmark
216
+ evalrouter benchmarks validate ./my-benchmark
217
+ evalrouter benchmarks bundle ./my-benchmark # evalrouter-bundle-example-my-benchmark-<version>.zip
218
+ ```
219
+
220
+ `init` writes an explicitly synthetic draft
221
+ and claims no license: replace the tasks, rights, references and limits before
222
+ submitting. Local validation is not platform admission — EvalRouter revalidates
223
+ every submission on its own servers.
224
+
225
+ Where private benchmarks are enabled, `benchmarks uploads`, `benchmarks imports`
226
+ and `benchmarks private` use workspace-private data with the service's built-in graders. These
227
+ are account-backed operations, separate from local package validation. See the
228
+ [private benchmark guide](https://evalrouter.ai/developers/docs/byob) for manifests,
229
+ supported formats, source management and permissions.
230
+
231
+ ## Python SDK
232
+
233
+ Applications and scripts use the SDK directly: `python -m pip install evalrouter-sdk`
234
+ installs the typed client, `evalrouter.agents`, trace capture and the LangSmith
235
+ connector without the terminal application. See
236
+ [`evalrouter-sdk`](https://pypi.org/project/evalrouter-sdk/).
@@ -0,0 +1,203 @@
1
+ # EvalRouter CLI
2
+
3
+ Evaluate models in a full-screen terminal workspace or from scripts. Browse
4
+ benchmarks, choose models, optionally set a spending cap, follow runs,
5
+ compare or export their results, and author your own benchmarks. The CLI is
6
+ built on the [`evalrouter-sdk`](https://pypi.org/project/evalrouter-sdk/) Python SDK, which
7
+ it installs at exactly the same version.
8
+
9
+ Requires Python 3.12 or 3.13. Distributed under the proprietary Kimpton EvalRouter
10
+ SDK License, included as `LICENSE` in the package.
11
+
12
+ ## Install and create your account
13
+
14
+ We recommend [uv](https://docs.astral.sh/uv/getting-started/installation/) to install the CLI in its own Python environment:
15
+
16
+ ```sh
17
+ uv tool install evalrouter
18
+ evalrouter
19
+ ```
20
+
21
+ With pip, use `python -m pip install evalrouter` in a Python 3.12 or 3.13 environment.
22
+ uv selects a compatible Python for the CLI and downloads one if needed. If
23
+ your shell cannot find `evalrouter`, run `uv tool update-shell` and restart your
24
+ terminal. Upgrade an existing installation with `evalrouter upgrade` (or
25
+ `evalrouter --upgrade`). Stable installations stay on stable unless you pass
26
+ `--pre`; installed prereleases include prereleases automatically. The command
27
+ uses uv, pipx or pip in the current virtual environment. Source installs,
28
+ system Python and installer-pinned versions need their original installer.
29
+ Check the installed version with `evalrouter --version`. Use `evalrouter --help`
30
+ for explicit commands, or see the [CLI guide](https://evalrouter.ai/developers/docs/cli).
31
+
32
+ The interactive workspace checks for newer releases in the background and shows
33
+ an update notice when one is available. The check never installs an update or
34
+ delays opening the workspace. Set `EVALROUTER_NO_UPDATE_CHECK=1` to disable it.
35
+ Scripts, editable installs and explicitly pinned installations skip update checks.
36
+
37
+ ### Complete command names with Tab
38
+
39
+ For zsh, add this line to `~/.zshrc` after your `compinit` setup, then start a new
40
+ terminal:
41
+
42
+ ```sh
43
+ eval "$(evalrouter completion zsh)"
44
+ ```
45
+
46
+ For bash, add this line to `~/.bashrc`:
47
+
48
+ ```sh
49
+ eval "$(evalrouter completion bash)"
50
+ ```
51
+
52
+ For fish, run `evalrouter completion fish > ~/.config/fish/completions/evalrouter.fish`.
53
+
54
+ Tab completes commands, subcommands, flags and their choices, plus benchmark and
55
+ model names, ACP Registry agents, connection names, profiles and recent run IDs.
56
+ Names come from a local cache that a background process refreshes with read-only
57
+ list requests; pressing Tab never waits for the API.
58
+
59
+ This package was previously published as `kimpton-evalrouter-sdk`. The command
60
+ stays `evalrouter`. Use `from evalrouter import EvalRouter` for new integrations;
61
+ legacy `kimpton_evalrouter` imports remain compatible and refer to the same
62
+ public classes. To switch, run
63
+ `uv tool uninstall kimpton-evalrouter-sdk` (or
64
+ `pip uninstall -y kimpton-evalrouter-sdk evalrouter`) and install `evalrouter`.
65
+
66
+ The package supplies the `evalrouter` command; no repository checkout is needed.
67
+ [Create an EvalRouter account](https://evalrouter.ai/register), verify your email,
68
+ and follow the browser sign-in below.
69
+ Package installation does not grant account access or evaluation credit.
70
+
71
+ Sign in with your account:
72
+
73
+ ```sh
74
+ evalrouter login
75
+ evalrouter whoami
76
+ ```
77
+
78
+ Follow the browser sign-in; on a local computer the browser returns to the
79
+ waiting CLI. For a remote terminal, use `evalrouter login --no-browser` and
80
+ approve the code on a device with a browser. New accounts finish setup there.
81
+ The CLI selects your only workspace automatically, or lets you choose one.
82
+ Production is the default API; `evalrouter options` lists `--base-url` and the other
83
+ settings that apply to every command.
84
+ No API key or credential-storage setup is needed for a normal sign-in.
85
+ The optional `evalrouter[keyring]` extra enables a compatible OS keychain
86
+ backend; otherwise credentials use a private file readable only by your user.
87
+ In the workspace, **Account and workspace → Sign in** starts the same flow.
88
+ See the [sign-in guide](https://evalrouter.ai/developers/docs/cli-login) for
89
+ workspace switching, stored API keys and signing out.
90
+
91
+ CI and services can use `EVALROUTER_API_KEY` and `EVALROUTER_WORKSPACE_ID` supplied
92
+ privately by a secret manager. Never put credentials in arguments, URLs, request
93
+ files or logs.
94
+
95
+ ## Interactive workspace
96
+
97
+ Run `evalrouter` without arguments in a terminal to open the full-screen
98
+ workspace. Choose **Account and workspace → Sign in** to connect your account.
99
+ Local sign-in returns from the browser to the waiting CLI; for a remote terminal,
100
+ use `evalrouter login --no-browser` and approve the code on a device with a browser.
101
+
102
+ **Run a benchmark** guides you through the benchmark, your selected compatible models, each
103
+ model's reasoning settings and coverage. Type to filter lists; Space or Enter
104
+ toggles a model and Tab continues. A one-model evaluation shows its quote and starts when you confirm. A spending
105
+ cap (`--max-cost`) is optional; without one the run is bounded by your wallet
106
+ credit. Each run is one model on one benchmark; to compare models, run each one and
107
+ compare the results.
108
+
109
+ Choose a suggested sample, **Custom sample size**, or **Full benchmark** for
110
+ coverage. A custom sample accepts 1 to 1,000 tasks, limited to the benchmark's
111
+ task count when known. Full benchmark includes every task.
112
+
113
+ Home includes **Run history** and **Results**, plus model and benchmark
114
+ browsing, billing and account settings. **Results** offers **Single run**,
115
+ **Saved result group** and **Compare runs**.
116
+ While watching, choose **Open live run in browser** with Enter, B or a click. Live status continues in the terminal.
117
+
118
+ Escape goes back; Left also goes back when you are not editing text. Backspace
119
+ edits text and filters. Back controls stay on Home at the root, and returning
120
+ to Home preserves its selection. Ctrl+Q or the **Exit** action exits. Leaving a
121
+ live run stops watching only: submitted server work continues. Use
122
+ PgUp/PgDn for long reviews and results, and F1 for keyboard help. Select output
123
+ with the mouse and press Ctrl+C to copy; with no selection, Ctrl+C goes back.
124
+ Password fields cannot be copied. `EVALROUTER_TUI=off` selects the older interactive
125
+ shell; explicit commands, plain output and JSON remain available.
126
+
127
+ ## Run a model benchmark
128
+
129
+ For a shared native benchmark, the single-benchmark model picker lists the
130
+ routes accepted by that exact version's catalog checks. Its explanation names
131
+ fixed sampling or native continuation scoring requirements where applicable;
132
+ the listed models are alternatives. A named excluded route reports the API's
133
+ reason. Unavailable or unknown discovery remains explicit, and launch checks
134
+ current eligibility again. Private benchmarks and registry evals without this
135
+ scoped catalog check retain their qualification step before launch.
136
+
137
+ Sign in, choose a ready benchmark and compatible model, then run:
138
+
139
+ ```sh
140
+ evalrouter login
141
+ evalrouter benchmarks list
142
+ evalrouter models list
143
+ evalrouter run BENCHMARK_SLUG --model MODEL_ID --sample 3
144
+ evalrouter run BENCHMARK_SLUG --model MODEL_ID --task TASK_ID --task OTHER_TASK_ID
145
+ ```
146
+
147
+ A spending cap is optional: with `--max-cost USD` a run starts only when its
148
+ quote's maximum charge fits under the cap; without it the run is bounded by your
149
+ available wallet credit. Without a terminal, a paid start needs `--yes`.
150
+
151
+ For scripts, approve paid work explicitly and retain the operation identity:
152
+
153
+ ```sh
154
+ evalrouter run BENCHMARK_SLUG --model MODEL_ID --sample 3 --yes --json
155
+ evalrouter runs list
156
+ evalrouter runs wait RUN_ID
157
+ evalrouter runs results RUN_ID
158
+ evalrouter runs export RUN_ID --file-format json --output result.json
159
+ ```
160
+
161
+ A sample is not a full-benchmark score. A local timeout or interrupted watcher
162
+ does not stop server work. Reuse the saved request identity when recovering an
163
+ uncertain submission; a new identity can start another evaluation.
164
+
165
+ Use repeatable `--task ID` flags to run exact task IDs. In an interactive run,
166
+ choose **Specific tasks** to browse the selected source. Required dependencies
167
+ are added automatically and included in the displayed task count. The service
168
+ checks direct task IDs during preflight before starting work.
169
+
170
+ Use `evalrouter --help` and each command's `--help` for supported options.
171
+ Account commands include `login`, `whoami`, `workspaces` and `logout`;
172
+ `credits` reads balance and holds. Payments take place on the website.
173
+
174
+ ## Author your own benchmark
175
+
176
+ `benchmarks init`, `benchmarks validate` and `benchmarks bundle` run entirely on
177
+ your machine: no account, no network request, and nothing from your package is
178
+ imported or executed. The normative validator ships inside `evalrouter-sdk`, so
179
+ the base installation includes it:
180
+
181
+ ```sh
182
+ evalrouter benchmarks init ./my-benchmark --namespace example --name my-benchmark
183
+ evalrouter benchmarks validate ./my-benchmark
184
+ evalrouter benchmarks bundle ./my-benchmark # evalrouter-bundle-example-my-benchmark-<version>.zip
185
+ ```
186
+
187
+ `init` writes an explicitly synthetic draft
188
+ and claims no license: replace the tasks, rights, references and limits before
189
+ submitting. Local validation is not platform admission — EvalRouter revalidates
190
+ every submission on its own servers.
191
+
192
+ Where private benchmarks are enabled, `benchmarks uploads`, `benchmarks imports`
193
+ and `benchmarks private` use workspace-private data with the service's built-in graders. These
194
+ are account-backed operations, separate from local package validation. See the
195
+ [private benchmark guide](https://evalrouter.ai/developers/docs/byob) for manifests,
196
+ supported formats, source management and permissions.
197
+
198
+ ## Python SDK
199
+
200
+ Applications and scripts use the SDK directly: `python -m pip install evalrouter-sdk`
201
+ installs the typed client, `evalrouter.agents`, trace capture and the LangSmith
202
+ connector without the terminal application. See
203
+ [`evalrouter-sdk`](https://pypi.org/project/evalrouter-sdk/).
@@ -0,0 +1,59 @@
1
+ [build-system]
2
+ requires = ["hatchling==1.27.0"]
3
+ build-backend = "hatchling.build"
4
+
5
+ # The `evalrouter` command and its interactive workspace, a client of the
6
+ # `evalrouter-sdk` SDK at exactly the same version (build_packages.py refuses
7
+ # any drift). It keeps the PyPI name existing users installed the command
8
+ # under, so `uv tool upgrade evalrouter` and `pipx upgrade evalrouter` keep
9
+ # working. Its modules live in src/kimpton_evalrouter and install into the
10
+ # same `kimpton_evalrouter` package as the SDK (the internal SDK `__init__.py`
11
+ # extends the package path to this tree in the editable workspace).
12
+ # scripts/release/build_packages.py (`python_manifest("cli")`) stages them,
13
+ # with the reviewed public cli.py from public/, for release.
14
+ [project]
15
+ name = "evalrouter"
16
+ version = "0.5.0"
17
+ description = "The EvalRouter command line and interactive terminal workspace"
18
+ readme = "README.md"
19
+ license = "LicenseRef-Kimpton-EvalRouter-SDK"
20
+ license-files = ["LICENSE"]
21
+ requires-python = ">=3.12,<3.14"
22
+ keywords = ["evalrouter", "model-evaluation", "benchmarks", "cli", "llm"]
23
+ classifiers = [
24
+ "Environment :: Console",
25
+ "Intended Audience :: Developers",
26
+ "Intended Audience :: Science/Research",
27
+ "Programming Language :: Python :: 3 :: Only",
28
+ "Programming Language :: Python :: 3.12",
29
+ "Programming Language :: Python :: 3.13",
30
+ ]
31
+ # The SDK at the same version, plus terminal rendering: rich for human output
32
+ # and Textual for the interactive workspace. Exact pins; rich 15.0.0 matches
33
+ # deploy/experiments/requirements.lock.
34
+ dependencies = ["evalrouter-sdk==0.5.0", "rich==15.0.0", "textual==8.2.8"]
35
+
36
+ [project.urls]
37
+ Homepage = "https://evalrouter.ai"
38
+ Documentation = "https://evalrouter.ai/developers/docs/cli"
39
+
40
+ [project.optional-dependencies]
41
+ # Every extra the combined `evalrouter` 0.4.x offered keeps resolving, so an
42
+ # existing `evalrouter[tracing]` requirement still installs what it named. The
43
+ # SDK's own extras forward to `evalrouter-sdk` at the same version.
44
+ tracing = ["evalrouter-sdk[tracing]==0.5.0"]
45
+ strands = ["evalrouter-sdk[strands]==0.5.0"]
46
+ langsmith = ["evalrouter-sdk[langsmith]==0.5.0"]
47
+ # Offline `benchmark init/validate/bundle`: the SDK's validation extra.
48
+ benchmark = ["evalrouter-sdk[benchmark]==0.5.0"]
49
+ # Account sign-in stores tokens in the OS keychain when this extra is
50
+ # installed; otherwise it uses a private 0600 file.
51
+ keyring = ["keyring==25.7.0"]
52
+ # `evalrouter run --agent`: the SDK's client-run ACP controller dependencies.
53
+ agents = ["evalrouter-sdk[agents]==0.5.0"]
54
+
55
+ [project.scripts]
56
+ evalrouter = "kimpton_evalrouter.cli:main"
57
+
58
+ [tool.hatch.build.targets.wheel]
59
+ packages = ["src/evalrouter", "src/kimpton_evalrouter", "src/evalrouter_reports"]
@@ -0,0 +1 @@
1
+ """EvalRouter report data (`data`) and its offline HTML/SVG renderer (`html`)."""