Skip to main content

Launch a GBrain in the cloud from your terminal

One command launches a GBrain hosted on gbrain.io. Fill it with the notes on your computer, connect Claude and your other AIs to it, and run every app you use from the same command line, or let Claude Code do all of it for you.

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

Paste it into Claude Code or Codex, and it sets you up from gbrain.io/llms.txt.

Launch a cloud GBrain, fill it with your notes and connect your AIs

You, or Claude Code working for you, run gbrainio workspace new. It opens the page where a person picks the plan and pays. Then put your notes in it and add it to the AIs you use.

brad@macbook · gbrainio
gbrainio workspace newOpening https://gbrain.io/users/9/workspaces/newgbrainio workspace show -w 312Acme planning desk  Status        Not set up  ID            312  Organization  Acme RealtyThis terminal  Memory     Read  Schedules  Read  Tools      All  Shell      On for youNEXT    gbrainio workspace shell -w 312 -- gbrain list                                         Run a command in it        gbrainio tool ls -w 312          The tools you can run in it        gbrainio workspace open -w 312   Open it in your browser
Opens the setup page in the browser. Nothing is made until a person picks the plan and pays there.

Put the notes on your computer into your GBrain

# Every Markdown file in ~/notes, a page each
for f in ~/notes/*.md; do
  gbrainio workspace shell -- gbrain put "notes/$(basename "$f" .md)" < "$f"
done

Add your GBrain to Claude Code, Codex or any other AI

# In Claude Code
claude mcp add --transport http --scope user gbrain https://gbrain.io/mcp

# In Codex
codex mcp add gbrain --url https://gbrain.io/mcp

gbrain is the open-source GBrain's own command, run where that GBrain lives. gbrainio launches and runs GBrains hosted on gbrain.io from any terminal, and gbrainio workspace shell runs gbrain inside one.

One command line for Gmail, Stripe and every other app you connect

With GBrain Tools you connect each account once, and every app is a command in gbrainio, even the apps with no command line of their own. No CLI to install per app, and no keys in your shell.

brad@macbook · gbrainio
gbrainio tool lsThis terminal is connected as brad@example.com.Hex  captain       Company bios and investor searches  crustdata     LinkedIn profile enrichment by profile URL  fax           Send a fax to any US or Canadian number  happenstance  Career profiles and people research  perplexity    Ask the web a question and get a sourced answer  x             Search X posts, full archiveYour 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 captain     What captain can dogbrainio 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 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>
Every app connected to GBrain Tools is a command, one line each.

Script every app in Bash, run it on a schedule, or hand it to Claude Code

# By hand
gbrainio tool gmail message search --unread --newer-than 1d

# In a script: JSON, for jq or anything else
gbrainio tool gmail message search --unread --newer-than 1d -f json | jq .

# Every morning at 8, on your GBrain's own schedule
gbrainio schedule new inbox --cron "0 8 * * *" --time-zone UTC --message "Brief me"

# Or ask Claude Code, which runs the same commands
claude "Draft a reply to every unread email that asks me for a time"

Apps with commands in the GBrain command line

Find the commands for your apps

The GBrain command line works the same for you, your scripts and Claude Code

The same commands a person types are the ones a script runs and Claude Code or Codex calls.

Answers a script can read

Text on a terminal, JSON when piped, and -f chooses. gbrainio help formats and gbrainio help exit-codes say what each means.

Every answer names the next command

A list ends with NEXT, the commands that go further, and a refusal with FIX, the one that sets it right, so an AI in a terminal finds its own way.

A terminal never raises its own access

Each terminal reads the levels a person set in the browser. A refused command says so and hands over the link, and only a person can widen it.

Every call on one record

gbrainio activity ls reads back what each terminal did, refusals included.

Install the GBrain command line and connect your terminal

One line installs the CLI, and gbrainio terminal connect opens the page where you choose what it may reach. Change any of it, or take all of it back, whenever you want.

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