Authenticate with Google using OAuth device code flow for limited-input devices. Access Google APIs for Gmail, Calendar, Drive, and more.
🔐 Authentication Methods
device_code
device: https://oauth2.googleapis.com/device/code
token: https://oauth2.googleapis.com/token
Scope: https://www.googleapis.com/auth/gmail.readonly https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/drive.readonly
👤 Identity
Project: Use your Google Cloud project ID
🌐 APIs
gmail
Base URL: https://gmail.googleapis.com/gmail/v1
Auth Header: Authorization: Bearer {token}
Methods: device_code
calendar
Base URL: https://www.googleapis.com/calendar/v3
Auth Header: Authorization: Bearer {token}
Methods: device_code
drive
Base URL: https://www.googleapis.com/drive/v3
Auth Header: Authorization: Bearer {token}
Methods: device_code
people
Base URL: https://people.googleapis.com/v1
Auth Header: Authorization: Bearer {token}
Methods: device_code
📦 Public Clients
These clients are bundled with the formula. Schlussel auto-selects the first available public client and its supported method. Just run the command below.
google-cli
Client ID: YOUR_CLIENT_ID
Methods: device_code
$ schlussel run google