CLI Troubleshooting
Common CLI issues and solutions.
"No API key found"
Error: No API key found. Run `cueapi login` first.
Fix: Run cueapi login to authenticate, or set CUEAPI_API_KEY environment variable.
"Invalid or missing API key" (401)
Your API key may have been regenerated or is incorrect.
Fix:
- Run
cueapi whoamito check - If it fails, run
cueapi loginto re-authenticate
"Cue limit exceeded" (403)
Error: You have reached your plan's cue limit (10)
Fix: Delete unused cues or upgrade your plan:
bash
cueapi delete cue_old_one
# or
cueapi upgradeBrowser doesn't open during login
If the browser doesn't open automatically:
- Copy the URL shown in the terminal
- Open it manually in your browser
- Continue the verification flow
"Connection refused" or timeouts
Fix:
- Check your internet connection
- Verify the API is up:
curl https://api.cueapi.ai/status - Check if you're behind a proxy/firewall
Python version issues
CueAPI CLI requires Python 3.9+.
bash
python3 --versionIf you're on an older version, upgrade Python or use a virtual environment.
Permission denied on credentials file
The credentials file at ~/.config/cueapi/credentials.json should have 600 permissions:
bash
chmod 600 ~/.config/cueapi/credentials.jsonUsing behind a proxy
Set the HTTPS_PROXY environment variable:
bash
export HTTPS_PROXY=http://proxy.company.com:8080
cueapi list