The CLI reads credentials from three sources, in priority order:Documentation Index
Fetch the complete documentation index at: https://rendobar.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
RENDOBAR_API_KEYenvironment variable- Saved API key (from
rb login --key) - Saved OAuth token (from
rb login)
Sign in (interactive)
http://127.0.0.1:14832/callback, and saves the tokens. Browser tab closes itself; the terminal prints your org and plan:
14832 is in use, login fails fast. Use --key instead.
Sign in with an API key
For SSH sessions, headless containers, or any environment without a browser:rb_. Get one from app.rendobar.com → Settings → API keys.
Use an environment variable (CI)
RENDOBAR_API_KEY beats any saved credential and writes nothing to disk:
Where credentials live
| Platform | Path |
|---|---|
| Linux | $XDG_CONFIG_HOME/rendobar/credentials.json (default ~/.config/rendobar/credentials.json) |
| macOS | ~/.config/rendobar/credentials.json |
| Windows | %APPDATA%\rendobar\credentials.json |
--key:
Token refresh
OAuth access tokens expire after 1 hour. The CLI refreshes 60 seconds before expiry on every API call, using the saved refresh token. You won’t see a re-login prompt unless the refresh token itself is revoked. If refresh fails (revoked, network,invalid_grant), the CLI exits 2 with the underlying error. Run rb login again.
Switch accounts
Sign out, sign back in:Sign out
Verify
/orgs/current and prints org, plan, balance. Useful as a CI sanity check before submitting jobs.