login command authenticates you with Anyware using a device code flow.
Usage
What Happens
- Device code request - CLI requests a device code from the server
- Browser opens - Verification URL opens in your default browser
- User confirmation - You confirm the device code in the browser
- OAuth flow - Complete authentication via WorkOS
- Token storage - Credentials saved locally
Example
Credentials Storage
After successful login, credentials are stored at:accessToken- JWT for API authenticationuserId- Your user IDdeviceId- Unique identifier for this deviceemail- Your email addressapiUrl- API endpointllmUrl- LLM proxy endpoint
Re-authentication
If your token expires, you’ll be prompted to login again. Simply run:Troubleshooting
Browser doesn’t open
If the browser doesn’t open automatically:- Copy the URL shown in the terminal
- Open it manually in your browser
- Complete the authentication flow
Login fails
If login fails:Verification URL expired
Device codes expire after a few minutes. If you see an expiration error, runanyware login again to get a fresh code.
See Also
- anyware logout - Log out
- anyware status - Check login status