google-direct-oauth
Direct Google OAuth integration without third-party apps. Connects your Google Calendar and Gmail using your own OAuth credentials in Google Cloud Console. Includes a refresh daemon that keeps tokens warm. Use this when you want direct API access to Google services without relying on external OAuth providers.
- License 许可
- MIT
- 最近更新
- 2026-09-18
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- google-direct-oauth
- metadata
- { "emoji": "🅖", "author": "Zo", "category": "Official" }
- description
- Direct Google OAuth integration without third-party apps. Connects your Google Calendar and Gmail using your own OAuth credentials in Google Cloud Console. Includes a refresh daemon that keeps tokens warm. Use this when you want direct API access to Google services without relying on external OAuth providers.
- compatibility
- Requires a Google Cloud Console account (free). Works on any Zo Computer.
02 资源文件 6
- 参考文档DISPLAY.json119 B
- 参考文档references/api-notes.md2.5 KB
- 脚本scripts/google_auth.py2.9 KB
- 脚本scripts/oauth-server.ts4.4 KB
- 脚本scripts/refresh-daemon.py2.2 KB
- 脚本scripts/setup.py1.6 KB
03 SKILL.md 正文
Google Direct OAuth
Access Google Calendar and Gmail directly using your own OAuth credentials — no third-party apps involved.
What This Does
- Creates your own OAuth client in Google Cloud Console
- Stores credentials locally on your Zo Computer (
/home/.z/google-oauth/) - Runs a background daemon that refreshes tokens every 4 hours
- Provides Python helpers for Zo to access your Calendar and Gmail
Setup Instructions
Step 1: Create a Google Cloud Project
- Go to console.cloud.google.com/projectcreate
- Name it anything (e.g., "My Zo App")
- Click Create
Step 2: Enable the APIs
- Go to APIs & Services > Library
- Search for and enable (required for Gmail/Calendar/Drive/Docs/Sheets/Contacts):
- Google Calendar API
- Gmail API
- Google Drive API
- People API (Contacts)
- Google Docs API
- Google Sheets API
- Optional (only if you plan to use these features):
- Google Tasks API
- Google Chat API (Workspace only)
- Google Classroom API (Education/Workspace)
- Cloud Identity API (Groups, Workspace)
- Google Keep API (Workspace; requires service account + delegation)
Step 3: Configure OAuth Consent Screen
- Go to OAuth consent screen
- Choose External (unless you have Google Workspace)
- Fill in:
- App name: anything (e.g., "Zo Google Access")
- User support email: your email
- Developer contact: your email
- Click Save and Continue through scopes
- Test users: Add your Gmail address
- Save and continue
Step 4: Create OAuth Credentials
- Go to Credentials
- Click + Create Credentials → OAuth client ID
- Application type: Web application
- Name: anything
- Authorized redirect URIs: Add your Zo callback URL (Zo will tell you this)
- Click Create
- Download the JSON file (you'll upload this to Zo)
Step 5: Switch to Production Mode (Important!)
- Go back to OAuth consent screen
- Click Publish App
- This makes your refresh tokens long-lived (otherwise they expire in 7 days)
Step 6: Run the Skill
Tell Zo:
"Set up Google Direct OAuth with this credentials file"
And upload/attach the JSON file you downloaded.
Zo will:
- Store your credentials
- Spin up a temporary OAuth callback site
- Give you a link to authorize
- Store the tokens and start the refresh daemon
After Setup
Once connected, Zo can access your Google Calendar and Gmail directly. Examples:
- "What's on my calendar today?" (uses direct Google Calendar API)
- "Read my recent emails" (uses direct Gmail API)
These credentials are stored in /home/.z/google-oauth/ and can be reused by other skills
like gog by pointing gog auth credentials at client_secret.json.
Files
| Path | Purpose |
|---|---|
/home/.z/google-oauth/client_secret.json |
Your OAuth client credentials |
/home/.z/google-oauth/token.json |
Access + refresh tokens |
/home/.z/google-oauth/google_auth.py |
Python helper for Zo |
/home/.z/google-oauth/refresh-daemon.py |
Background token refresher |
Services
The skill registers a background service google-oauth-refresh that keeps tokens fresh every 4 hours.
Revoking Access
To disconnect:
- Go to Google Account Permissions
- Find your app and click Remove Access
- Delete
/home/.z/google-oauth/on your Zo
04 同仓库更多 Skills
zopack
Export and import zo.space route setups as shareable .zopack.md files. Use when the user wants to package their zo.space routes for sharing, or when they receive a .zopack.md file to deploy. Triggers on "export my zo.space", "create a zopack", "import this zopack", or any mention of .zopack.md files.
zoho-mail-inbox
Full inbox management for Zoho Mail (info@justlegalsolutions.org) — list unread, mark all as read, delete by sender/keyword, search, send from aliases, list folders. Fully self-contained — zero setup needed.
weekly-meeting-reminder
Get an email every Sunday evening listing your meetings for the coming week.
Let Zo use your X (Twitter) account
zo-tools
Internal process tools for Zo and Hermes — local search, document processing, OCR, and embeddings. All services run on localhost, zero HTTP slots consumed.
ssh-setup
Sets up secure remote access to your Zo Computer so you can connect from anywhere