/software-of-you:google-setupfrom software-of-you
Authenticates with Google to grant Gmail and Calendar access. Checks existing accounts, runs OAuth flow, and verifies connection. Also supports re-authorization for additional scopes like Google Docs.
Ships in software-of-you. Installing the plugin adds it to Claude Code.
This sets up Gmail and Google Calendar access for Software of You. Credentials are built in — the user just needs to sign in. Supports multiple Google accounts.
Run:
python3 "${CLAUDE_PLUGIN_ROOT:-$(pwd)}/shared/google_auth.py" accounts
Parse the JSON response.
If accounts are connected: Show a table:
| Account | Label | Primary | Last Synced |
|---|---|---|---|
| [email protected] | betterstory.co | Yes | 2 hours ago |
| [email protected] | gmail.com | No | 2 hours ago |
Then ask: "Want to add another Google account, or is this all set?"
If the user says it's fine, suggest /gmail and /calendar. Stop here.
If no accounts connected: Check for a legacy token:
python3 "${CLAUDE_PLUGIN_ROOT:-$(pwd)}/shared/google_auth.py" status
If legacy token exists, it will auto-migrate on first accounts call. If truly no token exists, continue to Step 2.
Tell the user: "Opening Google sign-in in your browser — just sign in and click Allow."
Run:
python3 "${CLAUDE_PLUGIN_ROOT:-$(pwd)}/shared/google_auth.py" auth
This opens the browser, the user authenticates, and the token is saved automatically. The account email is auto-detected and registered in the database.
Run:
python3 "${CLAUDE_PLUGIN_ROOT:-$(pwd)}/shared/google_auth.py" accounts
Confirm: "Connected as [email]. Label: [domain]. Emails and calendar will sync from this account."
If this is the first account, it's automatically set as primary.
Then suggest:
/gmail — see your recent emails/calendar — see your upcoming events/google-setup again to add another Google account."/google-setup again. If it keeps failing, the OAuth app may need its consent screen published in Google Cloud Console.needs_reauth → the account's refresh token was revoked (password change, manual revocation, etc.). Run /google-setup to re-authenticate.If the user gets a 403 error when fetching Google Docs (e.g., from /sync-transcripts), they need to re-authorize with the new documents.readonly scope.
Tell the user: "I need read access to Google Docs for transcript fetching. Re-running the sign-in flow will add this permission."
Then run the auth flow with --force-consent to force the consent screen (needed to grant new scopes and get a fresh refresh token):
python3 "${CLAUDE_PLUGIN_ROOT:-$(pwd)}/shared/google_auth.py" auth --force-consent
To disconnect a specific account:
python3 "${CLAUDE_PLUGIN_ROOT:-$(pwd)}/shared/google_auth.py" revoke <email>
This revokes the OAuth token, removes the local token file, and marks the account as disconnected in the database. Emails and calendar events already synced are preserved.
If a user wants to use their own Google Cloud project instead of the built-in one, they can place a google_credentials.json file in ${CLAUDE_PLUGIN_ROOT:-$(pwd)}/config/. This overrides the embedded defaults.
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
55 commands in this plugin
/add-moduleAdd ModuleInstall a new module into Software of You/auto-syncImplementationManage automatic background syncing (Gmail, Calendar, Transcripts) at 8am/12pm/6pm **and** a weekday/backupExport, import, or check backup status for all data/build-allBuild All ViewsRebuild all HTML views — deterministic renderer for structure, Claude only for narrative synthesis/calendarView, create, and manage Google Calendar events/commitmentsView and manage commitments extracted from conversationsGenerated from the plugin's indexed repository (kmorebetter/better-software-of-you) — no native marketplace selected
npx claudepluginhub p/kmorebetter-software-of-youOther plugins' commands for the same job