Developers / AAES Operate / CLI

Operate CLI.

Run operate/v1 operations from a terminal with aaes operate, under the permissions of your Operate API key.

This documentation describes AAES Operate. Operational controls and private-work permissions are independent of AAES Govern policy and evidence. About AAES Operate

Interface scope

The Operate commands are part of the aaes binary: aaes operate <resource> <command> [id] [flags]. Each command calls one operate/v1 operation on your Operate address, so the API decides what your key may read or change, exactly as it does for the SDKs and the MCP endpoint.

The aaesctl and aaescp tools in the Govern reference are Govern operator and local planning tools. They do not manage Operate.

Connect

Set the Operate address in AAES_OPERATE_ENDPOINT or pass --endpoint. A remote address must use HTTPS; plain HTTP is accepted only on loopback. An address that carries credentials, a query or a fragment is refused.

Supply a person's or an agent's Operate API key from a file with --key-file or AAES_OPERATE_TOKEN_FILE, or in AAES_OPERATE_TOKEN. A selected file takes precedence over the variable, and keys are never accepted as flag values. The key travels as Authorization: Bearer. A person's key that reaches more than one workspace names the one it acts in with --workspace or AAES_OPERATE_WORKSPACE, sent as the AAES-Workspace header.

The client follows no redirects, waits at most 30 seconds for a response and does not retry. A change is sent once.

export AAES_OPERATE_ENDPOINT=https://operate.example.com
export AAES_OPERATE_TOKEN_FILE=/private/operate-api-key

aaes operate projects list
aaes operate tasks read TASK-42 --json
aaes operate tasks create --title 'Review release' --project-id project-id
aaes operate comments create TASK-42 --body 'Ready for review'
aaes operate runs request --agent-id agent-id --task-id TASK-42 --json
aaes operate approvals decide approval-id --decision approved --note 'Reviewed'
aaes operate costs summary --period month

Commands

Put flags after the resource and command, and a record identifier before the flags. aaes operate tasks update --help lists that command's fields. Flag names use hyphens where the contract uses underscores.

Commands after aaes operate
ResourceCommands
projectslist, create, read, update, members
taskslist, create, read, update, costs, outcome-check (what Govern verified about the outcomes of one task; needs a signed-in session)
commentslist, create (on one task)
agentslist, create, read, update, pause, resume
runslist, request, read, cancel, events
approvalslist, read, decide
costssummary, by-agent, by-project
budgetspolicies, incidents
activitylist
searchlist (a search text of up to 500 characters is required)
inboxread (the inbox of the person who owns the key)
identityread (the caller and their workspaces)
capabilitieslist (the optional operations this deployment serves)
eventsstream (prints the WebSocket address of the live event stream; it opens no connection)
governactors, spend, decision (with AAES Operate + Govern; spend and decision accept only a signed-in session, so an API key is refused; deciding stays on the decision page)
organizationpeople, health, attribution, costs, history, names (costs takes a --dimension of organization, division, team, employee, agent or project and a --month; history takes a --subject-type of staff, team, division or staff_binding and a --subject-id)
stafflist, create, read, update, binding-list, binding-read, binding-update (staff records are descriptive and carry no login or permissions; a binding links a current verified person to a staff record)
divisionslist, create, read, update
teamslist, create, read, update, add-member, remove-member (a member is a person, an agent or a staff record)
directory-connectionread, portal, preview, apply, reconcile, syncs, sync (the provider is entra, google_workspace or okta; apply takes the digest and revision from a preview)
valuebaseline-read, baseline-set, report (workflow baselines, and value measurements for one UTC month)
acceptanceverify (checks a signed acceptance report against the deployment’s trusted report keys; administrators only; records nothing)
readinessread (independent product readiness observations)
workflowcheck (inspects an existing workflow for one --agent-id and --task-id without running it)

The divisions, teams, directory-connection, readiness and workflow commands, and organization health, history and names, need the key of an authorized person. organization costs needs financial reporting authority. A change to a staff record, staff binding, division or team takes a --reason. An update, an archive or a membership change also takes the record's current --revision, and a stale revision is refused as a conflict.

Optional operations answer 404 on a deployment that does not serve them; aaes operate capabilities list shows which ones yours serves.

Input, output and exit codes

--data-file PATH reads a JSON object with the operation's identifier, filters and body fields; --data-file - reads it from standard input. Input is limited to 1 MiB, and a field given both in the file and as a flag is an error. Explicit JSON null and empty strings in updates are refused, so omit a field to leave it unchanged. The exceptions clear a value: an empty description on a team or division, an empty division_id on a team, an empty department or job_title on a staff record, and a null manager on a staff record. --idempotency-key takes up to 128 characters. It is optional for projects, tasks, comments, agents and runs, and required for staff, division and team creation and for a directory sync.

Output is a table by default. --json or --output json prints the API response as returned. Lists return one page of up to 200 items; pass the previous page.next_cursor as --cursor to continue, since no command follows a cursor for you. Responses larger than 4 MiB are refused.

Exit code 0 means the request succeeded, including a run request the API skipped. Exit code 1 means the operation was refused or failed, and 2 means a usage, configuration or input/output error. Refusals for 401, 403, 404 and 409 print what to check next.

What the CLI does not do

Approval decisions use approved for Approve and rejected for Deny. You need a person's key with that authority; an agent key cannot decide one. These are Operate's operational approvals. A Govern approval is decided in Govern by an authorized person. There is no company flag and no raw API command: the CLI reaches only the operations listed above.

Evaluate Operate

Use Operate to manage private projects and tasks, sign in through your corporate identity provider with OIDC or SAML, and run agent work. Deployment and agent-connection guides ship with the evaluation package. Your role and membership in each project or task determine access independently of Govern.

Read the Operate integration guide and prepare a scoped evaluation.

Using Operate and Govern together

Adding Govern does not replace Operate permissions. Each product remains responsible for its own identity, authorization and records. The shared workspace shows the modules you are authorized to use. Agree the versions, deployment and acceptance criteria for your evaluation.

Read the combined integration boundary or compare the Govern CLI contract.