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 projects list

List all registered AK projects

Display every project registered in ~/.agentkit/projects.json as a tab-aligned table with name, directory, and registration date.

Who it's for: Both: power devs (--json) and non-technical users (table).

When to use it: Checking which projects AK knows about.

What changes on disk: Read-only: ~/.agentkit/projects.json.

Usage

ak projects list [flags]

Examples

ak projects list          # human-readable table
ak projects list --json   # JSON array for scripting
ak projects list --quiet  # suppress header (plain list)

Flags

FlagDescription
-h, --helphelp for list
--jsonEmit machine-readable JSON (implies --no-interactive)
--no-interactiveDisable interactive prompts (CI-safe)
-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)
0success (empty registry is still exit 0)
1registry file unreadable (permissions, corrupt)
  • ak projects — Manage the global AK project registry

On this page