--json for machine-readable output, --quiet to suppress non-essential output, and --no-color to disable ANSI colors.
Commands at a glance
Global flags
Command details
onboard / whoami / doctor
onboard is idempotent — safe to re-run. It creates a local identity when needed, completes daemon registration and claim, then imports API keys discovered in .env files and the process environment. OAuth providers still require authsome login <provider>.
When --base-url is passed, the URL is persisted in ~/.authsome/client/config.json as daemon_base_url and used automatically on subsequent commands (unless overridden by AUTHSOME_BASE_URL).
onboard does not support --quiet. Use --json for headless contexts.
doctor runs six checks and exits 0 when all pass:
provider list / provider inspect / connections inspect
--quiet suppresses the summary header (Providers: N total, N connected) but always prints the table.
login
Examples:
run
<command> behind a local HTTP proxy that injects auth headers into matched outbound requests. The child process never sees the raw secret.
- Starts a local proxy on an ephemeral port.
- Launches the child with
HTTP_PROXY/HTTPS_PROXYset. - Sets placeholder env vars (e.g.
OPENAI_API_KEY=authsome-proxy-managed) so SDKs initialize. - Intercepts matched requests and injects the real auth headers.
- Stops the proxy on child exit.
- Returns the child’s exit code.
connections set-default
--connection flag is passed.
agent
~/.authsome/identities/. Credentials are scoped to the active vault, not to the agent key.
daemon
logout / provider revoke / provider remove
provider register
Validates the JSON, copies it into
~/.authsome/providers/, and confirms the new provider appears in authsome provider list.
log
~/.authsome/server/logs/authsome.log (the server-side structured audit log). Each entry records actions like login, logout, revoke, and onboard, with fields: timestamp, event, provider, connection, identity, status.
The --raw flag switches to the client-side debug log at ~/.authsome/client/logs/authsome.log (loguru format, DEBUG level).
Exit codes
Note: Click argument validation errors (missing required argument, unknown option) also produce exit code
2 via Click’s own mechanism.
When --json is passed and a command fails, the structured output includes "error" and "message" keys.