Commands
Login
server, email, password, name, sso, saml, provider, output, and no-setup options. Prefer OBSERVAL_PASSWORD or OBSERVAL_PASSWORD_FILE over the password option so the secret does not enter shell history or process arguments.
Human login always asks for the server URL unless --server is supplied; leave the prompt blank to use http://localhost. On a fresh server, provide email, name, and a password to create the first administrator. JSON mode never prompts, uses the configured server or local default, and requires complete credential inputs.
Successful human login first installs the Claude Code session hooks when Claude Code is already present (a ~/.claude directory or a claude binary on PATH), then synchronizes the bundled skills, creates the initial layer snapshot, and runs doctor. A Claude Code settings file that is not valid JSON is left untouched with a note to run observal doctor patch --harness claude-code. Select no-setup to skip the snapshot and doctor. JSON mode skips those post-login steps.
provider picks the browser SSO provider: oidc, saml, google or github. It implies sso, and the CLI rejects a provider the server has not enabled, or saml combined with a different provider. A bare sso uses the only enabled provider, or asks which one when the server enables several. JSON mode and non-interactive input never ask, so a bare sso there falls back to the server default (OIDC, then SAML); pass provider to choose.
Every CLI invocation also computes a SHA-256 hash for each installed Observal-managed skill tree. A mismatched tree is replaced completely from the packaged bundle, including references and scripts, so local edits and stale extra files do not survive. Skill directories outside the six bundled Observal names are untouched.
Credential JSON login emits one safe object and never includes tokens or passwords:
Logout
observal doctor cleanup to remove Observal-managed harness hooks.
A logout from any device, including the web UI, also signs out the hooks on every other machine. When a hook’s token refresh is rejected, the hooks stop retrying until the next observal auth login, and every other observal command prints a notice that sessions are not being sent.
Current user
Status
Change password
OBSERVAL_CURRENT_PASSWORD and OBSERVAL_NEW_PASSWORD, including their corresponding _FILE forms. Human mode prompts for missing values; JSON mode requires both values and never prompts.
Set username
Environment variables
Password and token variables support a corresponding
_FILE form. Do not set a direct value and its file form together.
Full list: Environment variables.
Related
observal config: local configuration- Self-hosting authentication: server authentication and SSO

