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 diagnostics

Export redacted support diagnostics

Collect support-safe diagnostic data for AgentKit troubleshooting. Subcommands redact known secrets, email addresses, and local path prefixes before output.

Who it's for: Closed beta pilots and maintainers preparing issue attachments.

When to use it: Use when filing install, update, adapter, or runtime feedback that needs local health evidence.

What changes on disk: Parent command is read-only. Export writes only to stdout unless the shell redirects output.

Examples

ak diagnostics export --json > agentkit-diagnostics.json
ak diagnostics export --offline --json

Flags

FlagDescription
-h, --helphelp for diagnostics

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)

On this page