doctl genai harbor run

Generated on 24 Nov 2026 from doctl version v2.8.0

Usage

doctl genai harbor run [flags]

Description

Submits a job that runs each agent and model pair against the tasks of a dataset, --attempts times each. Every attempt is a trial that runs in its own DO Sandbox and is scored by the task’s tests. Prints the job that was submitted.

A job runs one dataset, named with -d or --dataset. To run only some of its tasks, add -T or --task (repeatable). -t is doctl’s access token and does not select a task. Pair agents and models with --agent and --model: the first agent uses the first model, and so on. A single --model applies to every agent, and a single --agent runs against every model. --model takes a DigitalOcean model slug, or dedicated:<endpoint>:<model> for a Dedicated Inference endpoint.

The same job can come from a Harbor job file. -c is doctl’s own config file, so pass the job file with --job-config. A flag replaces the matching field in the file. The file’s dataset is a published name (datasets[].name), not a local folder. Local task paths and an environment block are not sent.

Use --dry-run to validate a job without starting it.

A retried submission with the same --idempotency-key returns the original job instead of starting another one, which makes the command safe to retry in CI. A new key is generated for every run by default.

Example

The following example runs claude-code against one task of a dataset three times:

doctl genai harbor run -d my-dataset -T fix-login-bug -a claude-code -m anthropic-claude-sonnet-4 --attempts 3`

The same job from a file: 

Flags

Option Description
--agent, -a An agent to run, such as claude-code; repeat the flag to run more agents
--attempts How many times each agent attempts each task (1-10)
Default: 1
--concurrency How many trials run at once (1-50)
Default: 4
--dataset, -d The dataset to run
--dry-run Validates the job and shows the trials it would run, without starting it
Default: false
--format Columns for output in a comma-separated list. Possible values: UUID, Name, Status, Progress, Errored, CreatedAt.
--help, -h Help for this command
--idempotency-key A key that makes a retried submission return the original job (default: a new random key)
--job-config A Harbor job file in YAML or JSON. Flags replace the matching fields. -c is doctl’s own config file and does not select this file
--max-retries How many times an errored trial is retried
Default: 1
--model, -m The model for the matching –agent; repeat the flag to pair more models
--name A name for the job
--no-header Return raw data with no headers
Default: false
--task, -T A task of the dataset to run, as -T or –task; repeat the flag for more tasks (default: every task)
Command Description
doctl genai harbor Run Harbor agent benchmarks on DigitalOcean

Global Flags

Option Description
--access-token, -t API V2 access token
--api-url, -u Override default API endpoint
--config, -c Specify a custom config file
Default:
    --context Specify a custom authentication context name
    --http-retry-max Set maximum number of retries for requests that fail with a 429 or 500-level error
    Default: 5
    --http-retry-wait-max Set the minimum number of seconds to wait before retrying a failed request
    Default: 30
    --http-retry-wait-min Set the maximum number of seconds to wait before retrying a failed request
    Default: 1
    --interactive Enable interactive behavior. Defaults to true if the terminal supports it (default false)
    Default: false
    --output, -o Desired output format [text|json]
    Default: text
    --preview Send requests to the preview deployment of the Harbor API
    Default: false
    --show Reveal masked values, such as secrets, instead of hiding them. Values are unmasked automatically in CI
    Default: false
    --trace Show a log of network activity while performing a command
    Default: false
    --verbose, -v Enable verbose output
    Default: false

    We can't find any results for your search.

    Try using different keywords or simplifying your search terms.