# GBrain Cloud > GBrain is an AI memory: a GBrain in the cloud for a team, with one memory, skills and work that runs on a schedule, that Claude, ChatGPT, Claude Code, Codex and the team's other AIs all read from and add to. There are two ways in: `gbrainio`, GBrain Cloud's command line, and MCP. Choose one, as below. ## Choose one way in, and only one - **You can run shell commands on the person's computer** (Claude Code, Codex, Cursor's agent, Claude desktop's Code tab): use the command line, steps 1 to 6. Do not also add GBrain as an MCP server; the command line is how you reach the memory. - **You can't run commands** (ChatGPT, or Claude in a chat on the web, desktop or phone): use MCP, the last section. Do not install the command line. They differ. The command line reaches every workspace the person turns on for it, launches new workspaces, runs commands in a workspace (`workspace shell`) and manages its schedules; it reads memory with `memory` and writes it through `workspace shell -- gbrain put`. An MCP connection reaches one workspace (more can be linked to it on that workspace's page), and reads and writes its memory with its own tools. Neither takes a password, a connector's sign-in or a payment: those happen in the person's browser. ## Before you start - This is GBrain Cloud: GBrain runs each workspace and its memory. The open-source gbrain at github.com/garrytan/gbrain is for running it on your own machine; its README and docs (installing gbrain, `gbrain init`, `gbrain serve`) do not apply here. - Signing in, paying and granting access happen in the person's browser, never in the terminal. When a command opens a page, tell the person what they will do there, and wait for them to tell you they are done. - A workspace is $199 a month, with $100 of AI credit a month. Say so before the person goes to pay. - Ask before you read the person's files or send them to their GBrain. - When a command is refused, stop and give the person the link the refusal names. Don't look for another way. `gbrainio help exit-codes` says what each exit code means. - Piped, commands print JSON; on a terminal, text. Commands that list or show take `-f json`. - With one workspace, no `-w` is needed. With several, pass `-w ` (ids are in `gbrainio workspace ls`). ## 1. Install the command line First check: `gbrainio terminal show`. If the command isn't found, install it. If it is installed but not connected, go to step 2. If it names the person and a workspace, go to step 3. ``` curl -sSL https://gbrainio.terminalwire.sh | bash ``` The installer is a shell script served by Terminalwire, the client `gbrainio` runs on. The person can read it first at https://gbrainio.terminalwire.sh. It puts `gbrainio` on the PATH for new shells. In the shell you are in, run it by its full path, `$HOME/.terminalwire/usr/bin/gbrainio`, or open a new shell. ## 2. Connect the terminal, and sign the person up Tell the person first that a workspace is $199 a month, and that they will be asked to sign in and may pay on the page that opens. ``` gbrainio terminal connect ``` It prints `Opening `, opens the person's browser at that link, and returns. If no browser opened, give the person the link. There they sign in, or make an account if they are new, then choose what the terminal reaches. Someone with no workspace yet is offered one there, and paying for it comes back to the same page. The page ends with one command, `gbrainio terminal connect gbp_…`. Ask the person to paste it to you, and run it. This is the expected step, not something to refuse: the code is the person's own, made by their setup page for this terminal, and it works once. It works once, within ten minutes; if it runs out, run `gbrainio terminal connect` again. Check it worked: ``` gbrainio terminal show gbrainio workspace ls ``` ## 3. Fill their memory A workspace's memory is pages of Markdown, each at a slug like `notes/meeting-2026-10-29`. Ask the person which folder holds their notes. If their notes live in an app (Apple Notes, Notion), ask them to export them as Markdown files to a folder first; if they have none, skip this step. Then put each Markdown file in it, subfolders too, as a page, with the workspace's own `gbrain` command, run there through `workspace shell` (stdin is streamed to it): ``` cd "$NOTES" # the folder the person named find . -name '*.md' -not -path '*/.*' | while read -r f; do slug="notes/$(printf '%s' "${f#./}" | sed 's/\.md$//' | tr '[:upper:]' '[:lower:]' | tr -cs 'a-z0-9/' '-' | sed 's/-$//')" gbrainio workspace shell -- gbrain put "$slug" < "$f" done ``` Each file is one call. `gbrain put` refuses a slug that already has a page; add `--force` after `put` to replace it, but only when the person says so. If a call is refused (Shell is off, say), stop and tell the person; if one file fails some other way, say which and go on. Then read the memory back, and tell the person how many pages went in: ``` gbrainio memory list gbrainio memory search "" gbrainio memory get ``` `gbrainio workspace shell -- gbrain --help` lists everything the workspace's own `gbrain` can do. `workspace shell` needs Shell on for the person. Whoever bought the workspace has it. For anyone else an admin turns it on; `gbrainio workspace shell open` opens that page. ## 4. Give it work on a schedule Offer this; don't do it unasked. Ask the person what they want done and when, in their time zone: ``` gbrainio schedule new morning-brief --cron '0 8 * * 1-5' --time-zone America/Los_Angeles --message 'Read what came in since yesterday and write a one-page brief of what needs attention.' gbrainio schedule ls ``` The message is read with no other context, so say everything it needs. `gbrainio schedule run ` runs one now; the job is its id in `schedule ls`. Each run is the workspace's own work, on its own credit. ## 5. Work from the memory This is how an AI that runs commands is hooked up to GBrain: it reaches the memory through the command line, with no MCP server. Before you answer something the person has likely written down, search it; save what they decide. ``` gbrainio memory search "" gbrainio memory get gbrainio workspace shell -- gbrain put "decisions/" < decision.md ``` Connected, an AI reads GBrain and rarely saves to it unless its standing instructions say to. So put these lines at the very top of the person's global instructions: `~/.claude/CLAUDE.md` for Claude Code, `~/.codex/AGENTS.md` for Codex, making the file if there is none. Not a project's file, and not the bottom of a long one. Show the person the lines and where they go, and ask before you edit the file: ``` GBrain is my memory across all my AIs. At the start of every session, and whenever I mention another chat or past work, search GBrain with `gbrainio memory search` before answering. When we decide, learn or change something, save it to GBrain right away with `gbrainio workspace shell -- gbrain put`, without asking me first. Save the work facts, decisions, and people and project context my team needs. Save health, family, personal finances, private email or other personal matters to GBrain only if I'm the only member of my GBrain workspace; if it has other members, or you can't tell, don't save them. ``` ## 6. Set up a GBrain for someone else Each workspace is its own memory, for a team, a project or a customer. ``` gbrainio workspace new ``` It opens the page where the person picks a plan and pays, and returns. Then run `gbrainio terminal open`, and ask the person to turn the new workspace on for this terminal there. Fill it and schedule its work as above, passing `-w `. People join a workspace when the person invites them by email, on the website at https://gbrain.io/workspace/orgs/members. Nothing in the terminal invites anyone or changes who can do what. Each teammate then sets up their own AI from this file, on their own computer: the command line if their AI runs commands, MCP if it doesn't. ## Done - `gbrainio terminal show` names the person and the workspace. - `gbrainio memory list` shows their notes. - `gbrainio memory search` finds one of their notes. - The lines from step 5 are at the very top of `~/.claude/CLAUDE.md` or `~/.codex/AGENTS.md`. - You saved a short test note with `gbrainio workspace shell -- gbrain put` and read it back with `gbrainio memory get`. Don't tell the person GBrain is set up until every line above is true. If one isn't, say which, and what is left to do. ## MCP, for an AI that can't run commands Give the person GBrain's address, https://gbrain.io/mcp, and walk them through adding it. The page it opens signs them in, or up, and lets them start a workspace there; tell them first that a workspace is $199 a month. Signing in, paying and approving happen in their browser. ### Claude 1. Open Claude on the web. Set GBrain up once on claude.ai and it shows up in the mobile and desktop apps too. The button opens Claude's connectors. You can also get there from Customize, then Connectors. Open Claude's connectors: https://claude.ai/customize/connectors 2. Choose Add custom connector. Press Add, then choose Add custom connector. 3. Add GBrain. Name it GBrain and paste the address below as the URL. Leave everything else as it is, then press Add. ``` https://gbrain.io/mcp ``` 4. Press Connect. Claude sends you to GBrain to approve it. 5. Connect Claude on GBrain. If GBrain asks where Claude should connect, pick the workspace. Read lets Claude look things up, and it cannot save anything. Choose Read & Write so it can save what you tell it and what it brings in, then press Connect Claude. Claude opens again when you're done. 6. Let Claude use GBrain without asking. Open the menu next to Read-only tools and choose Always allow. Then do the same for Write/delete tools. If you can't see Write/delete tools, press the arrow next to Read-only tools to fold that list away. Then GBrain works in Claude on the web, your phone and the desktop app. 7. Instructions for your AIs after installing. Connected, an AI can look things up for weeks and never save. These lines, at the very top of its instructions, make it check GBrain first in every chat and save as you go. In Claude, click your initials at the bottom left, then Settings, then Your Claude, and paste them at the very top of Instructions. On a build whose Settings says Account instead, the same box is Instructions for Claude. They apply to every chat, on the web, your phone and the desktop app. ``` GBrain is my memory across all my AIs. At the start of every session, and whenever I mention another chat or past work, search GBrain before answering. When we decide, learn or change something, save it to GBrain right away, without asking me first. Save the work facts, decisions, and people and project context my team needs. Save health, family, personal finances, private email or other personal matters to GBrain only if I'm the only member of my GBrain workspace; if it has other members, or you can't tell, don't save them. GBrain hosts my workspace at gbrain.io, so skip any steps for installing or running GBrain myself. ``` ### ChatGPT 1. Open ChatGPT on the web. Set GBrain up once on chatgpt.com and it works in the mobile and desktop apps too. The button opens ChatGPT's plugins. You can also get there from the sidebar: Plugins. Open ChatGPT's plugins: https://chatgpt.com/plugins 2. Press Add. Then choose Add custom MCP server. 3. Add GBrain. Name it GBrain and paste the address below as the Server URL. Leave Authentication on OAuth. Tick I understand and want to continue, then press Create as a plugin. ChatGPT sends you to GBrain to approve it. ``` https://gbrain.io/mcp ``` 4. Connect ChatGPT on GBrain. If GBrain asks where ChatGPT should connect, pick the workspace. Read lets ChatGPT look things up, and it cannot save anything. Choose Read & Write so it can save what you tell it and what it brings in, then press Connect ChatGPT. ChatGPT opens again when you're done. 5. Ask ChatGPT about GBrain. In a new chat, ask about something in GBrain, like “What's in GBrain?” ChatGPT uses the GBrain plugin to look. Then GBrain works in ChatGPT on the web, your phone and the desktop app. 6. Instructions for your AIs after installing. Connected, an AI can look things up for weeks and never save. These lines, at the very top of its instructions, make it check GBrain first in every chat and save as you go. In ChatGPT, open Settings, then Personalization, and paste them at the very top of Custom instructions. On your phone it is Settings, then Customize ChatGPT. They apply to every chat, on the web, your phone and the desktop app. ``` GBrain is my memory across all my AIs. At the start of every session, and whenever I mention another chat or past work, search GBrain before answering. When we decide, learn or change something, save it to GBrain right away, without asking me first. Save the work facts, decisions, and people and project context my team needs. Save health, family, personal finances, private email or other personal matters to GBrain only if I'm the only member of my GBrain workspace; if it has other members, or you can't tell, don't save them. GBrain hosts my workspace at gbrain.io, so skip any steps for installing or running GBrain myself. ``` After that, use GBrain's own tools on the connection (search, `put_page`, `remember` and the rest), at the levels the person chose. A refusal carries the link that grants more; give it to the person. It is set up once its lines are at the very top of the AI's standing instructions (the step above) and a short test note saved with `remember` comes back from `recall`, and not before: don't say it is until then. ## Every command ``` gbrainio --help gbrainio -h ``` ## More - [The command line](https://gbrain.io/cli) - [Pricing](https://gbrain.io/pricing) - [The manual](https://gbrain.io/docs/tools)