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.
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)
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.