Authentication
Authenticate with Wafer to access cloud features, workspaces, and the AI agent proxy. Authentication uses OAuth with GitHub or other providers.Quick Start
Commands
wafer login
Authenticate with Wafer services:~/.wafer/credentials.json.
wafer logout
Sign out and clear stored credentials:wafer whoami
Display comprehensive authentication status:| Option | Description |
|---|---|
--json | Output as JSON for scripting |
- Email address
- Environment (prod/staging/local) and API URL
- Token validity and expiration time
- Subscription tier (if logged in)
- Remaining credits (if logged in)
Provider Management
Manage additional authentication providers for services like cloud GPU providers.wafer auth providers status
Check authentication status for all providers:wafer auth providers login
Authenticate with a specific provider:github— GitHub OAuthrunpod— RunPod API keydigitalocean— DigitalOcean token
wafer auth providers logout
Sign out from a specific provider:API Keys
For the AI agent, you can use your own Anthropic API key instead of Wafer’s proxy:Credential Storage
Credentials are stored securely in:| Platform | Location |
|---|---|
| macOS | Keychain |
| Linux | Secret Service / encrypted file |
| Windows | Credential Manager |
Troubleshooting
Browser doesn't open
Browser doesn't open
The CLI will display a URL you can copy and paste into your browser if the automatic browser launch fails.
Authentication fails
Authentication fails
- Check internet connectivity
- Ensure popup blockers aren’t blocking the OAuth window
- Try logging out and back in:
API key not working
API key not working
Verify the key is set correctly:
Next Steps
CLI Configuration
Configure CLI settings.
Workspaces
Access cloud GPU workspaces.
AI Agent
Use the AI assistant.
CLI Overview
Learn CLI basics.