AgentWorks API, CLI, and configuration reference
AgentWorks 1.14 exposes the same versioned API to the Web Console, CLI, SDK, and external automation. Use the running service's OpenAPI document as the exact contract for that installation; use this page to find the relevant surface and configuration group.
API contract
Download the live OpenAPI document from the AgentWorks service:
curl --fail \
-H "Authorization: Bearer $AGENTWORKS_TOKEN" \
https://agentworks.example.com/api/v1/openapi.yaml \
-o agentworks-openapi.yaml
The API base path is /api/v1. Errors use RFC 9457 problem details with a stable AgentWorks code. List responses
use an items array and an opaque nextCursor; do not construct or modify cursors. Event streams use Server-Sent
Events and accept Last-Event-ID to resume from the next event after the last event processed.
The contract groups operations by task:
| Task | API resources |
|---|---|
| Identity and administration | Authentication, users, workspace members, tokens, and audit |
| Agent authoring | Agents, published versions, tools, MCP connections, capability packs, and permissions |
| Release operations | Releases, bundles, aliases, environments, promotion approvals, and deployments |
| Execution | Runs, steps, events, streams, replay, context, callbacks, and cancellation or pause controls |
| Human and durable work | Sessions, messages, interactions, artifacts, and durable operations |
| Quality | Simulations, tests, evaluations, datasets, evaluators, reports, and baselines |
Use the OpenAPI operation's documented authorization and precondition requirements. Do not infer permission from the URL or retry a write with a new idempotency value unless you intend to request new work.
CLI task map
Build the CLI from the authorized v1.14.0 source tag as described in the
headless installation guide. Run agentworks <group> --help and
agentworks <group> <command> --help for the exact flags in that release.
| Goal | Command groups and representative commands |
|---|---|
| Select a service | profile set, profile use, profile list, auth status |
| Manage an agent | agent create, agent list, agent show, agent publish, agent versions |
| Operate releases | release build, release show, release verify, release lifecycle, release suspend, release revoke |
| Deploy safely | deploy show, deploy list, deploy routing, deploy rollback, deploy suspend, deploy retire |
| Run work | run start, run show, run list, run pause, run resume, run cancel, stream <run-id> |
| Resolve interactions | interaction list, interaction show, interaction respond, interaction cancel |
| Inspect durable work | operation list, operation show, operation cancel, events list, context show |
| Validate quality | test run, simulate run, eval run, eval status, eval report, eval compare |
| Manage evidence | artifact list, artifact show, artifact download, artifact validate, audit list |
| Diagnose the client | diagnostic context, diagnostic openapi |
Prefer structured output where the command offers it, and treat command output and exit status as the automation contract. A command name does not grant authority; the token still needs the API permission for the operation.
Runtime configuration
Supply settings through the deployment's supported configuration mechanism. The following keys are the public 1.14 operator surface used by the product guides:
| Area | Keys | Purpose |
|---|---|---|
| Console | agentworks.console.enabled | Disable the optional browser interface while keeping API and worker surfaces active |
| Workers | agentworks.runs.worker.enabled, agentworks.runs.worker.threads | Enable execution and set worker concurrency |
| Evidence | agentworks.runs.cleanup-evidence.path | Choose the protected path for cleanup evidence |
| Storage mode | agentworks.storage.run-plane, agentworks.storage.control-plane | Select local or Flightdeck-hosted responsibilities |
| Local storage | agentworks.storage.local.path | Set the local run-store path for the managed-runtime topology |
| Gateway connections | agentworks.gateway.gateways.<id>.* | Define named DVARA Gateway endpoints and trust settings |
| Environment credentials | agentworks.credentials.environment.<id>.variable, agentworks.credentials.environment.<id>.scope | Map an environment reference to a scoped process variable |
| Runtime enrolment | agentworks.enrolment.base-url, agentworks.enrolment.runtime-id, agentworks.enrolment.token, agentworks.enrolment.directory | Enrol and identify a Flightdeck-managed Runtime |
| Default references | agentworks.lifecycle.default-credential-references.* | Attach approved credential references to lifecycle operations |
Keep secrets out of AgentSpec and shell history. Prefer files or secret mounts where the deployment supports them, and validate the effective configuration through a non-production rollout before changing a runtime fleet.
Version rules
- Use the live OpenAPI document from the service you are calling; do not copy a document from another environment.
- Keep the CLI on a version supported by the server during an upgrade.
- Treat unknown fields, newer stored formats, and unsupported capabilities as incompatibilities rather than silently ignoring them.
- Pin released images and libraries by the release's recorded digest or version.