RedCrown.aiRedCrown.ai Docs Open the app

CLI reference

Every redcrown subcommand and flag.

Environment variables

Keys a local redcrown eval reads from your shell. Each key goes only to its own provider, as the authentication for that provider's calls. RedCrown receives no key from a local eval.

VariableProvider
OPENAI_API_KEYOpenAI
ANTHROPIC_API_KEYAnthropic
OPENROUTER_API_KEYOpenRouter
GROQ_API_KEYGroq
HUGGINGFACE_API_KEYHugging Face
DEEPGRAM_API_KEYDeepgram
GEMINI_API_KEYGoogle AI Studio
NVIDIA_API_KEYNVIDIA NIM
MISTRAL_API_KEYMistral
COHERE_API_KEYCohere
REDCROWN_CUSTOM_HTTPA custom OpenAI-compatible endpoint, as JSON (base_url, auth_header_name, auth_value, body_style, model)

redcrown harness report

Status counts and per-check pass rates for one run

FlagDescriptionDefault
run_id
--runsthe journal directory (one subdir per run)
--rulingsrulings file (JSON, or YAML with PyYAML)
--policycheck the run against this written policy file (JSON)
--baselinethe baseline run for a no_regression rule. Needs --policy
--formatprint the policy result as text or JSON. Needs --policytext

redcrown harness compare

Per-check diff of two runs; exit 1 on any regression

FlagDescriptionDefault
base_run
head_run
--runs
--rulings
--formattext
--allow-corpus-driftcompare the shared case ids even when the corpus versions differFalse

redcrown harness export

Write an upload payload for `redcrown push`

FlagDescriptionDefault
run_id
--runs
--out
--namethe experiment name shown on the record
--labelthe system under test, e.g. one-button@<commit>
--rulings
--quality-bar0.0
--task-summary

redcrown push

Push a local eval's results JSON, or a `redcrown harness export` payload, to RedCrown as a cloud run

FlagDescriptionDefault
pathresults JSON from `redcrown eval --report-json` or `redcrown harness export --out`
--api-urlhttps://api.redcrown.ai
--app-urlhttps://app.redcrown.ai
--orgworkspace (org) id; default personal org
--experimentappend the run to this standing experiment id
--no-receiptsstrip per-item receipts/references before upload (confidential outputs never leave this machine)False
--proof-linkmint and print a shareable proof link for the pushed runFalse
--publish-anywaymint the proof link even when the report's own caveats say it is not fit to publish (the override is recorded)False

redcrown score

Score outputs produced elsewhere with a deterministic metric. Input: a scoring request JSON (experiment_id, items with references, candidates with a declared configuration and their outputs), or --items-csv plus --outputs-jsonl. Output: the ranked table on stdout; --evidence-json writes the private raw evidence that `redcrown check` reads (it can contain your data, keep it private); --report-json writes the upload format for `redcrown push`. Side effects: writes those local files only. Data destination: local file only, no network call. Authentication: none. Failure: exit 1 on an unreadable or invalid request, or f1 against references that are not JSON objects; nothing is written then. The CSV plus JSONL form carries no declared configuration, so its evidence cannot be checked against a baseline.

FlagDescriptionDefault
pathScoreOutputsRequest JSON; alternatively use CSV + JSONL flags
--items-csvCSV with item_id (or id), input, and reference columns
--outputs-jsonlJSONL with candidate_id, item_id, and output/error fields
--namecomparison name for CSV + JSONL input
--metricdeterministic metric for CSV + JSONL inputsimilarity
--quality-barminimum acceptable quality for CSV + JSONL input0.0
--objectiveranking objective for CSV + JSONL inputquality
--report-jsonwrite upload-schema results for `redcrown push`
--evidence-jsonwrite private raw report evidence for offline `redcrown check`

redcrown check

Apply a policy to a candidate evidence file, and optionally a baseline evidence file for the same feature, offline. Input: raw evidence from --evidence-json (not the --report-json upload format), --candidate-id, --baseline with --baseline-candidate-id, and --policy (JSON only). Output: pass, fail or indeterminate per rule and overall, with counts and excluded item ids, as text, markdown or json on stdout. Side effects: none; no file is written. Data destination: nothing leaves the machine. Authentication: none. Exit 0 pass; exit 2 fail or indeterminate (an indeterminate required rule is never a pass); exit 1 command, file or policy error (unreadable file, candidate id not in the file, YAML policy, a regression rule with no baseline). Both files must share experiment_id, items, references and scorer, or the comparison is refused with workload_mismatch, content_hash_mismatch, evaluator_hash_mismatch or platform_changed. Cost and latency rules parse but are always indeterminate.

FlagDescriptionDefault
pathraw candidate report JSON
--candidate-id
--baselineraw baseline report JSON
--baseline-candidate-id
--policypolicy JSON (JSON is the only supported format)
--formattext
--changedAlso list the cases whose score moved against the baseline. This prints outputs. Keep it out of shared CI logs.False

redcrown attest

Download a signed attestation for a completed run

FlagDescriptionDefault
run_id
--outoutput file (default <run_id>-attestation.json)
--api-urlhttps://api.redcrown.ai

redcrown build-dataset

Build an experiment JSON from a public corpus (primock57, mmlu-pro)

FlagDescriptionDefault
sourcepublic corpus source (omit when using --from-csv/--from-jsonl)
--outpath to write the experiment JSON
--limitcap the number of (audio, reference) items
--corpus-dirpath to an existing corpus checkout (skips cloning)
--quality-barquality bar a candidate must clear; default = the dataset's published bar (mmlu-pro 0.75), NOT 0.0
--monthly-minutesprojected monthly audio minutes for the $/mo column20280
--no-clonedo not clone; require --corpus-dir to point at a checkoutFalse
--ids-filepath to a newline-separated list of clip ids; builds exactly those items (the pinned benchmark subset). Applied after --limit, so do not combine them
--from-csvbuild from a CSV with input + reference columns (text tasks)
--from-jsonlbuild from a JSONL with input + reference fields (text tasks)
--tasktask kind for --from-csv/--from-jsonl
--input-colinput column/field name (default 'input')input
--reference-colreference column/field name (default 'reference')reference

redcrown eval

Run an experiment JSON locally and print the report

FlagDescriptionDefault
pathpath to an experiment JSON file
--samplerun a bundled offline sample with the demo provider (no keys)
--report-jsonalso write the full results (receipts included) as an upload-schema JSON for redcrown push
--evidence-jsonwrite the private raw report used by `redcrown check` (may contain customer data; do not publish)
--audio-basebase URL for per-item audio (item_audio = base + id + .mp3)
--concurrencynumber of provider calls to run at once (default 1, sequential; raise it for many-candidate token benchmarks)1
--repeatrun each candidate N times and report a run-to-run quality stdev (default: the experiment's repeat_n, or 1). Note: this makes N times the API calls, so N times the eval spend. Tip: set params.seed on a candidate for a provider that supports seeded sampling.
--judgejudge panel member for quality_metric judge; repeat for a panel (e.g. --judge openrouter:openai/gpt-5.5)

redcrown import-results

Upload a locally-run eval's aggregated results JSON into RedCrown

FlagDescriptionDefault
pathpath to a results JSON file (the upload schema)
--api-urlRedCrown API base URLhttps://api.redcrown.ai
--tokenaccess token (or set REDCROWN_TOKEN); your RedCrown/Supabase bearer token

redcrown login

Log in to RedCrown (device flow; opens a code page)

FlagDescriptionDefault
--api-urlRedCrown API base URLhttps://api.redcrown.ai

redcrown logout

Delete the stored RedCrown credentials

redcrown matrix-plan

Preview a bounded experiment matrix offline (unreleased)

FlagDescriptionDefault
pathprivate matrix JSON specification
--outputexplicitly create a new private experiment JSON file; never runs it

redcrown rejudge

Re-score an existing report-json's stored outputs with a new judge panel

FlagDescriptionDefault
pathresults JSON from `redcrown eval --report-json` (with receipts)
--judgepanel member; repeat for a panel
--keep-existingfold the original run's judge into the new panelFalse
--outpath to write the re-judged report JSON
--concurrency8

redcrown verify

Verify a RedCrown attestation file offline

FlagDescriptionDefault
path
--keya JWKS file to verify against (offline); default: fetch the file's key_url

Generated from source. Last verified .