CLI reference¶
Generated from the argument parser by scripts/generate_reference_docs.py; do not edit by hand.
Commands and flags marked (v0.4.0) were added in v0.4.0, and help text starting with v0.5.0: marks v0.5.0 additions. Every v0.3.1 command and flag is kept.
openbench validate-dataset¶
Validate a JSONL dataset file or directory of JSONL files.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
dataset_path |
yes | Path to a JSONL dataset file or directory. | ||
--quality-checks |
(v0.4.0) also run the read-only dataset quality audit (exit 1 only for error findings). | |||
--output |
(v0.4.0) with --quality-checks, write the audit report to this file. | |||
--format |
json, markdown, csv |
(v0.4.0) with --quality-checks, override the format inferred from --output (.md or .markdown for Markdown, .csv for CSV, otherwise JSON). | ||
--near-duplicate-threshold |
0.85 |
(v0.4.0) DQ003 Jaccard threshold. | ||
--metrics |
(v0.4.0) metric names to check (DQ008). | |||
--near-duplicate-method |
lexical |
lexical, semantic |
v0.5.0: 'semantic' adds an embedding pass that finds paraphrases (needs the 'semantic' extra). | |
--embedding-model |
sentence-transformers/all-MiniLM-L6-v2 |
v0.5.0: local sentence-transformers model for --near-duplicate-method semantic. | ||
--semantic-threshold |
0.9 |
v0.5.0: cosine threshold for semantic DQ003. |
openbench evaluate¶
Evaluate one or more pre-generated model response files against a dataset or YAML profile.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--dataset |
Path to a JSONL dataset file or directory (required unless --config specifies dataset.path). | |||
--config |
Path to a YAML evaluation configuration profile. | |||
--responses |
yes | Path to a JSON file containing model responses. | ||
--metrics |
Space-separated list of metrics to compute. | |||
--category |
Optional category filter(s) to apply to the dataset. | |||
--difficulty |
Optional difficulty filter(s) (easy, medium, hard). | |||
--ids-file |
Optional path to a file listing dataset record IDs to evaluate (like-for-like subset evaluation). | |||
--history-file |
Optional path to local JSONL history file to record evaluation summary. | |||
--output |
yes | Output path for evaluation reports. With one model, .json, .md, .markdown, or .csv writes a report and its companion. Other paths are directories. A note is printed when a path with an extension is used as a directory. | ||
--confidence-intervals |
(v0.4.0) add a 'statistics' block with percentile bootstrap CIs over items (output is unchanged without this flag). | |||
--confidence-level |
0.95 |
(v0.4.0) CI level for --confidence-intervals (default 0.95). | ||
--resamples |
10000 |
(v0.4.0) bootstrap resamples for --confidence-intervals (default 10000). | ||
--seed |
0 |
(v0.4.0) statistical analysis seed for --confidence-intervals (default 0). |
openbench compare¶
Compare two or more JSON evaluation result files.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--results |
yes | Paths to evaluation result JSON files (provide at least two files). | ||
--output |
yes | Output path for comparison reports. .json and .csv write one report. .md and .markdown write a Markdown report and a JSON companion. Other paths are directories. A note is printed when a path with an extension is used as a directory. |
openbench list-datasets¶
List all built-in or directory JSONL datasets in the catalog.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--path |
||||
--category |
||||
--difficulty |
||||
--format |
text |
text, json |
openbench inspect-dataset¶
Inspect metadata, schema breakdown, and sample records of a dataset.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
dataset_path |
yes | |||
--category |
||||
--difficulty |
||||
--samples |
2 |
|||
--format |
text |
text, json |
openbench dataset-stats¶
Display detailed statistics for a dataset file or directory.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
dataset_path |
yes | |||
--category |
||||
--difficulty |
||||
--format |
text |
text, json, markdown |
openbench history¶
List or inspect local historical evaluation runs.
openbench history list¶
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--store |
||||
--model |
||||
--dataset |
||||
--format |
text |
text, json, csv, markdown |
openbench history show¶
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
evaluation_id |
yes | |||
--store |
||||
--format |
text |
text, json |
openbench history compare¶
Show score changes between two recorded evaluations.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
baseline_id |
yes | |||
latest_id |
yes | |||
--store |
||||
--format |
text |
text, json, markdown |
openbench export¶
Export an existing JSON evaluation or comparison result into CSV or Markdown.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--input |
yes | |||
--format |
yes | csv, markdown, json |
||
--mode |
individual |
individual, aggregate |
||
--output |
yes |
openbench run¶
Execute a model provider against a dataset, evaluate metrics, and create a verifiable experiment run.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--config |
Path to a YAML experiment configuration profile. | |||
--dataset |
Path to a JSONL dataset file or directory. | |||
--provider |
Model provider identifier (e.g. ollama, huggingface, mock). | |||
--model |
Model identifier (e.g. llama3.2, gpt2, mock-deterministic-v1). | |||
--model-version |
Model version or revision (default: latest or profile setting). | |||
--endpoint |
Optional provider HTTP endpoint (e.g. http://localhost:11434 for Ollama). | |||
--metrics |
Metrics to evaluate (default: exact_match accuracy keyword_coverage, or profile setting). | |||
--concurrency |
Number of concurrent model requests (default: 1). | |||
--max-requests-per-minute |
v0.5.0: limit provider requests per minute across all workers (for hosted APIs). | |||
--api-key-env |
v0.5.0: environment variable holding the API key for openai_compatible (default: OPENAI_API_KEY). The key itself is never stored. | |||
--timeout |
Per-request timeout in seconds (default: 30.0). | |||
--max-attempts |
Maximum retry attempts per item (default: 3). | |||
--no-cache |
Disable deterministic response caching for this run. | |||
--cache-dir |
Directory for response cache (default: .openbench_cache). | |||
--experiments-dir |
Directory for storing experiment runs (default: experiments). | |||
--output |
Optional output directory to also write top-level .json/.md/.csv reports. | |||
--repetitions |
(v0.4.0) number of independent repetitions (>= 2 creates a repeat group; overrides options.repeat_count). | |||
--seed |
(v0.4.0) generation base seed (repetition i uses seed + i); overrides generation.seed. | |||
--experiment-id |
(v0.4.0) optional experiment ID recorded in run lineage. | |||
--parent-experiment-id |
(v0.4.0) optional parent experiment ID recorded in run lineage. |
openbench runs¶
Manage, inspect, verify, resume, and compare experiment runs.
openbench runs list¶
List stored experiment runs.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--experiments-dir |
||||
--status |
||||
--provider |
||||
--model |
||||
--dataset |
||||
--format |
text |
text, json, csv, markdown |
||
--group |
(v0.4.0) list only the runs of this repeat group. | |||
--wide |
v0.5.0: print the full one-line-per-run format (all scores, origin, dataset). |
openbench runs show¶
Inspect a specific experiment run.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
run_id |
yes | |||
--experiments-dir |
||||
--format |
text |
text, json |
openbench runs verify¶
Verify cryptographic SHA-256 artifact checksums and provenance of a run.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
run_id |
yes | |||
--experiments-dir |
||||
--format |
text |
text, json |
||
--quality-checks |
(v0.4.0) also run the experiment quality audit (EQ checks). | |||
--audit-output |
(v0.4.0) with --quality-checks, write the audit report here (.md, .csv, or .json). |
openbench runs resume¶
Resume an interrupted or partial provider-executed experiment run.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
run_id |
yes | |||
--experiments-dir |
||||
--cache-dir |
openbench runs compare¶
Compare two or more experiment runs by their RUN_IDs.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
run_ids |
yes | Two or more experiment run IDs. | ||
--experiments-dir |
||||
--output |
||||
--format |
text |
text, json, markdown, csv |
openbench rank¶
v0.5.0: rank several stored runs, repeat groups or evaluation files with uncertainty.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--runs |
Run IDs (run_...) or repeat group IDs (grp_...). | |||
--results |
Evaluation result JSON files. | |||
--metric |
yes | |||
--experiments-dir |
||||
--ids-file |
||||
--alpha |
0.05 |
|||
--confidence-level |
0.95 |
|||
--resamples |
10000 |
|||
--permutations |
9999 |
|||
--seed |
0 |
|||
--exploratory |
Rank inputs that fail hard compatibility checks (descriptive only). | |||
--output |
||||
--format |
json, markdown, csv, html |
Report format. Default: chosen from the --output extension (.html/.htm, .json, .csv), otherwise markdown. |
openbench plan¶
v0.5.0: how many questions are needed to detect a difference (or what n can detect).
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--difference |
Smallest difference worth detecting (metric units). | |||
--items |
Reverse mode: report the smallest detectable difference at this n. | |||
--baseline-accuracy |
||||
--discordance |
Share of items where the two models disagree. | |||
--continuous |
Plan for a continuous metric (sign-flip test). | |||
--sd-difference |
SD of per-item differences (continuous). | |||
--pilot-runs |
Estimate inputs from two stored runs. | |||
--metric |
exact_match |
Metric for --pilot-runs (default exact_match). | ||
--experiments-dir |
||||
--alpha |
0.05 |
|||
--power |
0.8 |
|||
--output |
||||
--format |
markdown |
json, markdown, csv |
openbench judge¶
v0.5.0: pairwise LLM-as-judge with order swapping and bias checks.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--runs |
||||
--results |
||||
--judge-provider |
yes | |||
--judge-model |
yes | |||
--judge-endpoint |
||||
--api-key-env |
||||
--criteria |
Text file with judging criteria (replaces the default). | |||
--show-reference |
Show the reference answer to the judge. | |||
--experiments-dir |
||||
--cache-dir |
||||
--no-cache |
||||
--concurrency |
1 |
|||
--max-requests-per-minute |
||||
--timeout |
60.0 |
|||
--key |
Preference task key for agreement with people. | |||
--annotations |
Validated human annotation files for that key. | |||
--seed |
0 |
|||
--resamples |
10000 |
|||
--output |
||||
--format |
json, markdown, csv |
Judge report format. Defaults to Markdown unless --output ends in .json or .csv. |
openbench import-dataset¶
v0.5.0: convert a local benchmark file (QA or multiple choice) into an OpenBench JSONL dataset.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
input |
yes | |||
--format |
yes | qa-jsonl, qa-csv, mcq-jsonl, mcq-csv |
||
--category |
yes | |||
--output |
yes | |||
--id-prefix |
||||
--source |
Where the benchmark comes from (recorded in metadata). | |||
--license |
The benchmark's licence (recorded in metadata). | |||
--difficulty |
easy, medium, hard |
|||
--question-field |
question |
|||
--answer-field |
answer |
|||
--id-field |
id |
|||
--overwrite |
openbench audit-contamination¶
v0.5.0: read-only check of word n-gram overlap between a dataset and a reference corpus.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
dataset_path |
yes | |||
--corpus |
yes | A text, Markdown, JSON, JSONL or CSV file, or a directory of them. | ||
--ngram |
13 |
|||
--threshold |
0.5 |
|||
--min-words |
8 |
|||
--output |
||||
--format |
json, markdown, csv |
Audit report format. Defaults to Markdown unless --output ends in .json or .csv. |
openbench dataset-card¶
v0.5.0: generate a dataset card (facts computed from the data, author sections left as TODO).
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
dataset_path |
yes | |||
--format |
markdown, json, html |
Card format. Default: chosen from the --output extension (.html/.htm, .json), otherwise markdown. | ||
--output |
openbench serve¶
v0.5.0: read-only local web dashboard for runs, repeat groups and saved reports.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--experiments-dir |
experiments |
|||
--reports-dir |
Directory of saved .json/.html analysis reports. | |||
--host |
127.0.0.1 |
|||
--port |
8765 |
|||
--allow-remote |
Allow listening on a non-loopback address (exposes your results). | |||
--open |
Open the dashboard in your default browser. |
openbench metrics¶
v0.5.0: list built-in and plugin metrics.
openbench metrics list¶
List registered metrics and where they come from.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--format |
text |
text, json |
openbench plugins¶
v0.5.0: list installed OpenBench plugins.
openbench plugins list¶
Discover and list installed plugins (this imports them).
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--format |
text |
text, json |
openbench providers¶
List registered model providers or check provider connectivity.
openbench providers list¶
List all registered model provider adapters.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--format |
text |
text, json |
openbench providers check¶
Check connectivity/availability of a provider.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
provider_name |
yes | Provider name (e.g. ollama, huggingface, mock). | ||
--model |
||||
--endpoint |
||||
--format |
text |
text, json |
openbench cache¶
Manage or clear the deterministic response cache.
openbench cache clear¶
Clear all cached responses.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--cache-dir |
openbench cache prune¶
Remove cached responses matching an age, provider, and/or model filter.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--older-than |
Remove entries cached more than DAYS days ago (a positive integer). | |||
--provider |
Remove entries belonging to provider NAME. | |||
--model |
Remove entries belonging to model NAME. | |||
--dry-run |
Only report what would be removed. | |||
--cache-dir |
openbench cache stats¶
Show what is in the cache: entries per provider and model, and how old they are.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--cache-dir |
||||
--format |
json |
json, text |
Output format (default: json). |
openbench analyze (v0.4.0)¶
v0.4.0: statistically compare stored runs, repeat groups or evaluation files (no provider calls), or analyse one repeat group's variability.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--runs |
Run IDs (run_...) or repeat group IDs (grp_...). | |||
--results |
Evaluation result JSON files. | |||
--experiments-dir |
||||
--metrics |
||||
--baseline |
Arm ID or model name of the baseline. | |||
--ids-file |
Restrict the analysis to these record IDs. | |||
--confidence-level |
0.95 |
|||
--resamples |
10000 |
|||
--permutations |
9999 |
|||
--seed |
0 |
Statistical analysis seed (default 0). | ||
--missing-policy |
complete_case |
complete_case, missing_as_failure |
||
--correction |
holm |
holm, bh, none |
||
--min-practical-difference |
||||
--equivalence-margin |
Pre-specified TOST margin (metric units). | |||
--alpha |
0.05 |
|||
--continuous-equivalence |
descriptive |
descriptive, empirical_bernstein |
v0.5.0: equivalence method for continuous metrics. 'empirical_bernstein' can establish equivalence (finite-sample guarantee, needs many items); 'descriptive' reports v0.4.0 values only. | |
--stratified-bootstrap |
||||
--stratum-tests |
||||
--exploratory |
Descriptive-only comparison of incompatible inputs. | |||
--exploratory-reason |
||||
--output |
||||
--format |
json, markdown, csv, html |
Report format. If omitted, infer it from --output (.html, .htm, .md, .markdown, .csv, or .json). Other extensions and stdout default to JSON. |
openbench preferences¶
v0.4.0: local blinded pairwise human preference evaluation.
openbench preferences create (v0.4.0)¶
Create blind A/B tasks (tasks.jsonl) and a separate key file.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--runs |
||||
--results |
||||
--experiments-dir |
||||
--seed |
0 |
Preference-order seed (default 0). | ||
--output |
yes | Output directory for tasks.jsonl. | ||
--key-output |
Key file path (default OUTPUT/tasks.key.json). | |||
--rubric |
JSON rubric file. | |||
--show-reference |
Include reference answers in tasks. | |||
--csv |
Also write tasks.csv. | |||
--overwrite |
Allow overwriting existing task files. |
openbench preferences validate (v0.4.0)¶
Validate completed annotation files against a task key.
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--key |
yes | |||
--annotations |
yes | |||
--annotators |
Optional roster file (one annotator ID per line). | |||
--format |
text |
text, json |
openbench preferences analyze (v0.4.0)¶
Analyse validated annotations (win rates, agreement, optional Elo).
| Argument | Required | Default | Choices | Help |
|---|---|---|---|---|
--key |
yes | |||
--annotations |
yes | |||
--annotators |
||||
--seed |
0 |
|||
--confidence-level |
0.95 |
|||
--resamples |
10000 |
|||
--elo |
Also report Elo ratings (relative; see limitations). | |||
--compare-metric |
v0.5.0: report how often this metric picks the same winner as the human majority. | |||
--experiments-dir |
v0.5.0: where the key's runs are stored. | |||
--metric-results |
v0.5.0: evaluation files for models A and B when the key was built from --results. | |||
--output |
||||
--format |
json, markdown, csv |
Report format. If omitted, infer it from --output (.md, .markdown, .csv, or .json). Stdout and filenames without a recognized extension default to JSON. |