Credential Types
Accounts
Your Cue backend login. Cue supports multiple accounts — useful for separating work and personal use. Used for:- WebSocket connection to Cue servers
- Syncing with your phone
- Remote agent control
- Activity feed, posts, and notifications
AI Keys
Direct API credentials for AI providers:- Anthropic — Claude models
- OpenAI — GPT models
- Gemini — Google AI models
provider field.
Storage
Credentials are stored in~/.cue/auth-profiles.json:
cue:<email_prefix> (e.g., cue:john for john@example.com).
Commands
Check Status
List All
Switch Account
Switch AI Key
Add Account
Log in with a different email to add another account:Remove Account
Add New Key
Reset All
Environment Variables
Environment variables take priority over stored credentials:Providers
Use--provider to choose how requests are routed:
| Provider | Flag | Description |
|---|---|---|
cue | --provider cue | Through Cue backend (default) |
anthropic | --provider anthropic | Direct to Anthropic |
openai | --provider openai | Direct to OpenAI |
gemini | --provider gemini | Direct to Gemini |
Resolution Order
For Accounts
- Environment variable
CUE_ACCESS_TOKEN - Environment default (
envDefaults[env].account) - Global default (
defaults.account)
For AI Keys
- Environment variables (
ANTHROPIC_API_KEY, etc.) - Account’s selected provider (
account.provider) - First matching key in
ai_keys
One-Command Usage
Use--profile to select an account or AI key for a single command without changing your default: