Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

aasm gateway

Manage the aa-gateway governance daemon directly — the process that holds the agent registry, evaluates the policy engine, and writes the audit log.

aasm gateway start runs the gateway with low-level flags (listen address, socket, policy path). For the higher-level local developer workflow (deployment mode + dashboard), see aasm start.

Synopsis

aasm gateway <SUBCOMMAND> [OPTIONS]
SubcommandPurpose
startSpawn aa-gateway as a detached background process.
stopTerminate a running gateway (SIGTERM → SIGKILL fallback).
statusReport whether the gateway is running and serving gRPC.
logsTail the gateway log file.

aasm gateway start

Spawn aa-gateway in the background (or foreground with --no-detach). The binary is resolved from $PATH, then ~/.cargo/bin, then ./target/release, then ./target/debug.

FlagTypeDefaultDescription
--policy <POLICY>path$AA_POLICY~/.aasm/policy.yaml/etc/aasm/policy.yamlPolicy YAML file.
--listen <LISTEN>string127.0.0.1:50051TCP listen address.
--socket <SOCKET>pathUnix domain socket path. Takes precedence over --listen.
--no-detachflagoffBlock the caller instead of detaching to the background.
--log-file <LOG_FILE>path~/.aasm/logs/gateway.logLog file for gateway stdout/stderr.
aasm gateway start --listen 127.0.0.1:50051 --policy ./policy.yaml

aasm gateway stop

Terminate a running gateway gracefully (SIGTERM, escalating to SIGKILL). Takes no flags.

aasm gateway stop

aasm gateway status

Report whether aa-gateway is running and serving gRPC.

FlagTypeDefaultDescription
--jsonflagoffEmit machine-readable JSON instead of human-readable text.
aasm gateway status --json
{ "running": true, "pid": 48213, "listen": "127.0.0.1:50051", "uptime_seconds": 8133 }

aasm gateway logs

Tail the gateway log file, with optional level filtering. Non-JSON lines pass through so operator notes are preserved.

FlagTypeDefaultDescription
-f, --followflagoffStream new log entries in real time (like tail -f).
--lines <LINES>integer50Number of lines to show from the end of the log.
--level <LEVEL>log levelFilter entries by minimum severity.
--log-file <LOG_FILE>path~/.aasm/logs/gateway.logPath to the log file.
aasm gateway logs --follow --level warn

Last updated: 2026-06-11 by Chisanan232