akua whoami
Shipped
Display current identity, logged-in registries, and scopes.
akua whoami [flags]
JSON output
{
"identity": "user@example.com",
"registries": [
{"url": "ghcr.io", "user": "robin", "expires_at": null},
{"url": "akua.dev", "user": "robin", "tier": "team", "expires_at": "2026-05-20"}
],
"scopes": ["packages:write", "policy:read"],
"agent_context": {
"detected": true,
"agent": "claude-code",
"source_env": "CLAUDECODE"
}
}
agent_context is present when akua auto-detected an agent session (see cli-contract.md §1.5). When no agent is detected, the field is {"detected": false}.