Skip to content
WireCatLabsPublic

Latest commit

 

History

184 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Google Calendar and Meet CLI for AI agents

gcal: Google Calendar and Meet CLI for AI agents

See your whole week across every Google account, and find a time with your colleagues without the back and forth. Ask your agent in Claude Code, Codex or any app that speaks MCP. A copy of your events stays on your computer, so search works even offline.

Docs · Install · Usage · Discord

npm CI npm downloads License: Apache 2.0

  • Nothing changes until you allow it. The first sign-in only reads, and nobody gets an email from Google unless you say so.
  • Meet calls kept past Google's 30 days. Who joined and the transcript, when Google made one, stay on your computer.
  • One search across your work. An event turns up next to the chat where you agreed on it, if you use the other WireCat tools.

What you get

  • Know your week at a glance. "What is on this week?" across your personal and work calendars, with clashes found.
  • Find a time and book it. "Find 30 minutes with Ana this week and add a Meet link" is enough.
  • Remember what was said. Past Meet calls with who joined and, in Google Workspace, the transcript.
  • Walk into a meeting prepared. One command gathers the event, who is coming and your latest messages with them.
  • Find any event. "When did we plan the roadmap review?" by words or by meaning, with no network.
You:    When can I meet Ana for 30 minutes this week?
Agent:  (runs gcal personal calendars busy person:ana@example.com --duration-minutes 30)
        You are both free on Tuesday 10:00-10:30, Wednesday 14:00-15:00 and Thursday 10:00-12:00.
You:    Book Tuesday, 30 minutes, "Example planning", with a Meet link. Do not email her.
Agent:  Draft: "Example planning", Tuesday 10:00-10:30, with ana@example.com, a new Meet link, no email sent.
        Create it?
You:    Yes.

Why gcal

  • Your data never leaves your computer. gcal talks only to Google. There is no WireCat server and no account with us. Your events are kept in a local database, and a meeting's passcode or PIN is never stored.
  • Read-only until you say so. The first sign-in only reads. Writing events and Meet each need their own grant, and a delete asks first in a terminal. Over MCP it runs without asking.
  • Search that goes all the way back. A first sync copies a year back and three months ahead, and each later sync asks Google only for what changed. Search reads that copy by words or by meaning.
  • Safe to give to an agent. You decide what an agent may do, per command. Text from an invitation reaches the agent as data, so it never takes it as an instruction.
  • Ready for any agent. A skill for Claude Code and Codex, an MCP server for Claude Desktop and Cursor.
  • Free and open source. Apache 2.0, on macOS, Linux and Windows.

How it compares with other calendar tools: the comparison.

Quick start

npm install -g @wirecat/gcal-cli
gcal skill install                  # the agent skill, for Claude Code, Codex and Gemini CLI
gcal personal session start         # sign in to Google in the browser, read-only
gcal personal sync                  # copy your calendars, then only what changed
gcal personal events list           # your events from today on, earliest first

It takes a few minutes. personal is a name you choose for this Google account. You can add work or any other later. Every gcal package carries WireCat's own Google app, so you need no Google Cloud project. Google may refuse the sign-in with it. Then make your own Google app and add --client-file ~/client_secret.json to session start.

You need Node.js 22.16+ or 24+, or Bun. Try it without installing: npx @wirecat/gcal-cli --help.

More: installation

Use it with your agent

Ask in plain words. The agent picks the commands.

"Use gcal. What is on my calendar this week, and what clashes?" "Use gcal. Prepare me for my next meeting." "Use gcal. What did we decide on the last call with Ana?"

  • Claude Code, Codex and other agents with a terminal run gcal themselves. gcal skill install teaches them how.
  • Claude Desktop, Cursor and other MCP apps connect to gcal personal mcp serve.
  • ChatGPT or Claude in the browser or on your phone reach it through your own HTTPS tunnel.
gcal personal mcp add claude-code --allow-writes   # or: codex
gcal personal mcp config                           # the entry for Claude Desktop, Cursor and others

More: agents · from the browser

What it can do

Your calendars

gcal personal events list --source all                    # every account's events in one list
gcal personal events list overlapping:true --source all   # meetings that clash, across accounts
gcal personal events show event:42                        # attendees, Drive files and history
gcal personal events prepare                              # what the store holds for your next meeting

Only the calendars you own sync at first. gcal personal calendars list shows the rest, and gcal personal calendars sync 3 adds calendar 3. A holiday calendar or any other .ics feed can be followed too.

Find a time and book it

gcal personal calendars busy person:ana@example.com --duration-minutes 30 --hours 10:00-16:00
gcal personal session start --grant write                 # sign in again to change events
gcal personal events create 3 --title "Sync" --start-time 2026-11-20T10:00 --end-time 2026-11-20T10:30 \
  --conference google-meet
gcal personal events respond event:42 accepted --notify

calendars busy shows a person's busy times only when their calendar is shared with you or your organisation.

Search

gcal personal search events roadmap planning                    # the local copy, best match first
gcal personal search events --backend server quarterly review   # Google's own search
gcal models download e5-small                                   # once, for search by meaning

Google Meet

gcal personal session start --grant meetings   # read access to your Meet calls
gcal personal meetings sync                    # keep the calls of the last 30 days
gcal personal meetings show 12                 # one call: who joined, its transcript and Drive files
gcal personal meetings transcript 12           # what was said, line by line

Google lists only the calls you organised. A call you joined opens by its id with meetings show. Google deletes a call's record 30 days after it ends, so sync at least every few weeks. Personal Google accounts get no transcripts.

More: use it · all commands

With your other sources

gcal keeps what it reads in the same local database as the other WireCat tools, such as Telegram and MAX. gcal personal search all finds a word in events, messages and notes at once. Mail has its own search in memo. gcal personal people link email:ana@example.com telegram:12345 records that two accounts are one person.

More: WireCat

How it works

  • Your own sign-in. gcal signs in to Google through OAuth, and the sign-in is kept in your system keyring. Where the keyring does not work, it uses a file only you can read and says so once.
  • A local copy. sync saves every page as it goes. A big first sync stops before its time limit and says partial, and the next sync goes on from there.
  • Polite to Google. A Meet rate limit stops the sync, keeps what it saved and says when to run it again.
  • Safe writes. --dry-run shows the permission a write needs and does nothing. --read-only refuses every write for one run.
  • Made for scripts. --json gives one JSON value for every command, and an error comes as JSON with a code to branch on.

More: settings and permissions

Settings and permissions

Each account (profile) has its own permissions: allow, ask, readonly or deny, for one command or a group.

gcal personal config set permissions.api readonly            # reads only, every method
gcal personal config set permissions.events.create ask       # ask before each new event

By default deleting an event asks, and mailing other attendees is denied.

More: settings and permissions

Security

No command, error, log or run record shows a token or the client secret. A meeting's passcode or PIN is never stored, and a join link is kept without its query string. Meet participant names and transcripts are marked as untrusted for an agent. An agent connected over MCP can share a calendar without asking you, so gcal personal config set permissions.api.calendar.acl deny stops that.

More: security · Report a vulnerability: SECURITY.md

When something goes wrong

gcal doctor                              # what is set up, no network
gcal personal session status --check     # does Google still accept the sign-in
gcal personal runs list                  # failed runs are kept

More: troubleshooting · Ask on Discord · Bugs go to this repository's issues.

Documentation

Everything is on wirecat.dev/en/docs/gcal. The same pages are in docs/.

Development

pnpm install && pnpm test

More: design · testing

Pull requests, bug reports and ideas go to issues.

Part of WireCat

gcal is one of the WireCat tools: open-source, local-first command-line tools that give AI agents your context from messengers, mail, calendars and documents. Each one works on its own.

License

Apache 2.0

Releases

Packages

Used by

Contributors

Languages