Skip to content

Command reference

Every command of roguebench and every option it takes. This page is generated from the command line itself (scripts/build_docs.py), so it always matches the installed version; roguebench <command> --help prints the same. The Python API, the Inspect task, the GitHub Action, the MCP server and the Gym environment have their own pages.

Command What it does
roguebench list suites, scenarios, incidents, news, defenses, attacks, OWASP frameworks or versions
roguebench show one scenario or incident
roguebench plan sessions and tokens a run would take
roguebench run run a model or agent, then score it
roguebench init write a commented starter roguebench.toml
roguebench mcp MCP server (stdio) so a coding assistant can list, explain, run and score the benchmark; needs rogue-ai-bench[mcp]
roguebench score score the sessions in a run directory
roguebench reference the paper's five models
roguebench check offline scripted-policy checks of the scenarios (no model, no key)
roguebench submit write a leaderboard entry from a run
roguebench leaderboard show, build or validate the leaderboard
roguebench traces turn-by-turn logs of the sessions in a run
roguebench report a run as one self-contained HTML file (or JUnit XML for CI test viewers)
roguebench diagnose why a model failed: step-by-step traces with its reasoning, causes, defenses that stop it, training data
roguebench gate pass or fail a scored run against thresholds (exit 0 pass, 1 threshold crossed, 2 error)
roguebench export the sessions of a run as OpenTelemetry traces (OTLP/JSON), to a file or an OTLP/HTTP endpoint
roguebench monitor monitor track: a monitor reads a session record and scores how suspicious it is; AUROC against the state-checked harm
roguebench export-harbor write the shell-based scenarios as Harbor tasks (run them with harbor run -p DIR --agent claude-code)
roguebench import-harbor turn a Harbor job directory into session files that score reads
roguebench doctor environment check

Global options: --version prints the version; -h / --help works on every command.

roguebench list

Suites, scenarios, incidents, news, defenses, attacks, OWASP frameworks or versions.

roguebench list [WHAT] [options]
Argument Value Default What it does
WHAT suites | scenarios | incidents | news | defenses | attacks | frameworks | versions suites what to list
--limit LIMIT 30 news: how many
--incidents-after YYYY-MM-DD - scenarios: only incidents first reported after this date
--suite SUITE - scenarios: only this suite
--subset lite - scenarios: only this fixed subset (lite)
--framework (repeatable) ID - scenarios, frameworks: only these OWASP ids (ASI01-ASI10, LLM01-LLM10); repeatable
--track frozen | live | all all scenarios: frozen (the paper's release), live (added since) or all

roguebench show

One scenario or incident.

roguebench show KEY
Argument Value Default What it does
KEY - a scenario (SUITE/ID) or an incident id

roguebench plan

Sessions and tokens a run would take.

roguebench plan [options]
Argument Value Default What it does
-c, --config FILE - run settings from a TOML or JSON file (default: ./roguebench.toml if it exists); flags override it
--preset quick | standard | full - quick: the lite subset without Docker, 1 repetition (61 sessions): a first look for a few cents; standard: the core track on all suites, 3 repetitions (the paper's setting); full: core and full tracks plus the live scenarios, 3 repetitions
--model MODEL - gpt-5.6-luna, claude-sonnet-4.6, gemini-3.5-flash, deepseek-v4-flash, compat/, mock ...
--agent AGENT - your own agent: FILE.py:FUNCTION or MODULE:FUNCTION, called as fn(prompt, system=..., temperature=...)
--name NAME - display name and file tag
--suite (repeatable) SUITE - repeatable; default all ten
--scenario (repeatable) SCENARIO - SUITE/ID, repeatable
--track core | full core core (default): incident condition + controls; full: also defenses and adaptive variants
--live none | only | also none scenarios added after the paper (default none)
--reps REPS 3 repetitions (default 3)
--out OUT runs output folder (default runs)
--parallel PARALLEL 4 suites at once (default 4)
--no-docker off skip the two suites that need Docker (destructive_actions, containment_breach)
--defense DEFENSE - benchmark-wide defenses, comma-separated: reminder, sandwich, spotlight, detector, pi_detector, tool_filter (or a plug-in's)
--attack ATTACK - incident (default) or an attack name (roguebench list attacks)
--plugin (repeatable) PLUGIN - a Python file or module that registers defenses or attacks
--detector-model DETECTOR_MODEL - model the detector defense asks (default: the agent's model)
--incidents-after YYYY-MM-DD - only scenarios whose incidents were first reported after this date (e.g. your model's training cutoff)
--subset lite - a fixed subset of the frozen replications: lite = a few dozen that tell models apart (see docs: Lite subset)
--framework (repeatable) ID - only scenarios tagged with this OWASP id, e.g. ASI10 (Rogue Agents) or LLM06 (Excessive Agency); repeatable, a scenario with any of the ids stays (roguebench list frameworks)
--benchmark-version VERSION - pin the run to one benchmark version (roguebench list versions): 1.0 = the frozen replications; a live-YYYY-MM-DD version runs the live scenarios of that batch. The run and its leaderboard entry record it
--tool-mode text | native text text (default): the suites' action protocol; native: the provider's function calling (OpenAI-compatible, Anthropic)

roguebench run

Run a model or agent, then score it.

roguebench run [options]
Argument Value Default What it does
-c, --config FILE - run settings from a TOML or JSON file (default: ./roguebench.toml if it exists); flags override it
--preset quick | standard | full - quick: the lite subset without Docker, 1 repetition (61 sessions): a first look for a few cents; standard: the core track on all suites, 3 repetitions (the paper's setting); full: core and full tracks plus the live scenarios, 3 repetitions
--model MODEL - gpt-5.6-luna, claude-sonnet-4.6, gemini-3.5-flash, deepseek-v4-flash, compat/, mock ...
--agent AGENT - your own agent: FILE.py:FUNCTION or MODULE:FUNCTION, called as fn(prompt, system=..., temperature=...)
--name NAME - display name and file tag
--suite (repeatable) SUITE - repeatable; default all ten
--scenario (repeatable) SCENARIO - SUITE/ID, repeatable
--track core | full core core (default): incident condition + controls; full: also defenses and adaptive variants
--live none | only | also none scenarios added after the paper (default none)
--reps REPS 3 repetitions (default 3)
--out OUT runs output folder (default runs)
--parallel PARALLEL 4 suites at once (default 4)
--no-docker off skip the two suites that need Docker (destructive_actions, containment_breach)
--defense DEFENSE - benchmark-wide defenses, comma-separated: reminder, sandwich, spotlight, detector, pi_detector, tool_filter (or a plug-in's)
--attack ATTACK - incident (default) or an attack name (roguebench list attacks)
--plugin (repeatable) PLUGIN - a Python file or module that registers defenses or attacks
--detector-model DETECTOR_MODEL - model the detector defense asks (default: the agent's model)
--incidents-after YYYY-MM-DD - only scenarios whose incidents were first reported after this date (e.g. your model's training cutoff)
--subset lite - a fixed subset of the frozen replications: lite = a few dozen that tell models apart (see docs: Lite subset)
--framework (repeatable) ID - only scenarios tagged with this OWASP id, e.g. ASI10 (Rogue Agents) or LLM06 (Excessive Agency); repeatable, a scenario with any of the ids stays (roguebench list frameworks)
--benchmark-version VERSION - pin the run to one benchmark version (roguebench list versions): 1.0 = the frozen replications; a live-YYYY-MM-DD version runs the live scenarios of that batch. The run and its leaderboard entry record it
--tool-mode text | native text text (default): the suites' action protocol; native: the provider's function calling (OpenAI-compatible, Anthropic)
--dry-run off print the run's settings and plan, and run nothing

The options of run and plan can also come from a preset (--preset) or a config file (-c FILE, or roguebench.toml in the current folder); a flag on the command line wins. The file uses these keys:

Key Default
model -
agent -
name -
suites -
scenarios -
track core
live none
reps 3
out runs
parallel 4
docker True
defense -
attack -
plugins -
detector_model -
incidents_after -
tool_mode text
subset -
frameworks -
benchmark_version -
Preset What it sets
quick the lite subset without Docker, 1 repetition (61 sessions): a first look for a few cents
standard the core track on all suites, 3 repetitions (the paper's setting)
full core and full tracks plus the live scenarios, 3 repetitions

roguebench init

Write a commented starter roguebench.toml.

roguebench init [PATH] [options]
Argument Value Default What it does
PATH roguebench.toml the file to write
--force off overwrite an existing file

roguebench mcp

MCP server (stdio) so a coding assistant can list, explain, run and score the benchmark; needs rogue-ai-bench[mcp].

roguebench mcp

roguebench score

Score the sessions in a run directory.

roguebench score RUN_DIR [options]
Argument Value Default What it does
RUN_DIR - the --out folder of roguebench run
--tag TAG - only this configuration of the run
--json JSON - also write the scores as JSON to this file

roguebench reference

The paper's five models.

roguebench reference

roguebench check

Offline scripted-policy checks of the scenarios (no model, no key).

roguebench check [options]
Argument Value Default What it does
--suite (repeatable) SUITE - only this suite
--no-docker off skip the two suites that need Docker (destructive_actions, containment_breach)
--no-live off skip the live scenarios

roguebench submit

Write a leaderboard entry from a run.

roguebench submit RUN_DIR [options]
Argument Value Default What it does
RUN_DIR - the --out folder of roguebench run
--tag TAG - the configuration to submit (its score_.json)
--submitter SUBMITTER - your GitHub handle, e.g. @you
--provider PROVIDER other who serves the model (openai, anthropic, yourco, ...)
--agent-desc AGENT_DESC text-protocol agent one line on the agent or harness
--display-name DISPLAY_NAME - the name on the leaderboard (default: the run's name)
--sessions SESSIONS - link to the session logs (required for a custom entry: your own agent, a defense, a plug-in or an attack)
--price-in PRICE_IN - USD per 1M prompt tokens you paid or the provider lists; with --price-out it adds the cost column
--price-out PRICE_OUT - USD per 1M completion tokens
--notes NOTES - free text shown with the entry
--to TO leaderboard/submissions the folder to write the entry into

roguebench leaderboard

Show, build or validate the leaderboard.

roguebench leaderboard [ACTION] [options]
Argument Value Default What it does
ACTION show | build | validate show show prints the table; build writes the website's JSON; validate recomputes every entry from its counts
--dir DIR leaderboard/submissions the folder of entries
--out OUT docs/assets/leaderboard.json build: where to write the JSON

roguebench traces

Turn-by-turn logs of the sessions in a run.

roguebench traces RUN_DIR [options]
Argument Value Default What it does
RUN_DIR - the --out folder of roguebench run
--scenario SCENARIO - SUITE/ID
--variant VARIANT - part of the variant name, e.g. a control's name
--tag TAG - the run's configuration tag (default: all)
--list off list the session files instead of printing turns
--limit LIMIT 20 at most this many sessions
--width WIDTH 600 cut each field of a turn at this many characters

roguebench report

A run as one self-contained HTML file (or JUnit XML for CI test viewers).

roguebench report RUN_DIR [options]
Argument Value Default What it does
RUN_DIR - the --out folder of roguebench run
--tag TAG - the run's configuration tag (needed when the directory holds several)
--format html | junit - default: html, or junit when -o ends in .xml
-o, --out OUT - default: report.html or results.xml; - for standard output

roguebench diagnose

Why a model failed: step-by-step traces with its reasoning, causes, defenses that stop it, training data.

roguebench diagnose RUN_DIR [options]
Argument Value Default What it does
RUN_DIR - the --out folder of an earlier roguebench run
--tag TAG - the run's configuration tag (its score_.json / run_.json)
--model MODEL - model to trace (default: the run's model)
--reps REPS 3 sessions per condition in the trace run (default 3)
--max-scenarios MAX_SCENARIOS 30 at most this many failed replications to trace
--thinking THINKING 0 Claude: extended thinking budget in tokens, recorded in the trace
--causes off rerun each failure under single changes (stakes, I1-I5) to name a cause
--defenses off rerun each failure under the benchmark-wide defenses
--defense (repeatable) DEFENSE - only these defenses (repeatable)
--explain MODEL - a model reads each failed session and names the root cause and decisive step
--out OUT - default: /diagnose/
--no-docker off skip the two suites that need Docker (destructive_actions, containment_breach)
--plan off print what would run, run nothing

roguebench gate

Pass or fail a scored run against thresholds (exit 0 pass, 1 threshold crossed, 2 error).

roguebench gate RUN_DIR [options]
Argument Value Default What it does
RUN_DIR - the --out folder of roguebench run (or a score_.json file)
--tag TAG - the configuration to judge when the run holds several
--max-harm RATE - pooled harm under the incident condition, e.g. 0.1 or 10%
--max-reproduced N - scenarios whose verdict is supported or suggestive
--max-control-harm RATE - pooled harm under the matched controls
--baseline FILE - an earlier score JSON (or run folder) to compare with
--baseline-tag BASELINE_TAG - the configuration to take from the baseline
--max-increase RATE 0.05 with --baseline: largest rise in harm that still passes (default 0.05)
--json OUT - write the result as JSON

roguebench export

The sessions of a run as OpenTelemetry traces (OTLP/JSON), to a file or an OTLP/HTTP endpoint.

roguebench export RUN_DIR [options]
Argument Value Default What it does
RUN_DIR - the --out folder of roguebench run
--format otlp-json | otlp otlp-json otlp-json: write a file; otlp: POST to --endpoint (or OTEL_EXPORTER_OTLP_ENDPOINT)
-o, --output OUTPUT traces.json otlp-json: the file to write
--endpoint ENDPOINT - otlp: collector base URL; /v1/traces is added unless the URL already ends with it
--header (repeatable) K=V - otlp: request header, repeatable (or OTEL_EXPORTER_OTLP_HEADERS); values are never printed
--tag TAG - only this configuration of the run
--suite SUITE - only this suite
--max-chars MAX_CHARS 4000 longest text kept per attribute; 0 keeps everything
--no-turns off session spans only, without the turn and tool-call spans
--project PROJECT roguebench project name Phoenix and Opik file the traces under
--batch BATCH 20 otlp: sessions per request

roguebench monitor

Monitor track: a monitor reads a session record and scores how suspicious it is; AUROC against the state-checked harm.

roguebench monitor [options]
Argument Value Default What it does
--monitor MONITOR - keywords (no model, weak baseline), or any model name the runner accepts (compat/, mock ...)
--monitor-fn MONITOR_FN - your own monitor: FILE.py:FUNCTION, called as fn(transcript: str) -> float 0-100 (or (float, reason))
--name NAME - name of the monitor in the output files
--sessions SESSIONS reference reference (the bundled sessions, default) or a run folder of roguebench run
--suite (repeatable) SUITE - repeatable
--limit LIMIT - a seeded sample of this many sessions
--plan off print the number of transcripts and a token estimate, call nothing
--dump N - print the first N transcripts a monitor would see, call nothing
--out OUT monitors the folder for the result JSON
--cache CACHE - folder of the per-monitor score cache (default: /cache)
--parallel PARALLEL 4 monitor calls at once
--bootstrap BOOTSTRAP 500 bootstrap resamples for the 95% intervals (0 turns them off)
--seed SEED 0 seed of the bootstrap intervals
--validate FILE_OR_DIR - check monitor result files (CI runs this on leaderboard/monitors)

roguebench export-harbor

Write the shell-based scenarios as Harbor tasks (run them with harbor run -p DIR --agent claude-code).

roguebench export-harbor OUT_DIR [options]
Argument Value Default What it does
OUT_DIR - the folder to write the tasks into
--suite destructive_actions | containment_breach - default: both
--condition incident | control | all all which conditions to export
--track frozen | live | all frozen destructive_actions: the paper's scenarios or those added since
--rule-placement instruction | memo | none instruction where the user's standing rule goes: after the task in instruction.md (every agent reads it; default), in the product's user-level memo file (~/.claude/CLAUDE.md, ~/.codex/AGENTS.md: only those two read it), or nowhere
--solution careful | reckless careful what solution/solve.sh does: the scripted careful policy (default) or the reckless one, which checks that the oracle sees harm
--allow-host (repeatable) ALLOW_HOST - restrict the agent's network to these hosts (Harbor allowlist mode); repeatable. Default: Harbor's default
--org ORG rogue-ai-bench namespace of the task names
--git-url GIT_URL - registry.json: the repository that will hold the tasks
--git-commit GIT_COMMIT - registry.json: its commit
--registry-prefix REGISTRY_PREFIX `` registry.json: folder of the tasks inside that repository

roguebench import-harbor

Turn a Harbor job directory into session files that score reads.

roguebench import-harbor JOB_DIR [options]
Argument Value Default What it does
JOB_DIR - a Harbor job directory (the --jobs-dir of harbor run)
--out OUT runs the run folder to write the session files into
--tag TAG - file tag of the agent (default: harbor--)

roguebench doctor

Environment check.

roguebench doctor

Environment variables

Variable Used for
OPENAI_API_KEY OpenAI models (gpt-*)
ANTHROPIC_API_KEY Anthropic models (claude-*)
GEMINI_API_KEY Google models (gemini-*)
DEEPINFRA_API_KEY open-weight models as deepinfra/<model id> (and deepseek-v4-flash)
OPENROUTER_API_KEY openrouter/<vendor>/<model>
LLM_BASE_URL, LLM_API_KEY any OpenAI-compatible server for compat/<id> (vLLM, Ollama, LiteLLM)
LLM_BACKEND=mock every model call answers from the offline mock, with no network and no key
OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_HEADERS roguebench export --format otlp without --endpoint / --header
GITHUB_STEP_SUMMARY set by GitHub Actions; roguebench gate appends its summary there