Skip to content

reoclo login

reoclo login [options]

Runs the OAuth 2.0 device flow. The CLI prints a short device code and opens your browser to the Reoclo dashboard. Approve the request and the CLI persists access + refresh tokens for the named profile. Tokens are refreshed automatically; you do not need to log in again until consent is revoked.

There are no API keys to paste. Headless / CI use cases should set REOCLO_AUTOMATION_KEY (an Automation Key, rca_*) — see CI/CD automation.

FlagDefaultDescription
--profile <name>defaultName of the profile to write to.
--api <url>https://api.reoclo.comAPI base URL. Override for staging or self-hosted Reoclo.
--auth <url>https://auth.reoclo.comOAuth issuer base URL.
--streams <url>derived from --apiCloudflare-bypass host used for terminal WebSockets and large uploads.
--keyringoffRequire OS keyring storage. Fails if no keyring is available.
--no-keyringoffForce file storage even if a keyring is available.
--no-browseroffDo not auto-open the browser; print the URL only.

Default login:

Terminal window
reoclo login

Login with the staging tenant under a named profile:

Terminal window
reoclo login --profile staging --api https://api.staging.reoclo.com
reoclo profile use staging

Headless host (SSH / dev container) — print the URL instead of auto-opening:

Terminal window
reoclo login --no-browser

Force file storage on a machine where the keyring is disruptive (e.g., a shared workstation):

Terminal window
reoclo login --no-keyring

By default the CLI stores tokens in the OS keyring:

PlatformBackend
macOSKeychain
LinuxSecret Service (libsecret/gnome-keyring)
WindowsCredential Manager

If the keyring is unavailable (typical on headless Linux without dbus), the CLI falls back to a 0600-mode file at ~/.reoclo/config.json. Run reoclo keyring status to see which backend is in use.

Running reoclo login without an interactive terminal exits with:

OAuth device flow requires an interactive terminal. Use an Automation Key for CI/CD — see https://docs.reoclo.com/guides/api-keys/

For CI/CD, set REOCLO_AUTOMATION_KEY in the environment instead of running reoclo login.