ReferenceCLI commands
BetaYou are reading docs for the beta channel (
2.4.1-beta.1) — updated automatically on every beta release.Switch to stable →CLI commands
ak config stop
Stop the running dashboard daemon
Send SIGTERM to the running AgentKit dashboard process. Reads the PID from ~/.agentkit/dashboard-state.json. Succeeds (exit 0) if the server is not running - idempotent and safe to call from scripts.
Who it's for: Both: power devs scripting lifecycle control and non-technical users via the dashboard.
When to use it: When you want to stop the dashboard server started with ak config start. Also useful in CI teardown or when switching ports.
What changes on disk: Removes ~/.agentkit/dashboard-state.json after a successful stop.
Usage
ak config stop [flags]Examples
ak config stop # stop the running dashboard
ak config stop --json # emit stop confirmation as JSONFlags
| Flag | Description |
|---|---|
-h, --help | help for stop |
--json | Emit machine-readable JSON (implies --no-interactive) |
--no-interactive | Disable interactive prompts (CI-safe) |
-q, --quiet | Suppress non-error output on stderr |
-V, --verbose | Extra diagnostic output on stderr (loses to --quiet) |
-y, --yes | Assume yes for all prompts |
Output modes
| Mode | Behavior |
|---|---|
pretty | default on TTY (colors, ASCII markers) |
plain | auto when stdout piped or --no-interactive |
json | --json (single-object envelope, NDJSON-safe) |
Exit codes
| Code | Meaning |
|---|---|
0 | success |
1 | runtime error |
2 | invalid flags |
3 | user-cancel (SIGINT, prompt-cancel) |
Related commands
ak config— Open the local AgentKit dashboard