The CLI uses the same authentication as the web app. When you runDocumentation Index
Fetch the complete documentation index at: https://docs.useagentos.com/llms.txt
Use this file to discover all available pages before exploring further.
agentos auth login, your browser opens to complete the OAuth flow, then the CLI stores the token locally.
Logging in
Where credentials live
Tokens are stored in~/.config/agentos/credentials.json with mode 0600 (only you can read it).
Check your status
See if you’re logged in:Log out
Environment variables
You can override authentication with environment variables. Useful for CI/CD or automated scripts.| Variable | Purpose |
|---|---|
AGENTOS_TOKEN | Use this token instead of the stored one |
AGENTOS_API_KEY | Authenticate with an API key |
AGENTOS_BACKEND_URL | Point to a different backend (default: https://api.useagentos.com) |
AGENTOS_WORKSPACE | Default workspace ID for commands that need one |
Command flags
Every command accepts these flags:| Flag | Purpose |
|---|---|
--token <token> | Override auth token for this command |
--api-key <key> | Use API key authentication |
--backend-url <url> | Override backend URL |
--workspace <id> | Set default workspace |
--output <format> | Output format: json (default) or pretty |
--output pretty flag makes JSON easier to read in a terminal:
