Give an agent a memory (GBrain)
Turn on GBrain so a Hermes or OpenClaw agent remembers people, projects and your notes, with no API keys and nothing sent out.
GBrain is an open-source memory system for AI agents by Garry Tan, released under the MIT license. It keeps what your agent learns as pages about people, companies, projects and facts, and lets the agent search them. deputyOS runs it as a plugin inside your agent, so the memory stays on your own computer.
deputyOS isn’t affiliated with or endorsed by Garry Tan, Y Combinator or gbrain.io. GBrain also has a hosted service, gbrain.io. deputyOS is a way to run it yourself, privately, inside one agent.
What you get
- The agent remembers. Ask it to remember something (“Maria prefers invoices on the 1st”) and it can find it in a later conversation, even weeks later.
- It knows your notes. Import a folder of Markdown notes, such as an Obsidian vault shared from your computer, and the agent can answer from it.
- It checks memory first. deputyOS adds GBrain’s own “check the brain first” instructions to the agent’s standing instructions.
Before you begin
| Platform | Hermes Agent or OpenClaw |
| Memory | About 400 MB while running; a 4 GB agent is fine |
| Disk | About 630 MB |
| First install | 2–3 minutes, with internet access |
| API keys | None |
Turn it on
A new Hermes Agent or OpenClaw agent can have it from the start: keep Memory on under Personal assistant when you add the agent, and deputyOS turns GBrain on after the agent first starts. For an agent you already have:
- Open the agent and go to Details → Plugins.
- Next to GBrain, choose Turn on.
- Wait for the install to finish. deputyOS downloads a tested GBrain release, checks it against a checksum that ships with deputyOS, creates the memory inside the agent, connects the agent to it and adds the “check the brain first” instructions.
- When it says GBrain is on, start a new chat with the agent. The instructions are read when a conversation starts.
GBrain’s own self-update is turned off. New versions arrive with deputyOS’s updates.
Import a folder of notes
- Share the folder with the agent from your computer, in Details → Computer access → Folders (see Let an agent use your computer).
- In Details → Plugins → GBrain, under Folders it keeps, choose the shared folders to import, then Save folders.
- deputyOS copies the Markdown notes into the memory, and reads changes about every hour.
GBrain keeps its own copy of what it imports. Your original files aren’t changed.
Check that it works
In a new chat:
- Ask: “Remember that my accountant is Ana Diaz.”
- Start another new chat and ask: “Who is my accountant?”
The agent should answer from its memory. If you imported a folder, ask about something written in it, using words that appear in your notes.
What stays private
- No API keys, no embedding service. GBrain searches by keyword, so no note or question is sent to an embedding provider.
- The memory never leaves the agent. GBrain runs inside the agent and can only be reached from inside it. The memory service has no internet access of its own.
- Your AI service still sees what the agent reads. When the agent finds something in memory, it uses that in the conversation with your AI service. To keep conversations on your computer as well, use AI on your own computer.
Data and backups
- The memory is stored with the agent’s own data, so every backup includes it.
- Turn it off in Details → Plugins. The agent is disconnected, GBrain stops, and the instructions are removed. The memory itself is kept: turn it on again and the agent remembers everything.
Limits
- Keyword search. GBrain finds pages and facts that use the words you ask about. A question phrased differently from your notes (“Who does my taxes?” when the note says “accountant”) can miss. Search by meaning is planned but not available yet.
- Hermes Agent and OpenClaw only for now.
- One memory per agent. Each agent with GBrain turned on has its own memory. Agents don’t share one.
- Markdown only. Folder import reads Markdown (
.md) files. PDFs and Word files aren’t imported yet.
Troubleshooting
The install fails or never finishes
The first install downloads GBrain, so the agent needs internet access.
- Check the agent is Running.
- If the agent’s network filters outbound traffic, allow
github.com,codeload.github.com,release-assets.githubusercontent.comandregistry.npmjs.org, then choose Turn on again. - If a download doesn’t match its checksum, deputyOS stops and changes nothing. Try again later. If it keeps happening, update deputyOS.
The agent doesn’t use its memory
- Start a new chat. The agent reads the instructions when a conversation starts.
- Ask it directly: “Check your memory for …”.
- Use words that appear in your notes (see Keyword search above).
- Small local models sometimes skip tools. Try a larger model.
Imported notes don’t show up
- Only Markdown (
.md) files are imported. - Check that the folder is still shared with the agent in Details → Computer access.
- Changes are picked up about once an hour.
Related
- Plugins
- Back up and restore
- GBrain on GitHub: https://github.com/garrytan/gbrain