Skip to main content

A command line for everything

GBrain Tools comes with a CLI: add a connector once in the browser, and the connector becomes a set of commands that you, a script or Claude Code can run from any terminal.

Get Tools, $19 a month

One price for one person, for every connector you add. Cancel any time.

Every connector as commands, with no key in the terminal

The terminal holds one GBrain key, and GBrain holds the rest.

  • In a terminal today: A key for every service, pasted into an env file

    With GBrain Tools: One sign-in per connector, held by GBrain. A command gets the answer, never the key.

  • In a terminal today: A different program, and different flags, for every service

    With GBrain Tools: Every connector as the same commands: gbrainio tool ls lists them, gbrainio tool help linear explains one, and -h works on all of them.

  • In a terminal today: A script in a loop can do anything its key allows

    With GBrain Tools: A level on each connector, set in the browser and never raised from the terminal, and a daily limit on every command.

  • In a terminal today: Nothing records what a script did

    With GBrain Tools: Every action on one record, refusals included. gbrainio activity ls reads it back.

  • In a terminal today: Every AI in the terminal needs the keys too

    With GBrain Tools: Claude Code and Codex run the same commands, at the terminal's levels, on the same record.

Install the GBrain command line and connect your terminal

One program for every connector. Connecting the terminal opens a page in the browser, where you choose what it may reach.

# AI agents: read gbrain.io/llms.txt
curl -sSL https://gbrainio.terminalwire.sh | bash
gbrainio terminal connect

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

Use any connector from the terminal

Gmail is the example. In a session recorded from the CLI on an example account, a terminal searches the unread mail, reads one message, drafts a reply and files a receipt.

brad@macbook · gbrainio
gbrainio tool gmail message search --unread --newer-than 2daccount: brad@example.comestimate: 3open_url: https://mail.google.com/mail/u/brad@example.com/#search/newer_than%3A2d%20is%3Aunreadpreview_is: Gmail's first ~200 characters of each message, not the whole message. Each row's `state` says whether it is a draft (written and never sent), a message this mailbox sent, or one it received. 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   state: received   thread_id: 198f2c1a9b7e4d02   to: brad@example.com2. 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 commission at ten and it always runs long. Jenny   received_at: 2026-08-26T21:20:41.000Z   state: received   thread_id: 198f4a7c02b31d55   to: brad@example.com3. 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   state: received   thread_id: 198dbb40c7a1f88e   to: brad@example.comNEXT    gbrainio tool gmail thread show <thread_id> -a <account>                                                         read whole conversation        gbrainio tool gmail message show <id> -a <account>   read whole messagegbrainio tool gmail message show 198f4a7c02b31d55account: brad@example.combody_mime_type: text/plaindate: Wed, 26 Aug 2026 14:20:41 -0700from: Jenny Okafor <jenny@example.com>id: 198f4a7c02b31d55open_url: https://mail.google.com/mail/u/brad@example.com/#all/198f4a7c02b31d55preview: Can we push Tuesday's review to noon? I have the planning commission at ten and it always runs long. Jennyreceived_at: 2026-08-26T21:20:41.000Zstate: receivedsubject: Tuesdaythread_id: 198f4a7c02b31d55to: brad@example.comCan we push Tuesday's review to noon? I have the planning commission at ten and it always runs long.Jennygbrainio tool gmail draft new --reply-to 198f4a7c02b31d55 --body "Noon works."account: brad@example.comdrafted: truefrom: brad@example.comid: r-8830219940512message_id: 198f5d0e7a2c4b19open_url: https://mail.google.com/mail/u/brad@example.com/#drafts?compose=198f5d0e7a2c4b19subject: Re: Tuesdaythread_id: 198f4a7c02b31d55to: Jenny Okafor <jenny@example.com>gbrainio tool gmail message label 198f2c1a9b7e4d02 --name Receipts --createaccount: brad@example.comid: 198f2c1a9b7e4d02label: Receiptslabelled: trueremoved: falsegbrainio tool gmail message move 198f2c1a9b7e4d02 --to archiveaccount: brad@example.comid: 198f2c1a9b7e4d02moved: archive
Three unread messages from the last two days, each with who sent it, when, and Gmail's preview of it. NEXT names the commands that read one whole.

Every Gmail command

The command line works with every connector GBrain offers

Each has a page of its own: what it does, how it connects, and its commands wherever they can be listed.

Every connector's command line

Get Tools and connect a terminal

Tools is $19 a month for one person. Install the CLI, connect a terminal, and choose which connectors it may reach and how far. Change any of it, or take all of it back, whenever you want.