Skip to main content
All commands support --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:
Sensitive values — client_secret, API keys — are never accepted as command-line arguments. Authsome collects them through the secure browser bridge or, on headless machines, through masked terminal input.

run

Runs <command> behind a local HTTP proxy that injects auth headers into matched outbound requests. The child process never sees the raw secret.
How it works:
  1. Starts a local proxy on an ephemeral port.
  2. Launches the child with HTTP_PROXY / HTTPS_PROXY set.
  3. Sets placeholder env vars (e.g. OPENAI_API_KEY=authsome-proxy-managed) so SDKs initialize.
  4. Intercepts matched requests and injects the real auth headers.
  5. Stops the proxy on child exit.
  6. Returns the child’s exit code.
See Proxy injection for the routing contract.

connections set-default

Sets the default connection for a provider. The proxy and library calls use the default unless an explicit --connection flag is passed.

agent

Agents are backed by Ed25519 signing keys at ~/.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.
See Custom providers for full templates.

log

Reads from ~/.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.