gog command-line tool. Once you authenticate, Max can read your inbox, check your calendar, search Drive, manage contacts, complete tasks, and read or update Sheets — all from natural language.
Google services integration is entirely optional. Max works without it.
What you can do after setup
Gmail
Search, read, send, reply to, and draft emails. Manage labels and threads.
Calendar
List events, create meetings, check free/busy time, RSVP to invitations.
Drive
Search and list files, download or upload documents, share files, create folders.
Contacts
Search, list, and create Google Contacts.
Tasks
List task lists, add tasks, and mark tasks as done.
Sheets
Read cell ranges and update values in Google Sheets.
Setup
Create Google OAuth credentials
gog authenticates using an OAuth 2.0 Desktop app credential you create in Google Cloud:- Go to https://console.cloud.google.com/apis/credentials.
- Create a project if you don’t have one.
- Enable the APIs you want to use (Gmail API, Google Calendar API, Google Drive API, etc.).
- Configure the OAuth consent screen (External, your own email as a test user).
- Create an OAuth client — choose type Desktop app.
- Download the JSON credentials file.
gog can find it:Authenticate with your Google account
Run the auth command with the email address you want to grant access:This opens a browser window for the standard Google OAuth consent flow. After you approve,
gog stores a refresh token locally — you won’t need to re-authenticate.Check the auth status at any time:Start Max
Max automatically loads the bundled gogcli skill when it starts. No extra configuration is needed:The skill is read from the package’s bundled
skills/gogcli/ directory and injected into Max’s system prompt at session creation time.What the gogcli skill teaches Max
The skill is aSKILL.md file bundled with Max at skills/gogcli/SKILL.md. It tells Max:
- When to use it — whenever you ask about email, calendar, Drive, contacts, or any Google service.
- Required flags —
--jsonfor parseable output,--no-inputto prevent the CLI from hanging,-a emailto target a specific account. - Command syntax — the exact
gogsubcommands for every supported operation (Gmail search, calendar event creation, Drive file upload, etc.). - Error handling — how to detect when
gogis not installed or not authenticated, and how to guide you through setup.
gog commands based on what you ask.
Key commands Max uses
Multiple Google accounts
If you have more than one Google account authenticated, use the-a flag to specify which one:
Troubleshooting
Max says gog is not installed
Max says gog is not installed
Run
gog --version to confirm the CLI is on your PATH. If the command is not found, reinstall:Max says not authenticated
Max says not authenticated
Run
gog auth status to check which accounts are active. If no accounts are listed, re-authenticate:Permission denied for a specific API
Permission denied for a specific API
You may not have enabled the relevant Google API in your Cloud project. Go to the API library in Google Cloud Console and enable the API (Gmail API, Google Calendar API, etc.), then re-authenticate.
Credentials file not found
Credentials file not found
Re-run the credentials command, pointing to your downloaded JSON file: