Tools & services

gogcli

People & organizations
OpenClaw

gogcli is an open source command line tool for operating Gmail, Google Calendar, Drive, and Tasks from a terminal.

Google services from the command line

gogcli is an open source CLI tool for working with Gmail, Google Calendar, Google Drive, and Google Tasks from a terminal. The command you actually type is gog. Instead of clicking through each service, you search, retrieve, and create with typed commands.

It is not an official Google application but an external tool built on Google’s APIs. Handling several services with the same syntax, and returning results as JSON, makes it a good fit for scripts and for AI agents.

What it does

  • Search Gmail and work with messages and attachments
  • Check and create calendar events
  • Find and retrieve files in Google Drive
  • Work with data in Sheets and Docs
  • Add and update items in Google Tasks

You can automate something like assembling today’s schedule and outstanding tasks into a morning note. Calling gogcli from an AI such as Codex connects a request in plain language to concrete operations on Google services.

Setup is the hurdle

Installing it does not grant access to your data. You enable the relevant APIs in Google Cloud, create OAuth credentials, and authorize the permissions from your own account — more initial setup than a typical web service.

Once authorized it keeps working, but Gmail and Drive hold sensitive material. Starting with the minimum permissions, such as read-only, is the safer approach.

Who it suits

People automating routine work that spans Google services, and people who want an AI agent to work with Google data. If you only occasionally add a calendar event, the official interface is simpler.

gogcli is under active development and gains features quickly, so commands and supported services may change. Check the repository README and current help before adopting it.

Related terms

Sources and review information

Last reviewed July 17, 2026

Back to the AI Glossary

Search this site