PlaybookAdvanced11 min read28 October 2026

Give Your Agents One Shared Memory

One agent saves it once. Every agent can answer from it.

In short

This guide is for founders and operators who run more than one AI agent and want what one learns to be available to the others. GBrain is an open-source memory for AI agents, licensed MIT. It stores pages with their sources, lets you correct or withdraw a fact later, and connects to Hermes over MCP, a standard way for AI tools to plug into each other. You install it, connect each agent to the same brain, paste one set of memory rules into each agent, and test it with one saved page. It starts with no API key and plain keyword search. The software is free. Your agents' model usage and any hosting are not. Agents save only when your rules tell them to, or after you opt in to automatic capture, and the model behind each agent still sees whatever it recalls.

The finding the other agent never saw

Say your research agent reads 10 Instagram reels about how founders use AI and finds one point that matters. The next day, your personal agent knows nothing about it. You ask, and it guesses. Nothing was lost. The finding lives in one agent's memory and no other agent can reach it.

That is the default for most agents. Each one keeps its own memory, so what one learns stays with it. GBrain is an open-source memory you can point several agents at. One agent saves a page with its source attached. Another agent searches the same brain and answers from that page.

This guide sets that up once, using Hermes as the example agent. You install GBrain, connect each agent to the same brain, give every agent the same memory rules, and test it with one saved page.

Where your research agent gets its material, such as the reels in the example, is separate from GBrain. This guide starts from a finished research document.

Completion test: in a new conversation, ask your personal agent what your research agent found yesterday. It answers from the saved page, names the page and shows the source. If it guesses, the memory is not shared yet.

What GBrain is, in plain words

GBrain is an open-source memory for AI agents, built by Garry Tan and released under the MIT licence. In its README's words, it stores explicit facts with their sources, supports corrections and withdrawal, and makes the same memory available across your agents.

Repository: github.com/garrytan/gbrain

When this guide was checked on October 24, 2026, the repository showed about 31,100 GitHub stars and 4,700 forks. Stars show interest. They do not show that it is ready for your business.

Five terms cover everything in this guide.

Brain. The stored memory. Every agent connected to the same brain sees the same pages.

Page. One saved note with a title. In this guide, a page is a research document such as Founders and AI Analysis.

Source. Where a fact came from, such as a link or a file. GBrain stores facts with their sources, so you can check them.

MCP. Model Context Protocol, a standard way for AI tools to plug into each other. Hermes talks to GBrain through MCP.

Keyless. GBrain's starting mode. It needs no API key and uses plain keyword search, so a clear page title makes a page easy to find.

Before you start

You need four things.

NeedWhat it means
BunGBrain requires Bun 1.4.0 or newer. Bun is a tool for running JavaScript programs.
Two agentsAt least two agents that can use MCP. This guide uses Hermes, the agent from Nous Research.
A terminalThe window where you type commands. You can also ask your agent to run them.
One decision-makerThe person who decides which agents may write to the memory and which may only read it.

What it costs. GBrain is free and its starting mode needs no API key. You still pay for:

  • Your agents' model usage: whatever GBrain recalls is read by the model behind each agent.
  • Hosting, if you run a shared server instead of one computer.
  • Optional extras: semantic search, synthesis and background enrichment use model providers you configure yourself.

The README calls the always-on server setup for Hermes the highest-cost path, with a server of 8 GB or more of memory plus raw API usage. This guide does not use it.

Data. The model your agent uses sees recalled memory even in keyless mode. If you later configure cloud embedding or synthesis providers, text goes to them too. Keep passwords, API keys, bank details and customers' personal data out of every page.

Install GBrain

GBrain is not on npm. The npm package named gbrain is unrelated and can shadow the real one. Never run npm install -g gbrain or bun add -g gbrain.

Install from GitHub and create a local, keyless brain:

bun install -g github:garrytan/gbrain
gbrain init --pglite --no-embedding
gbrain doctor

The first line installs GBrain. The second creates a brain on your computer with no server, no Docker and no API key. The third checks that it is healthy.

Checkpoint.

Pass: gbrain doctor finishes without reporting a problem.

Stop: if you installed from npm by mistake, run npm uninstall -g gbrain or bun remove -g gbrain, then install again with the command above. gbrain doctor detects the wrong package.

Or let your agent install it. The README's one-paste route for Hermes is to give your agent this instruction:

Retrieve and follow the instructions at:
https://raw.githubusercontent.com/garrytan/gbrain/master/INSTALL_FOR_AGENTS.md

The agent starts with keyless memory and verifies it. API keys, automatic capture, paid enrichment and the overnight enrichment cycle are separate opt-in choices, and this instruction does not authorise them. Read that file yourself before you let an agent run it.

The next one lands in your inbox before it lands here.

One email a week. What I tested.

Subscribe
Give Your Agents One Shared Memory · Playbooks · Steve Tan