AgentKit
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

Open the local AgentKit dashboard

Open the AgentKit dashboard. On Wails-enabled builds this opens a native desktop window backed by the same binary (no HTTP server). On headless builds, or when --no-window / --port / --no-interactive is set, it starts the HTTP dashboard server instead and opens your browser. Non-loopback HTTP binds require --auth-token.

Who it's for: Users who want a visual overview of their AgentKit projects and config.

When to use it: Use ak config for the default dashboard flow. Use subcommands for lifecycle control.

What changes on disk: Reads ~/.agentkit/config.yaml for settings. In HTTP mode: writes ~/.agentkit/dashboard/state.json on start; removes it on stop.

Usage

ak config [flags]

Examples

ak config                               # native window (wails build) or browser (fallback)
ak config --no-window                  # force HTTP dashboard + browser even on wails build
ak config start                         # start HTTP dashboard daemon (all builds)
ak config --port 9000                   # force HTTP path, custom port
ak config start --port 9000             # custom port
ak config start --no-open               # skip browser auto-open
ak config start --json                  # emit startup JSON for CI
ak config start --bind 0.0.0.0 --auth-token=tok  # non-loopback with auth
ak config stop                          # stop the running daemon
ak config status                        # show PID, port, uptime

Flags

FlagDescription
--auth-token stringBearer token for request auth (required when --bind is non-loopback; env: AK_DASHBOARD_TOKEN)
--bind stringBind address (default 127.0.0.1; non-loopback requires --auth-token) (default "127.0.0.1")
-h, --helphelp for config
--jsonEmit machine-readable JSON (implies --no-interactive)
--no-interactiveDisable interactive prompts (CI-safe)
--no-openSkip browser auto-open on startup
--no-windowSkip native window and use the HTTP dashboard + browser instead (wails builds only)
--port intPort to listen on (0 = OS-assigned) (default 8766)
-q, --quietSuppress non-error output on stderr
-V, --verboseExtra diagnostic output on stderr (loses to --quiet)
-y, --yesAssume yes for all prompts

Output modes

ModeBehavior
prettydefault on TTY (colors, ASCII markers)
plainauto when stdout piped or --no-interactive
json--json (single-object envelope, NDJSON-safe)

Exit codes

CodeMeaning
0success
1runtime error
2invalid flags
3user-cancel (SIGINT, prompt-cancel)
1runtime error (config I/O, listen failure, window init failure)
2invalid flags or arguments
7security violation: non-loopback bind without auth token

On this page