The Asqav CLI ships inside the Python SDK. Install the cli extra and you get an asqav command you can wire into Makefiles, GitHub Actions, and pre-commit hooks:
pip install "asqav[cli]"
Auth is one environment variable, ASQAV_API_KEY. There is no login flow and no config file to manage, which is what you want in CI.
What you can do without leaving the terminal
-
asqav quickstartgets a fresh setup working end to end. -
asqav doctorvalidates your governance setup and tells you what is missing. -
asqav preflight <agent_id> <action_type>runs the revocation, suspension, and policy checks for an action before the agent performs it, and exits non-zero when blocked. Useful as a gate in CI or a pre-commit hook. -
asqav sign --agent-id ... --action-type ...signs a receipt from the shell. -
asqav verify <signature_id>verifies a signature by ID. Public, no auth needed. -
asqav replay <agent_id> <session_id>reconstructs a session timeline and verifies it.--bundledoes the same offline from an exported compliance bundle. -
asqav agents list|create|revokemanages agents. -
asqav sessions list|endlists and ends signing sessions. -
asqav budget check|recordchecks or records agent spend. -
asqav queue list|count|clearandasqav syncmanage the local offline queue. -
asqav compliance exportbundles receipts for auditor handoff;asqav compliance reportandasqav compliance frameworkscover framework reports. -
asqav approve <session_id> <entity_id>approves a pending signing session from the terminal.
Commands that gate take exit codes seriously: preflight exits non-zero when the action is blocked, so a build agent fails closed when policy rejects an action. Most commands also take --json or --output json for machine-readable output.
Wiring it in
Three patterns we use ourselves:
- Pre-commit hook:
asqav preflighton the acting agent before a risky change, blocks the commit when policy rejects it. - GitHub Action job:
asqav compliance exporton a schedule, upload the archive as a build artifact. - On-call:
asqav replayon the failing session, paste the timeline into the incident channel.
Source and docs:
- Python SDK (the CLI ships with it): pypi.org/project/asqav
- Command reference: www.asqav.com/docs/cli
Run asqav doctor first. It tells you whether your setup is ready before you wire anything into CI.
Top comments (0)