Prepare the examples
The examples assume these non-secret IDs are already available:airctrl project accounts, airctrl project list, airctrl record list and airctrl gateway list
to discover them. Never guess an ID or try nearby IDs after an authorization failure.
Every flag takes a separate value. Booleans use true or false; lists use comma-separated values;
repeatable inputs repeat the flag. Run airctrl project, airctrl record, airctrl gateway or
airctrl sa to see the exact syntax installed on the machine.
Local setup and record access
Sign in to
Store a human PAT in the local CLI profile. The CLI asks for the token without placing it in shell history. It returns a success message after the profile is saved.
CLI command:
airctrl loginRead a complete record
Decrypt one accessible record and return all fields. Use
--profile ci for an active Service Account profile. A missing wrapper returns no_wrapper_for_caller.CLI command:
airctrl getRead selected record fields
Read only selected fields or one environment from a record. The result contains only the requested fields. never expands access beyond the record grant.
CLI command:
airctrl readInject records into a process
Inject accessible project records into one child process. The values exist only in the child process environment. The command returns the child process exit status.
CLI command:
airctrl runGenerate a secret locally
Generate secret material locally without storing it. The generated fields are printed once. This command does not call the API.
CLI command:
airctrl generateCreate an encrypted record
Create an encrypted record from supplied fields. The CLI returns the new record ID. Avoid literal secret values in shell history; prefer an import or protected environment variable.
CLI command:
airctrl createCreate or replace record fields
Update a matching record or create it when it does not exist. The result states whether created or updated the record.
CLI command:
airctrl setCreate a generated record
Generate, encrypt and store a new record. The command returns the record ID. The generated value is encrypted before it leaves the CLI.
CLI command:
airctrl newImport environment variables
Import an ENV file as one encrypted record. The source file stays unchanged. Review it before import so unrelated local variables are not stored.
CLI command:
airctrl importAccount and project commands
List accessible accounts
Returns accounts available to the human PAT. Service Accounts cannot discover accounts.
CLI command:
airctrl project accountsList projects
Returns accessible projects in the selected account.
CLI command:
airctrl project listView a project
Returns one project or a not-found result when it is unavailable.
CLI command:
airctrl project getCreate a project
Returns the new project ID. The caller becomes its Project Administrator.
CLI command:
airctrl project createUpdate a project
This command replaces all three editable values, so pass the values you want to keep.
CLI command:
airctrl project updateArchive a project
Archived projects remain stored but leave normal active lists.
CLI command:
airctrl project archiveRestore a project
Returns the restored project state.
CLI command:
airctrl project restoreRecord metadata and history
List record metadata
Returns safe metadata, not decrypted fields. Service Account results are limited by its grants and custom role.
CLI command:
airctrl record listView record version history
Returns encrypted version metadata in newest-first order.
CLI command:
airctrl record versionsReview one record’s audit history
Returns recent audit events when the caller can view this record’s audit history.
CLI command:
airctrl record auditFind unusual record activity
Returns unusual record events for the selected scope.
CLI command:
airctrl record anomaliesReview daily record activity
The date is UTC and must use
YYYY-MM-DD.CLI command:
airctrl record activityReview record alerts
Returns the paginated alert feed.
CLI command:
airctrl record alertsReview secret access events
Returns matching record access events. Action names are exact strings.
CLI command:
airctrl record accessUpdate record details
Only supplied fields change. Use the documented
null or none value to clear optional fields.CLI command:
airctrl record metadataArchive a record
Archives the record without deleting encrypted history.
CLI command:
airctrl record archiveRestore a record
Restores an archived record to active lists.
CLI command:
airctrl record restoreTransfer record ownership
The new owner must be eligible. Confirm both IDs before transferring ownership.
CLI command:
airctrl record transferRestore a previous record version
saves the selected encrypted version as a new current version; it does not erase later history.
CLI command:
airctrl record rollbackReplace record fields by ID
Updates the encrypted value under the record’s existing key.
CLI command:
airctrl record setRotate a record
Rotates the record data key locally and saves a new encrypted version.
CLI command:
airctrl record rotateRecord sharing
Share a record with a user
The recipient must be onboarded and eligible for the project.
CLI command:
airctrl record share-userShare a record with a Service Account
Encrypts a wrapper for the Service Account. This does not change its custom role.
CLI command:
airctrl record share-saShare a record with a group
The group must belong to the same account and project as the record.
CLI command:
airctrl record share-groupRemove a user’s record access
Removes the user’s direct grant and wrapper immediately.
CLI command:
airctrl record revoke-userRemove a Service Account’s record access
Removes only this record grant. Other Service Account grants remain unchanged.
CLI command:
airctrl record revoke-saRemove a group’s record access
Removes the group grant and wrappers created through that grant.
CLI command:
airctrl record revoke-groupGateway discovery and lifecycle
List supported AI providers
Returns enabled providers. This command is available to both human and Service Account identities.
CLI command:
airctrl gateway providersList gateways
Returns gateways in one project. This command requires a human PAT.
CLI command:
airctrl gateway listView a gateway
Returns one accessible gateway and safe settings. Service Accounts may use this read.
CLI command:
airctrl gateway getCreate a gateway
Returns the gateway ID. Each provider credential must belong to the same account, and
--model must exist in that credential’s live catalog.CLI command:
airctrl gateway createUpdate a gateway
Only supplied fields change.
CLI command:
airctrl gateway updateDelete a gateway
This disables the gateway and revokes its gateway tokens. Confirm the gateway ID first.
CLI command:
airctrl gateway deleteProvider credentials
List provider credentials
Returns safe credential metadata; provider secret values never appear.
CLI command:
airctrl gateway provider-credentialsAdd a provider credential
The CLI reads the secret from the named environment variable and never places it in the command arguments.
CLI command:
airctrl gateway provider-credential-createList models for a credential
Returns the selected credential’s live model catalog, capability tags, supported capabilities, and
airctrlSupport status. Unsupported entries remain visible but cannot be attached to a gateway.CLI command:
airctrl gateway provider-modelsReplace a provider key
The old provider key stops being used after the replacement validates.
CLI command:
airctrl gateway provider-credential-rotateRename a provider credential
Changes only the display label.
CLI command:
airctrl gateway provider-credential-updateRevoke a provider credential
Revocation prevents future provider use. Confirm dependent gateways first.
CLI command:
airctrl gateway provider-credential-revokeAttach a provider credential
Validates
--model against the existing credential’s live catalog, then attaches that exact key/model binding to the gateway.CLI command:
airctrl gateway credential-attachDetach a provider credential
Detaches the credential from this gateway without revoking the credential itself.
CLI command:
airctrl gateway credential-detachGateway tokens
List gateway tokens
Returns safe token metadata. Token plaintext is never listed again.
CLI command:
airctrl gateway tokensCreate a gateway token
The token value appears once. Save it immediately in an approved destination.
CLI command:
airctrl gateway token-createRename a gateway token
Changes the label, not the token value.
CLI command:
airctrl gateway token-renameRevoke a gateway token
Authentication stops immediately. The token row remains available for audit.
CLI command:
airctrl gateway token-revokeDelete a gateway token
Deletes token metadata. Revoke first when you need a clear audit transition.
CLI command:
airctrl gateway token-deleteRouting, limits and telemetry
Change gateway limits and behavior
Only supplied settings change. Body logging can store sensitive request content, so keep it disabled unless required.
CLI command:
airctrl gateway settingsReview gateway requests
Returns request metadata. Service Accounts may use this read when their role permits it.
CLI command:
airctrl gateway logsInspect one gateway request
Returns stored bodies only when body logging and the required permission are both present.
CLI command:
airctrl gateway logReview provider-key access
Returns provider-key access decisions without returning provider keys.
CLI command:
airctrl gateway key-accessReview project usage logs
Returns usage metadata across the selected project.
CLI command:
airctrl gateway usage-logsInspect one project usage log
Returns one project log and any stored bodies allowed by RBAC.
CLI command:
airctrl gateway usage-logReview project spend
Returns current spend and the effective project or account limit.
CLI command:
airctrl gateway usage-spendReview project usage metrics
Returns request, error, token, latency and spend aggregates.
CLI command:
airctrl gateway usage-metricsView OpenTelemetry settings
Returns safe OpenTelemetry settings. Secret header values are never returned.
CLI command:
airctrl gateway otelChange OpenTelemetry settings
The CLI reads header values from the named environment variable. Use
--clear-headers true to remove stored headers.CLI command:
airctrl gateway otel-updateService Account metadata
List Service Accounts
Returns safe Service Account metadata to a human PAT.
CLI command:
airctrl sa listView a Service Account
Returns one Service Account from the safe metadata list. Lifecycle and credential actions remain dashboard-only.
CLI command:
airctrl sa getCommon exit behavior
Successful commands exit with0. Validation, authentication, authorization and missing-resource failures exit with a non-zero status and a stable code on stderr. Do not retry 400, 403 or 404 failures without changing the request. Retry temporary 429, 500 and 503 failures with a bounded backoff.