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 login
Log in to AgentKit
Authenticate with agentkit-web using a license key device activation, email OTP, or a user API key.
Who it's for: Users installing paid remote kits.
When to use it: Before installing or updating licensed remote kits.
What changes on disk: Writes a CLI registry session for email/API-key login or an App device session for license-key activation to ~/.agentkit/auth/session.json. Raw credentials are not persisted.
Usage
ak login [flags]Examples
ak login --license-key ak_license_... --no-interactive
ak login --email you@example.com
ak login --api-key ak_live_... --no-interactiveFlags
| Flag | Description |
|---|---|
--api-key string | AgentKit user API key from your web profile |
--device-name string | Device name for --license-key activation (default: hostname) |
--email string | Email address for OTP login |
-h, --help | help for login |
--json | Emit machine-readable JSON (implies --no-interactive) |
--license-key string | AgentKit license key for device activation |
--no-interactive | Disable interactive prompts (CI-safe) |
-q, --quiet | Suppress non-error output on stderr |
--registry-url string | AgentKit registry base URL (default: $AGENTKIT_REGISTRY_URL, then dev/staging https://staging.agentkit.best or release https://agentkit.best) |
-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— AgentKit CLI