Authorization: Bearer <value>:
Sessions, secrets, and agents accept either. Operations that identify you
rather than your organization —
/whoami and everything under /tokens — accept
the user session only.
Sign in with a browser
albus login opens your browser, listens on 127.0.0.1:8484-8487 for the
redirect, and stores the session in $ALBUS_CONFIG_DIR/credentials.json, else
$XDG_CONFIG_HOME/albus/credentials.json, else ~/.config/albus/. It renews
itself as it expires.
When nothing should open a browser for you — a coding agent running the command,
or a shell where your browser is not the one Albus would launch — use
--no-browser. It prints the authorization URL and waits for you to open it:
127.0.0.1 on the machine running the CLI, so open
the URL in a browser on that machine. From a remote host, forward the ports
first (ssh -L 8484:localhost:8484 …).
This is how a coding agent signs you in: it prints the URL, you click it. See
Albus for coding agents.
Create an API key
An API key is organization-scoped, has no expiry, and is the right credential for scripts, CI, and agent harnesses. Sign in first, since minting a key identifies you.albus tokens delete <id>.
Use an API key
The variable names differ by client: the CLI reads
ALBUS_API_KEY, and the SDKs
read ALBUS_API_KEY_AUTH (or ALBUS_BEARER_AUTH for a user token) when you
construct the client with no explicit security. Export both, or pass the key
explicitly.ALBUS_API_KEY wins over a stored session, so an
agent or CI job never touches disk. albus whoami and albus tokens are the
exception: they use the stored session even when a key is exported, because a
key cannot identify you.
Point at another API
--base-url overrides ALBUS_BASE_URL, which overrides the default
https://albus.sh/api. Credentials are stored per base URL, so signing in to
one does not sign you in to another.