Skip to main content

Install the GBrain command line

Gmail has no real command line, and neither do most of the accounts you work in. GBrain gives them one, so Claude Code can use them for you or your team.

# Install the CLI
curl -sSL https://gbrainio.terminalwire.sh | bash

# Set the terminal up and connect it
gbrainio terminal connect

The installer is a shell script for macOS and Linux. Read it before you run it.

Your accounts, as commands

Connect an account once. Every command can reach it, as far as you allow.

Gmail, start to finish

Connect, read, get refused, allow it, then file and reply.

brad@macbook · gbrainio
gbrainio terminal connectOpening https://gbrain.io/terminals/newNOTE    Choose the workspaces this terminal reaches there. The page ends with a        `gbrainio terminal connect gbp_…` command: run it here.gbrainio terminal connect gbp_XCP.z9bsgn59D34CLBfLkCONNECTED  Brad's MacBookThis terminal is connected to 1 workspace, Hex, and 1 of your tools.Terminal 42  Name        Brad's MacBook  Belongs to  Brad Gessler <brad@example.com>  Connected   Oct 8, 2026, 10:54 PM UTC  Last used   Oct 8, 2026, 10:54 PM UTC  Expires     Nov 7, 2026, 10:54 PM UTCWorkspaces this terminal reaches  ID  NAME  MEMORY  SCHEDULES  TOOLS  SHELL  2   Hex   Read    Read       All    On  Memory and Schedules  Read looks, Full also changes.  Tools                 Mine is your own tools, All adds your team's.Tools this terminal can use  TOOL   ACCOUNT           LEVEL  gmail  brad@example.com  ReadNEXT    gbrainio terminal open     Change what this terminal reaches        gbrainio tool show gmail   What a level allows        gbrainio tool show         Everything on your accountgbrainio tool lsYour tools  exa         Search the web  fax         Send a fax to any US or Canadian number  firecrawl   Read any page as clean text  gmail       Search, read, file and draft mail  perplexity  Ask the web a question and get a sourced answerNEXT    gbrainio tool ls --all         See everything, installed or not        gbrainio tool search <words>   Find one by name or what it does        gbrainio tool help exa         What exa can dogbrainio tool gmail message search --unread --newer-than 2daccount: brad@example.compreview_is: Gmail's first ~200 characters of each message, not the whole message. read_whole_message reads one; read_whole_conversation reads its thread.query: newer_than:2d is:unread1. Your invoice from Rocketship, LLC   account: brad@example.com   date: Thu, 27 Aug 2026 09:12:04 -0700   from: Stripe <receipts@stripe.com>   id: 198f2c1a9b7e4d02   preview: Invoice A41C-0092 for $240.00 was paid automatically.   received_at: 2026-08-27T16:12:04.000Z   thread_id: 198f2c1a9b7e4d02   to: brad@example.com2. Your August payouts are on the way   account: brad@example.com   date: Wed, 26 Aug 2026 06:02:11 -0700   from: Stripe <notifications@stripe.com>   id: 198dbb40c7a1f88e   preview: $4,182.55 will arrive in your account ending 4021 on Tuesday.   received_at: 2026-08-26T13:02:11.000Z   thread_id: 198dbb40c7a1f88e   to: brad@example.com3. Tuesday   account: brad@example.com   date: Wed, 26 Aug 2026 14:20:41 -0700   from: Jenny Okafor <jenny@example.com>   id: 198f4a7c02b31d55   preview: Can we push Tuesday's review to noon? I have the planning...   received_at: 2026-08-26T21:20:41.000Z   thread_id: 198f4a7c02b31d55   to: brad@example.comgbrainio tool gmail message label 198f2c1a9b7e4d02 --name Receipts --createERROR   Needs Gmail at Manage        File a message needs Gmail at Manage on this terminal.FIX     gbrainio terminal open   Raise Gmail to Manage for this terminal        gbrainio tool gmail message label 198f2c1a9b7e4d02 --name Receipts --create                                 Then run it again        https://gbrain.io/users/7/clients/42/permissionsgbrainio terminal openOpening https://gbrain.io/users/7/clients/42/permissionsNOTE    Workspaces and tools turn on and off there, at once.gbrainio tool gmail message label 198f2c1a9b7e4d02 --name Receipts --createid: 198f2c1a9b7e4d02label: Receiptslabelled: trueremoved: falsegbrainio tool gmail message move 198f2c1a9b7e4d02 --to archiveid: 198f2c1a9b7e4d02moved: archivegbrainio tool gmail draft new --reply-to 198f4a7c02b31d55 --body "Noon works."drafted: trueid: r-8830219940512subject: Re: Tuesdaythread_id: 198f4a7c02b31d55to: jenny@example.com
Prints a link and opens it: the page where you choose what this terminal reaches. Connect terminal there shows the command that connects it.

Search the live web

Same terminal, same permissions, pointed at the open web.

brad@macbook · gbrainio
gbrainio tool exa search "SF planning"1. Planning Commission · Agendas   https://sfplanning.org/hearings2. Supervisors · Land Use Committee   https://sfbos.org/land-use-committee
Two results off the live web, each a title and a link. Like every other command, it lands on the activity list.

No password leaves GBrain

The terminal, Claude Code and Cursor all reach your accounts without a copy of the password.

See every AI that is connected, and what it reaches

One page lists them all. Nothing is copied into any of them, so switching one off here switches it off everywhere.

Brad's MacBook
On you@yourteam.com Nov 10, 2026
Claude Code
On you@yourteam.com Nov 3, 2026
Cursor
Not set up Nothing yet Nov 12, 2026
Studio Mac Mini
Off you@yourteam.com Oct 15, 2026
Four connections on one account, with the address each one reaches and when its access runs out. Cursor has not been set up yet, so it reaches nothing, and the Mac Mini is switched off.

Choose what each one may do, account by account

The password never leaves GBrain's servers. What you set here is how far each AI may go.

Gmail

Calendar

Drive

this account has not granted it

Needs access · Grant

Search the web

Two accounts on one AI's permission. Gmail is set to Manage, so it can file mail as well as read it, while the calendar stops at Read. Drive is the third thing a row can say: this Google account was connected without it, so it offers a Grant rather than a level. Web search has its own card, since it belongs to no account.

Set how long access lasts, and see everything the AI did

Access ends on the date you pick, whether or not you remember it. Until then, every call an AI makes is on one list.

Name this connection and choose how long it stays.

So you can tell it apart later, and know what to revoke.

Expires

It logs itself out after this, so nothing stays signed in forever. You can give it more time later.

The screen you get when you connect something new. You name it and pick how long it may stay connected, before it has reached anything at all.
Give it a day, or a year
Or a week, or a month. Access ends on its own, so a short-lived one never needs undoing.
See what it actually did
Every call is on one list: which AI made it, what it touched, what it cost. Including the ones that were refused.
An AI cannot run up a bill
Each one has a daily limit on how many calls it can make. When it is reached the calls stop, and only a person can raise it.

Tool calls

118 of 500 today

118 of 500 118/500
One afternoon of activity: every call, which connection made it, what it touched. The refused one sits among the ones that worked and says why it stopped. Underneath, today's calls against the daily limit.

Connect Gmail in about two minutes

Install GBrain, connect the terminal, and choose what each AI may reach. You can turn any of it off whenever you want.