The CLI supports two authentication methods: browser-based OAuth login (for interactive use) and Personal Access Tokens (for CI/CD and automation).Documentation Index
Fetch the complete documentation index at: https://docs.trilo.chat/llms.txt
Use this file to discover all available pages before exploring further.
Browser Login (OAuth)
The simplest way to authenticate:- Open your browser to the Trilo authorization page
- Ask you to approve CLI access to your workspace
- Store your token securely in
~/.config/trilo/credentials.json - Auto-select your workspace (or prompt you to choose if you have multiple)
trilo login once.
To log out and clear stored credentials:
Personal Access Tokens (PAT)
For CI/CD pipelines, scripts, and automation, use a Personal Access Token:- Go to Settings > Tokens in the Trilo web app
- Create a new token with the scopes you need
- Set it as an environment variable:
Workspace Selection
After authenticating, set your default workspace:Environment Variables
| Variable | Description | Default |
|---|---|---|
TRILO_TOKEN | Override stored token | — |
TRILO_API_URL | API endpoint URL | https://api.trilo.chat |
TRILO_FRONTEND_URL | Frontend URL (for trilo login) | https://app.trilo.chat |
Configuration Files
All config is stored in~/.config/trilo/ (respects XDG_CONFIG_HOME):
| File | Contents | Permissions |
|---|---|---|
credentials.json | Access token, refresh token, API URL | 0600 (owner-only) |
config.json | Default workspace ID and name | 0600 (owner-only) |
