Developers / AAES Govern / CLI

Audit offline.
Plan locally.

aaesctl is the AAES Govern operator CLI, with an offline path for auditors. aaescp is a separate, local control-plane CLI. AAES Govern can run on your infrastructure or be hosted by AAES. For AAES Operate’s command-line tools, see Operate CLI.

This page describes AAES Govern’s controls. AAES Operate has private-work permissions, operational reviews and recorded-spend limits; it does not include Govern. About AAES Govern

How to get the CLIs

Request an evaluation. We send a package with aaesctl and aaescp, plus release-verification public keys and setup instructions. Supported platform packages are supplied by request under their software license or written evaluation authorization. The separate Apache-2.0 aaesverify release is available on the verification page. Any supplied test credentials or keypairs are identified as synthetic and must not be used for production; deployment signing keys are generated under your control (aaesctl keygen). A deployment bundle includes the same operator tools. Remaining setup notes ship with the package.

Start with the audit export

AAES Govern writes v3 exports by default. An operator can enable v4 for a deployment. aaesverify v0.3.0 reads v2, v3 and v4. Follow the v4 instructions for rotated keys and for pinning the expected final head. For a v4 file, add --keyring for rotated keys and --expected-final for the final head you expect; without --expected-final a v4 result is at most UNPINNED_CONSISTENCY. The earlier v0.2.0 release reads v2 only.

Verify

Verify the export against its public key, using trust material you hold or authenticate separately. A key supplied only alongside an export does not establish provenance by itself. Verification checks the exported sealed bytes, signatures, and chain links; it does not prove the truth of recorded claims, completeness of capture, policy correctness, enforcement effectiveness, or regulatory compliance.

aaesverify --export <export.jsonl> --pubkey <key.pub>

This checks record integrity. To require independent attestation, supply separately obtained witness keys or timestamp trust roots and add --require-independent. Neither an external witness nor a timestamp authority is connected in the default deployment.

aaesverify --export <export.jsonl> --pubkey <key.pub> \
  --witness-trust <trusted-witnesses.json> --require-independent

The witness-trust file maps trusted witness IDs to their public keys obtained separately from the export. With --require-independent, verification additionally requires supported witness or timestamp evidence validated against that separately obtained trust material. The evidence concerns the signed head within the witness or timestamp service's scope; it does not independently verify the underlying actions.

For an export made before its first anchor interval, the current verifier accepts a signed head.pre_anchor commitment. An older or rotated-key export with only an unsigned header flag requires a deliberate --allow-pre-anchor opt-in. That option accepts the stated absence of anchors; it does not add independent attestation.

Bind the stored records to the export

The public aaesverify CLI checks the export's hashes, signatures, and the fields included in the export. The evidence pack also contains a companion file (aaes.records/v1) with the stored authorization, scope, and approver fields. From v0.3.0, the public CLI can check that current record/2 records in that file match the hashes in an aaes.export/v3 export:

aaesverify --export <export.jsonl> --records <records.jsonl> --pubkey <key.pub>

It recomputes the stored intent, decision and record hashes and compares them. It fails closed on nonempty external references, retention tombstones, legacy seal encodings and unknown fields. For those records, and for a full evidence pack, use the separately licensed operator tool:

aaesctl evidence verify --pack <pack-directory> --pubkey <key.pub>

This checks that each companion record matches its record_hash, as well as verifying the export. Neither command proves that an event happened or that an approval was correct.

Check receipts and evaluation disclosures

aaesverify v0.3.0 also verifies an aaes.trust-receipt/v1 decision receipt and a disclosed evaluation directory:

aaesverify --receipt <receipt.json> --pubkey <key.pub>
aaesverify --evaluation <directory> --pubkey <key.pub>

A verified receipt shows that the decision record was committed to the signed log under the given key. It does not show that the action executed or that the record set is complete. --evaluation authenticates the disclosed artifacts, re-seals their records and binds the v3 export.

The following proof and inspection commands belong to the separately licensed aaesctl operator CLI.

Prove

Produce the verifier's proof material for sequence 42 in this export. The output concerns the record's cryptographic relationship to the exported structure; it is not proof that the recorded action occurred, succeeded, or complied with law. Verify the resulting proof against the appropriate authenticated trust material using the release's documented procedure.

aaesctl prove --export <export.jsonl> --seq 42

Inspect

Inspect the export offline.

aaesctl inspect --export <export.jsonl>

Replace <export.jsonl> and <key.pub> with the files from your evaluation install.

Operator command groups

Use aaesctl for operator workflows. The table is a command index, not a set of complete invocations. A pipe separates available subcommands.

aaesctl command surface
GroupCommands
Export auditaaesctl verify
aaesctl prove
aaesctl inspect
Capabilities, resources, and bundlesaaesctl capability add | list
aaesctl resource add | list
aaesctl bundle sign | verify | show
Identityaaesctl identity import | review | show
aaesctl identity team upsert | show
aaesctl identity away
Operator tokensaaesctl operator-token issue | list | revoke
Agent connectionaaesctl agent setup | connect | check
Decision simulationaaesctl evaluate
Budgets and valueaaesctl budget status | set | calendar | request | approvers
aaesctl value baseline set | show
aaesctl value report
Profiles and company disclosureaaesctl profile check-settings
aaesctl job-profile add | show | assign | reconcile | retire | request-again
aaesctl disclosure show | set
Backup and security evidenceaaesctl backup create | verify | pubkey | restore | bootstrap | activate | drill
aaesctl security-evidence export
Grantsaaesctl grant request | approve | deny | return | escalate | review | list | revoke
Tasks and shared budgetsaaesctl task opt-in | reconcile-claim
aaesctl shared-budget enable | status | child
Freezeaaesctl freeze engage | lift | status
Secretsaaesctl secret put | list | rotate | delete | keygen
Key custodyaaesctl root-custody wrap | rewrap
aaesctl keyservice wrap | rewrap | conformance
aaesctl master-rotate
aaesctl tenant shred-key
Provisioning and surfacesaaesctl provision plan | apply | revoke | inspect | list | show
aaesctl surface add | list | show | plan | apply | revoke | inspect | budget check
Retention and privacyaaesctl retention plan | apply
aaesctl privacy inventory | export | erase | hold | release
Simulationaaesctl simulate
Lifecycleaaesctl lifecycle onboard | offboard
Coverage and reportingaaesctl coverage
aaesctl report
License and usageaaesctl license show | verify | install | request
aaesctl usage show | export | verify | key
aaesctl usage-preview
Demosaaesctl demo
aaesctl demo-platform
Capability packsaaesctl pack list | show | install | generate | init | lint | sign | verify | publish | revoke
aaesctl pack trust init | delegate | revoke | rotate | sign | show | install
Imports, inventory, and estate onboardingaaesctl import openapi | kong | mcp
aaesctl inventory aws | azure | gcp | okta | entra
aaesctl discover shadow
aaesctl estate init | ingest | convert | report
aaesctl deploy plan | apply
Evidence packs, receipts, and mappingsaaesctl evidence pack | verify | verify-evaluation | receipt | summary | map | correlate
aaesctl action-bundle build | verify
Utilities and storageaaesctl keygen
aaesctl version
aaesctl store migrate | export | import

aaesctl help prints every command with its flags.

Register a priced capability

aaesctl capability add registers a capability in your registry file. For one that costs money, add --cost-ceiling-usd, or --request-contract <file> for a JSON contract that binds the amount to the outgoing payload. See priced actions. Reviewed pack files are digest-bound, so add a ceiling in your own registry file rather than editing a pack.

Engage and lift the emergency stop

aaesctl freeze engage --console <url> revokes the tenant’s issued authority at live enforcement checks, with no second factor. Open model responses are canceled when Govern observes the stop. Effects already dispatched cannot be recalled; offline grants remain usable until their next live check or expiry, and pass-through executors must check in before acting. An action can start between its final stop check and dispatch. Lifting the stop needs a fresh one. With Govern's own credentials, aaesctl freeze lift --console takes the code in --mfa-code. With your organization’s identity provider, lift from the product, which opens a fresh sign-in at the provider. WorkOS sign-in can't complete this step. The --journal form works only on a stopped cell.

Issue an operator token

Operator tokens are expiring bearer tokens for people on the daemon API and the operator console, each revocable on its own. An operator issues one with aaesctl operator-token issue:

aaesctl operator-token issue --tokens <token-dir> --identity <identity.json> \
  --tenant <tenant-id> --operator <person> [--actor <person>] [--days 30] [--roles <role,...>] [--label <text>]
aaesctl operator-token list --tokens <token-dir> --tenant <tenant-id>
aaesctl operator-token revoke --tokens <token-dir> --identity <identity.json> \
  --tenant <tenant-id> --operator <person> --id <tok_...> --reason <text>

--tokens is the directory set by platform -operator-token-dir. The token is printed once, and the store keeps only its SHA-256 digest. A token lasts --days days, 30 by default and at most 90. --roles can narrow the console roles the token carries and never adds one. Issuing a token for another person, or revoking another person's token, needs the admin role in the identity register. The daemon reads the directory on each request, so a revoked token is refused on the next request without a restart. Where the deployment requires a stronger sign-in for the person, a CLI-issued token is refused; the person issues it from a signed-in console session instead.

Connect an agent

aaesctl agent setup prints the connection instructions for one registered actor and provider. connect also checks that the token in --token-file belongs to the expected actor and writes the connection and MCP configuration, without the token, to a new --out directory (.aaes by default). check runs the same identity check and writes nothing. The provider is openai, anthropic, gemini, grok, self_hosted, copilot or azure_foundry.

License and usage

aaesctl license checks a license file offline against the keyring in the binary, installs it, shows the installed license's state, and writes the onboarding request. No license state stops or changes governance. aaesctl usage shows a month's governed decisions with the record counts by outcome, exports a signed aaes.usage-report/1, verifies a report and recounts it from a records sidecar, and shows or rotates the usage key. aaesctl usage-preview counts the action records, refusals and distinct authorizations retained in a local journal for one tenant. These are evidence counts, not billable units.

Coverage is an AAES-defined accounting measure over the configured and captured population described by the report. It is not a measure of all enterprise agent activity, proof that bypasses are absent, or an assessment of control effectiveness or compliance. Reports state their population, the denominator each percentage is computed over, the exclusions, and the observation or enforcement rules.

Inventory and adapter checks in an evaluation use local or synthetic vendor-format sources. A live vendor tenant needs a paid evaluation.

aaescp: a local planner

aaescp never calls a cluster or the network. Its tenant commands and planning operate locally with a registry file. An aaescp plan is a local planning result.

Inspect the local tenant registry

aaescp tenant list --registry <registry.json>

The tenant command group supports add, list, show, activate, suspend, and offboard, with --registry <registry.json>. Listing and inspecting only read; every writing command (add, activate, suspend, offboard, plan, and the access and distribution writes) needs --operator or AAES_OPERATOR and is recorded in operator-log.jsonl beside the registry before the write is made.

Plan for a tenant

aaescp plan --registry <registry.json> --tenant acme --operator you@example.com

Here, --tenant acme selects a tenant for local planning. Planning is a write, so it needs --operator (or AAES_OPERATOR) and an active control-plane grant for that operator and tenant. This is distinct from daemon API authentication, where the caller's bearer credential resolves the tenant.

Multi-call binary

Both CLIs are also available through aaes. Put the CLI name before its command.

aaes aaesctl inspect --export <export.jsonl>
aaes aaescp plan --registry <registry.json> --tenant acme --operator you@example.com

Integrating an agent?

Use the daemon API, MCP facade, or SDKs for agent integration. Remaining integration notes ship with the evaluation package.

Request an evaluation, return to the developer overview, or contact hello@aaes.ai.