Authentication
Authenticate the Monito CLI with your account.
Browser Login
The primary way to authenticate:
This opens your browser for OAuth authentication (email/password, GitHub, or Google). After signing in, your token is stored in the local config file.
To authenticate against a custom host:
Environment Variable
For CI/CD and AI agents, set the MONITO_TOKEN environment variable:
The env var takes priority over the stored config token.
You can retrieve your token for scripting:
This prints the raw token to stdout (no newline), making it easy to pipe:
Custom Host
To use a self-hosted Monito instance, set the host via environment variable:
Or set it in the config:
Check Status
Shows whether you're authenticated, the user email, and the current host. Supports --json for structured output.
Logout
Removes the stored token and user info from the local config file.
Config File
The config file is stored at ~/.config/monito/config.json (or $XDG_CONFIG_HOME/monito/config.json). File permissions are set to 0600 (owner read/write only).
To find the config file path: