Login
Authenticate with Superserve Cloud using the device flow:How It Works
- The CLI opens your browser to the Superserve authentication page
- You approve the device authorization request
- The CLI receives an access token and stores it locally
- All subsequent commands use this token automatically
Example Output
Login with API Key
You can also authenticate using an API key (useful for CI/CD):API key for authentication. Get one from console.superserve.ai/settings/api-keys
Already Logged In
If you’re already authenticated,superserve login will detect this:
Logout
Log out and remove your stored credentials:Example Output
Credential Storage
Credentials are stored locally in:- macOS/Linux:
~/.config/superserve/auth.json - Windows:
%APPDATA%\superserve\auth.json
Authentication for CI/CD
For automated deployments, use an API key:- Create an API key at console.superserve.ai/settings/api-keys
- Store it as a secret in your CI environment (e.g.,
SUPERSERVE_API_KEY) - Authenticate in your CI script:
Troubleshooting
Authentication Timeout
The device flow times out after 5 minutes. If you see:superserve login again and approve the request more quickly.
Invalid API Key
If your API key is invalid:- Verify the key is correct
- Check it hasn’t been revoked at console.superserve.ai/settings/api-keys
- Create a new key if needed
Browser Doesn’t Open
If the browser doesn’t open automatically:- Copy the URL shown in the terminal
- Open it manually in your browser
- Enter the displayed code
Security Best Practices
- Use API keys for CI/CD instead of sharing user credentials
- Rotate API keys regularly (every 90 days recommended)
- Revoke unused keys at console.superserve.ai/settings/api-keys
- Never hardcode API keys in your source code