Guide · Agent skill
How to use the GBrain Memory Setup agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The GBrain Memory Setup skill is an instruction file that tells an AI agent how to install GBrain, an open-source memory system, into an agent you already run. It starts with local, keyless storage and keyword search, so you do not need an API key, a private repository or a background service to begin. After following this guide you will know how to install the skill, how to ask for it in plain language, what it will run on your machine, and how to check that memory actually works.
Quick start
- 1Download and unzip. Download the skill ZIP from this page and unzip it. Place the folder in ~/.claude/skills/ for personal use or in the project's .claude/skills/ folder.
- 2Restart or reload your agent. Start a new session so the agent loads the skill. In the Claude apps, you can instead upload the ZIP under Settings, Capabilities, Skills.
- 3Ask for setup in plain words. Say something like set up gbrain or add gbrain to my agent. Name the existing agent or brain if you have more than one.
- 4Check the status commands. Let the agent run gbrain engine status --json and gbrain engine status --probe on any existing install, and read the output before it changes anything.
- 5Choose a search mode. When the printed cost matrix appears, read it and tell the agent which mode you want. Model API costs are separate from any subscription.
- 6Verify the test memory. Confirm the agent saved a test memory and read it back successfully.
- 7Check the three results. Confirm the report separately states software installed, instructions activated and memory working across conversations. Test recall in a new conversation yourself.
What the skill makes the agent do
The skill walks the agent through setting up a memory layer for an agent you already use. It is written to preserve the agent's identity, its native memory, its existing instructions and any unrelated configuration. The default path is local storage with keyword retrieval and no API keys.
The skill asks you to choose a search mode from a printed cost matrix before it continues. It then saves a test memory and reads it back to confirm the write worked. At the end it reports three things separately: whether the software installed, whether the agent's instructions were activated, and whether memory works across conversations.
- Installs GBrain from the garrytan/gbrain GitHub repository, after installing the Bun runtime if it is missing.
- Initialises a local PGLite database with no embeddings, using the keyless path.
- Checks existing installations and repairs partial or conflicting setups without reinitialising memory.
- Connects to an existing hosted brain instead, if you already have one.
Install the skill in Claude Code or the Claude apps
Download the skill ZIP from this page and unzip it. For a personal install, place the unzipped folder in ~/.claude/skills/. For a single project, place it in the project's .claude/skills/ folder instead.
In the Claude apps, you can upload the ZIP under Settings, then Capabilities, then Skills.
- Personal install: ~/.claude/skills/
- Project install: .claude/skills/ inside your project
- Claude apps: Settings, Capabilities, Skills, then upload the ZIP
How to trigger the skill with natural requests
You do not need a special command. Ask the agent in plain words. The skill is matched to requests such as the ones listed in its trigger phrases. Give the agent the context it needs, such as which brain or which agent you mean, because the skill asks only for information it truly needs to choose a safe target.
- 'Set up GBrain for this agent.'
- 'Add gbrain to my agent.'
- 'Install gbrain into this agent workspace.'
- 'Initialize brain.'
- 'Connect my agent to my existing hosted GBrain.'
What happens during setup
For a new local install, the skill runs a Bun global install of GBrain from the GitHub repository and then a keyless initialisation. Before it changes anything, it inspects the current engine and configuration. If an installation already exists, it reuses it when it is healthy and reports problems rather than overwriting data.
When initialisation offers a search mode, the agent must show you the printed matrix and wait for your decision. The matrix shows model API costs separately from any harness subscription. Choosing a mode does not turn on paid APIs or automatic capture.
- Check status with gbrain engine status --json and gbrain engine status --probe.
- Install with bun install -g github:garrytan/gbrain#latest-stable.
- Initialise with gbrain init --pglite --no-embedding.
- Save a randomised test memory and read it back to confirm.
bun install -g github:garrytan/gbrain#latest-stable
gbrain init --pglite --no-embeddingSafety notes: scripts, network and existing data
This skill runs shell commands and uses the network, including to fetch GBrain from GitHub. It is not a zero-knowledge, one-click install. Read the commands the agent proposes before you approve them, and do not approve a database choice you do not understand.
The skill warns against reinitialising memory and treats an existing database as something not to adopt by accident. It still says routing mistakes could affect existing data, so keep a backup of anything you cannot lose before you run it. Automatic capture, imports, connectors, schedules and paid enrichment are off unless you explicitly opt in.
- Requires the Bun runtime; the skill installs it first if it is missing.
- Optional Postgres or Supabase connection string if you choose Postgres. Keep it private.
- Optional Tailscale for remote MCP access; optional OAuth or private handoff for hosted access.
- Does not use an unrelated npm package named gbrain or bun add in your current project.
Tips for a smooth install
Decide before you start whether you want a local brain or a hosted one. The local path is simpler and needs no account. The hosted path skips local database setup but needs an owner to grant access and a private transfer of credentials.
If you use Postgres, expect a classic mode on a source with a checkout: the checkout is the source of truth, and agents save pages as committed files followed by gbrain sync. Direct saves need managed mode.
- Let the agent report software install, instruction activation and cross-conversation recall as three separate results; a pass on one does not imply the others.
- If the agent reports a partial or conflicting state, ask it to diagnose rather than reinitialise.
- Keep credentials out of file configuration; use the environment or private files instead.
What people use it for
- Give a Claude Code or Codex coding agent a personal memory of project decisions and preferences.
- Let a Grok Bot or Muse agent remember things across separate chats, using the setup helper described in the skill.
- Connect a new agent to a GBrain you already host, using the hosted access path rather than a new local database.
- Start with a keyless local memory to test whether a memory layer is useful before paying for any API.
Frequently asked questions
Is the GBrain Memory Setup skill free?
The skill's source is published under the MIT licence on the garrytan/gbrain repository. The skill itself does not require an API key, and the default local path is keyless. Optional model API costs are separate and are shown in the printed search-mode matrix during setup.
What do I need to install it?
You need an agent that supports skills, such as Claude Code, and the Bun runtime, which the skill installs first if it is missing. The setup also installs GBrain from the GitHub repository. Postgres, Supabase, Tailscale and OAuth are optional and only needed for specific choices.
Will it capture all my conversations automatically?
No. Automatic capture, imports, connectors and schedules need explicit opt-in and are not enabled by this setup. The skill saves explicit memories only.
Can it overwrite my existing memory?
The skill warns against reinitialising memory and reuses healthy installations. Routing mistakes could still affect existing data, so back up anything you cannot afford to lose before you run it.
How is this different from the built-in memory of my agent?
The skill adds a separate GBrain store that the agent can save to and read from, while preserving the agent's own native memory and instructions. It also verifies that writes and reads work and reports whether memory carries across conversations.
Why did setup fail or report a partial install?
The skill separates software installation, instruction activation and cross-conversation recall, so one can succeed while another fails. Ask the agent to run gbrain engine status --json and gbrain engine status --probe and diagnose the state rather than reinitialising.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
This skill suits developers who want a personal, keyless memory layer for Claude Code, Codex or a similar agent, and people who already host a GBrain and want to connect another agent. It is not a turnkey install for someone uncomfortable with shell commands or routing choices. The source copy used for this page stops partway through the hosted connection example, so follow the linked GBrain guides for the rest of that path.
Download the skill