Usage
.archal.json in the current directory.
Arguments
| Argument | Description |
|---|---|
[scenario] | Path to a scenario .md file. Optional if using --task or .archal.json. |
Common options
These are the flags you’ll use most of the time. Runarchal run --advanced to see the full set.
| Flag | Description | Default |
|---|---|---|
-c, --config <path> | Path to .archal.json config file | auto-discovered in cwd |
--task <description> | Run an inline task instead of a scenario file | |
--twin <name> | Twin(s) for --task mode (repeatable or comma-separated) | |
-n, --runs <count> | Number of runs | 1 |
-t, --timeout <seconds> | Timeout per run in seconds | 180 |
--seed <name> | Override twin seed | from scenario config |
--tag <tag> | Only run if scenario has this tag (exits 0 if no match) | |
--proxy | Route agent HTTP traffic through TLS proxy to twins | false |
-q, --quiet | Suppress non-error output | false |
-v, --verbose | Enable debug logging | false |
Advanced options
These are available but hidden from default--help output. Use archal run --advanced to see them.
| Flag | Description | Default |
|---|---|---|
-o, --output <format> | Output format: terminal, json | terminal |
-m, --model <model> | Evaluator model for probabilistic criteria | from config |
--pass-threshold <score> | Minimum passing satisfaction score (0-100) | 0 |
--api-key <key> | API key for the model provider | from env |
--agent-model <model> | Agent model identifier | from env |
--engine-endpoint <url> | Remote agent gateway URL | from ARCHAL_ENGINE_ENDPOINT |
--engine-token <token> | Bearer token for engine auth | from ARCHAL_ENGINE_TOKEN |
--rate-limit <count> | Max total requests before 429 | unlimited |
--preflight-only | Validate config and exit without running | false |
--seed-cache | Reuse cached dynamic seeds | false |
--clear-seed-cache | Clear cached seeds before running | false |
--no-failure-analysis | Skip LLM failure analysis on imperfect scores | false |
--run-project-id <id> | Attach run to a dashboard project | |
--sandbox | Run agent in sandboxed container with TLS proxy | false |
Examples
Exit codes
| Code | Meaning |
|---|---|
0 | Run succeeded and score met --pass-threshold (or scenario skipped by --tag) |
1 | Runtime error or satisfaction below threshold |
2 | Validation error (bad flags, missing scenario, invalid config) |
Environment variables
These configurearchal run itself:
| Variable | Description |
|---|---|
ARCHAL_TOKEN | Auth token (alternative to archal login) |
ARCHAL_ENGINE_API_KEY | API key for the model under test |
ARCHAL_ENGINE_ENDPOINT | Remote agent gateway URL |
ARCHAL_ENGINE_TOKEN | Auth token for remote engine |
ARCHAL_ENGINE_MODEL | Default agent model identifier |
| Variable | Description |
|---|---|
ARCHAL_ENGINE_TASK | The task or scenario prompt |
ARCHAL_<TWIN>_URL | MCP endpoint per twin |
ARCHAL_<TWIN>_BASE_URL | REST base URL per twin |