TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/trycua/cua/llms.txt
Use this file to discover all available pages before exploring further.
cb run command is the primary way to execute benchmarks in Cua Bench. It supports running a single task or an entire dataset, connecting different agent implementations, and storing trajectories for later analysis or RL training. This page covers every major flag and shows you what the output looks like.
Run commands overview
| Command | Purpose |
|---|---|
cb run task <task-path> | Run a single task, optionally with an agent or oracle. |
cb run dataset <dataset> | Run all tasks in a dataset, in parallel. |
cb run list | List all runs and their current status. |
cb run info <run-id> | Show details for a completed or active run. |
cb run watch <run-id> | Follow a run’s progress in the terminal. |
cb run logs <run-id> | Print session logs from a run. |
cb run stop <run-id> | Stop an active run immediately. |
Running a single task
--agent is omitted, the task runs setup only and exits without taking any agent actions. Add --oracle to use the task’s built-in reference solution instead of an agent.
Running a dataset
Agent options
The--agent flag accepts built-in agent names or a path to a custom agent module.
- Built-in agents
- Custom agent module
- Oracle mode
Cua Bench ships several reference agent implementations:
| Agent name | Description |
|---|---|
cua-agent | The default Cua computer-use agent backed by the cua-agent SDK. |
opencua-agent | An open-weights alternative using the OpenCua model. |
gemini | Google Gemini multimodal agent adapter. |
qwen3vl | Qwen 3 Vision-Language agent adapter. |
Parallel execution with --max-parallel
The --max-parallel flag controls how many task variants run concurrently. Each worker gets its own isolated environment session.
Output directory and trajectory storage
Use--output-dir to control where results and trajectories are written:
Complete flag reference
| Flag | Default | Description |
|---|---|---|
--agent | none | Agent name or path to agent module. |
--model | agent default | Model identifier to pass to the agent. |
--oracle | false | Use the task’s built-in reference solution. |
--max-steps | 100 | Maximum agent steps per task variant. |
--max-parallel | 4 | Maximum number of concurrent workers. |
--output-dir | current directory | Directory for results and trajectories. |
--image | platform default | Container image to use for native-provider tasks. |
--platform | auto | Execution platform (e.g., docker, lume). |
--split | train | Dataset split to run. |
--task-filter | none | Glob pattern to filter tasks by name. |
--variant-id | all | Run only a specific variant index. |
Scoring and evaluation output
After every run, the terminal prints a summary table followed by the aggregate score:run-summary.json:
Exporting trajectories for RL training
Eachtrajectory.json stores the complete observation–action sequence in the format expected by Cua Bench’s reinforcement-learning pipeline:
cb.trace API or with the CLI:
Trajectories produced by the oracle are particularly useful as demonstration data for behavior cloning, because the oracle always takes the known-correct action sequence.