doctl harness-runtime validate
Generated on 1 Oct 2026
from doctl version
v1.177.0
Usage
doctl harness-runtime validate [<manifest>] [flags]Description
Check an agents.yaml / JSON manifest client-side without creating a session.
Catches missing agent/spec.runtime.adapter, unknown adapters, reserved env keys, credentials placed in env instead of secrets, conflicting model env keys (MODEL / HARNESS_INFERENCE_MODEL / ANTHROPIC_MODEL), and egress policy shape (unrestricted, host list, or object with allow_hosts / allow_ips / vpc_uuid). The API remains the authoritative validator for the full contract.
Name the manifest as a positional path or with --spec / -f / --file (- reads stdin); with none of these, ./agents.yaml is used when it exists.
Example:
doctl harness-runtime validate # checks ./agents.yaml
doctl harness-runtime validate agent.yamlExample
doctl harness-runtime validate ;Flags
| Option | Description |
|---|---|
--help, -h |
Help for this command |
--spec, -f |
Path to an agent manifest in YAML or JSON (flat or legacy envelope), equivalently given as a positional argument or –file. Defaults to ./agents.yaml when present. Set to “-” to read from stdin. |
Related Commands
| Command | Description |
|---|---|
| doctl harness-runtime | Managed Agents Runtime Services (M.A.R.S) |
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 |
--trace |
Show a log of network activity while performing a command Default: false |
--verbose, -v |
Enable verbose output Default: false |