Authentication Methods
The CLI supports two auth methods:| Method | Use Case | Storage |
|---|---|---|
| Consuelo SDK OAuth | CRM integration, full platform | Browser login, auto-refresh |
| API Key | Automation, scripts | Config file or env var |
Common Issues
”Authentication failed” on auth:login
Cause: OAuth flow couldn’t complete
Solutions:
- Check browser isn’t blocking popups
- Clear browser cookies and retry
- Verify your internet connection
- Ensure no firewall blocking
consuelo.consuelohq.com
”Token expired”
Cause: OAuth token expired and couldn’t refresh Solutions:Tokens typically last 24 hours. The CLI auto-refreshes, but manual re-login
may be needed if you haven’t used the CLI in a while.
”Invalid API key”
Cause: API key is incorrect or revoked Solutions:- Verify the key is correct:
- Check key hasn’t been revoked in your workspace settings
- Generate a new API key in the dashboard
- Update config:
“Workspace not found”
Cause: Workspace ID is invalid or you don’t have access Solutions:- Verify workspace ID:
- List available workspaces (requires auth):
- Set correct workspace:
“Unauthorized” on API calls
Cause: Credentials missing or invalid Solutions:- Check auth status:
- Verify API key or OAuth is configured
- Try re-authenticating:
“Browser didn’t open”
Cause: CLI can’t open default browser Solutions:- Open the URL manually (shown in terminal output)
-
Set browser explicitly:
“Callback timeout”
Cause: OAuth callback didn’t complete within 5 minutes Solutions:- Complete the login flow faster
- Check browser isn’t slow or hanging
- Retry the login:
Two Config Systems
The CLI has two configuration systems that coexist:Legacy (CliConfig)
Used for Twilio, AI keys, basic settings.Modern (ConsuloConfig)
Used for full config structure. If you have issues:Switch Auth Methods
From OAuth to API Key
From API Key to OAuth
Environment Variables
Environment variables override config:Clear All Auth
Start fresh:Check Auth Status
Contact Support
If issues persist:- Run with verbose output:
- Check logs:
- Contact support with:
- Error message
- Verbose output
- Config (redact sensitive values)
Next Steps
- Getting Started — Set up authentication
- Configuration — Manage config files
- CLI FAQ — More troubleshooting