Skip to main content
The oqoqo CLI provides full parity with the Oqoqo Plugin and Ask Oqo, with deterministic JSON output for terminal workflows, scripts, and CI pipelines. You still view rich charts and enter secrets in the dashboard. See the CLI reference for all 120 commands, global flags, and auto-update rules.

Install the CLI

The same install and sign-in commands appear in the dashboard under Automate → Oqoqo CLI.
Install the Oqoqo CLI page with the install command and the sign-in command.Install the Oqoqo CLI page with the install command and the sign-in command.

Sign in

oqoqo login opens your browser to confirm a code and saves your session locally (use --no-browser on remote machines). Check your session with oqoqo whoami or sign out with oqoqo logout.

Use an API key

In headless environments such as CI jobs or inside an agent container, authenticate with a personal API key instead of browser sign-in:
1

Create a personal API key

Open Profile → API keys in the dashboard and create a key (organization API keys do not work with the CLI).
2

Export OQOQO_API_KEY

Store the key as a secret exposed in OQOQO_API_KEY and verify it:
Every command then runs under that key’s organization; see Use an API key for key behavior rules.

Choose a project

Set a default project for interactive work, or pass --project-id on individual commands:
To create a new project safely with idempotency, run oqoqo projects create --name "Checkout agents" --mutation-attempt-id checkout-agents-1. See oqoqo projects for details.

Run an experiment from the terminal

1

Inspect catalog IDs

Copy each task’s version ID (tskver_), your treatments (trt_), and agent model IDs (agm_).
2

Prepare a launch plan

Clone an existing experiment’s plan or start from the example launch plan:
Give each new launch a unique launchAttemptId (reuse it only to retry the exact same launch).
3

Preflight the plan

preflight spends no runs and returns setupUrl links if any tool or machine still needs secrets in the dashboard.
4

Launch and watch

watch accepts either adm_ or exp_ IDs and exits when the experiment finishes.
5

Analyze results and frictions

To relaunch a finished experiment, use oqoqo experiments rerun; to run it on a schedule, use oqoqo schedules create.

Run an experiment in CI

CI pipelines can preflight, launch, wait for completion, and fail the job when pass rates drop below your own threshold:
1

Install the CLI, set OQOQO_API_KEY, and pick a project

Install oqoqo on the runner and add ~/.local/bin and ~/.oqoqo/bin to PATH, expose your personal key in OQOQO_API_KEY, and pass --project-id "$P" on every command (API keys have no saved project):
2

Fail early on blockers

--require-ready exits 6 if blockers exist (0 otherwise).
3

Launch the fresh preflight plan

Inject a unique launchAttemptId into data.plan (which carries current configuration revisions) and capture the launch ID:
4

Watch for non-completed terminal states

--fail-on exits 6 on listed statuses (watch exits 4 with watch_timeout if the timeout hits first).
5

Enforce your pass-rate threshold

Wait until pendingRuns == 0 so all Evals verdicts have landed (for multi-treatment experiments, filter or use compare_treatments instead of summing all treatments in totals):
Use oqoqo results analyze compare_treatments to gate on treatment delta instead, or oqoqo experiments rerun (--attempt-id "ci-$CI_PIPELINE_ID") to automatically launch your latest task and tool versions without maintaining a plan file (pass --versions experiment to keep original task versions).

Scripting essentials

  • Structured JSON: pass --output json for one JSON envelope ({"ok": true, "command": …, "data": …} or {"ok": false, "error": …}) on stdout; progress stays on stderr.
  • Exit codes: 0 success, 1 internal/platform error, 2 usage error, 3 auth error, 4 API error/refusal, 5 network error, 6 matched --fail-on or --require-ready.
  • Non-interactive confirmations: destructive commands prompt in terminals; pass --yes in scripts or with --output json.
  • Discoverability: run oqoqo schema <command> for machine-readable flags, input payloads, and output schemas.
See CLI reference for auto-updates, environment variables, and paging. If an outdated CLI prints:
Run oqoqo upgrade (or update the pinned binary URL/SHA-256 if running as a custom agent).

Next steps

CLI reference

Browse commands by task, global flags, and exit codes.

Measure a tool's impact

Run a complete lift experiment end to end.

Install the Oqoqo Plugin

Give your AI assistant the same capabilities through the plugin.

Launch an experiment

Understand every option in a launch plan.