Google Calendar
| Env Var | Description | Default |
|---|---|---|
GOOGLE_CALENDAR_CLIENT_ID | OAuth2 client ID from Google Cloud Console | — |
GOOGLE_CALENDAR_CLIENT_SECRET | OAuth2 client secret | — |
Or in ~/.tota/tota.yaml:
calendar:
clientId: your-client-id
clientSecret: your-client-secret
Setup guide:
- Go to Google Cloud Console → APIs & Services → Credentials.
- Create an OAuth 2.0 Client ID (application type: Desktop app).
- Add the following to "Authorized redirect URIs" for that Client ID:
(Without this, Google shows a "browser not safe" / "not supported" error.)
http://localhost:8765/oauth2callback - Add the client ID and secret to
~/.tota/.envortota.yaml. - Run
tota setup calendarin your terminal — the wizard saves your credentials. - The next time you ask tota about your calendar, it automatically opens your browser to the Google consent screen. Click Allow — that's it. No code copying needed.
- Tokens are saved to
~/.tota/calendar-token.jsonand auto-refreshed.
Already set up? If you created the OAuth app before adding the redirect URI, go back to Credentials → edit the Client ID → add
http://localhost:8765/oauth2callback→ Save.
