Skip to main content

Tools

Gmail and Calendar from the command line, for people and coding agents

Gmail, Calendar and web search from a terminal. Claude Code and Codex run the same commands.

brad@macbook · gbrainio
gbrainio tool gmail search --unread --newer-than 2d1. Your invoice from Rocketship, LLC   from: Stripe <receipts@stripe.com>   snippet: Invoice A41C-0092 for $240.00 was paid automatically.2. Valencia Street packet posted   from: SF Planning <notices@sfplanning.org>   snippet: The August packet is available. 214 pages.gbrainio tool gcal ls --max-results 31. Standup                       09:302. Review with Jenny             12:003. Planning Commission hearing   13:00gbrainio tool gmail draft --reply-to 198f4a7c02b31d55 --body "Noon works."draft saved: r-7f21a0 (reply to "Tuesday", not sent)
Two days of unread mail, from the terminal or from an AI running the same command.

What it does

Gmail, Calendar and the web, as commands

Search mail, list the day, draft a reply, search the web: each command is one call on a connected account, at the level that account allows.

Claude Code and Codex run the same commands

An AI coding agent in a terminal calls exactly what a person would. Same permissions, same daily limits, same line in the log.

Sign in once; the keys stay on gbrain

Login is a link approved in a browser. The terminal holds a gbrain credential; the Gmail and Calendar keys never leave the server.

More in Tools

The same tools in every AI that speaks MCP

One address, pasted once into ChatGPT, Claude, Claude Code or Cursor. Each gets the same accounts and rules.

See how it works

Passwords and API keys never reach the AI

Connected accounts are held by gbrain. An AI gets the result of a call, never the key.

See how it works

A permission level for every application an AI can reach

Gmail has four levels, Calendar two, web search is on or off. Set per application; every AI follows.

See how it works

A log of every call an AI makes with connected accounts

One row per call. Who asked, which AI, which account, what it did, whether it was allowed.

See how it works

A kill switch for every AI, and an expiry date

Turn an AI off and its next call is refused. Every AI's access also has an end date.

See how it works

Spin up a gbrain

A workspace of your own in about a minute, with this in it.