CLI commands
ak logout
Clear local AgentKit credentials
ak logout
Clear local AgentKit credentials
Synopsis
What it does: Delete the locally stored AgentKit session so this machine is no longer authenticated.
Who it's for: Anyone signing out of a shared or rotated machine.
When to use it: Before handing off a machine, or to force a fresh login.
Examples: ak logout ak logout --json
What changes on disk: Removes the CLI registry credential while preserving any paid App device session. Idempotent: a missing session exits 0.
Output modes: pretty default on TTY (colors, ASCII markers) plain auto when stdout piped or --no-interactive json --json (single-object envelope, NDJSON-safe)
Exit codes: 0 success 1 runtime error 2 invalid flags 3 user-cancel (SIGINT, prompt-cancel)
ak logout [flags]Options
-h, --help help for logout
--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 promptsSEE ALSO
- ak - AgentKit CLI