google-oauth

Authenticate Google accounts for AI agents to access Gmail, Calendar, Drive, and Sheets.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/ticruz38/skills --skill google-oauth-ticruz38
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-oauth
Source: https://github.com/ticruz38/skills/tree/main/examples/skills/google-oauth
Command: npx skills add https://github.com/ticruz38/skills --skill google-oauth-ticruz38

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

AI agents often need secure access to Google services (Gmail, Calendar, Drive, Sheets) without exposing user credentials, enabling seamless automation.

Core Features & Use Cases

  • OAuth2 authentication flow to connect Gmail, Calendar, Drive, and Sheets for agents.
  • Per-chat token storage, status reporting, and secure token management.
  • Script-based wrappers to perform Gmail, Calendar, and Drive operations through simple commands.

Quick Start

Prompt the agent to run the authorization flow for Gmail, Calendar, Drive, and Sheets, then validate the connection.

Frequently Asked Questions about google-oauth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Google OAuth2 authentication for an AI agent to access Gmail and Calendar?

You can use this Skill to authenticate Google accounts securely for AI agents. It enables chat-based workflows to obtain user consent, store tokens securely, and perform Gmail, Calendar, Drive, and Sheets tasks via script.

What do I need to connect an AI agent to Google Drive using OAuth2?

To connect an AI agent to Google Drive using OAuth2, you need Node.js version 14 or higher, Python helpers for token exchange, and configured environment variables for callback URLs to complete the secure authorization flow.

Can I manage secure token storage for Google Workspace automation within chat workflows?

Yes, you can manage secure token storage for Google Workspace automation within chat workflows. The Skill provides per-chat token storage and status reporting to securely handle credentials for Gmail, Calendar, Drive, and Sheets operations.

Does this Google authentication approach work with both Gmail and Google Sheets?

Yes, this Google authentication approach works with both Gmail and Google Sheets. It uses an OAuth2 authentication flow to connect agents to Gmail, Calendar, Drive, and Sheets, allowing script-based wrappers to perform operations across these services.

Why does my AI agent need secure access to Google services like Gmail and Drive?

An AI agent needs secure access to Google services like Gmail and Drive to enable seamless automation without exposing user credentials. The OAuth2 flow ensures permissions are granted safely, allowing agents to perform tasks via script.