Open Second Brain

Memory and knowledgeDeveloper tools

Local-first memory for Hermes Agent that lives in your Obsidian vault and remembers project context. Nightly dream passes turn repeat corrections into confirmed preferences with measurable confidence. Adapters ship for Claude Code, Codex, and OpenClaw, with an MCP server for anything else.

Your AI app calls the Open Second Brain MCP server, which does the memory and knowledge and developer tools work and sends the result back to the chat.

About Open Second Brain

Open Second Brain is a community MCP server from itechmeat, filed in our directory under memory and knowledge and developer tools. Local-first memory for Hermes Agent that lives in your Obsidian vault and remembers project context. Nightly dream passes turn repeat corrections into confirmed preferences with measurable confidence. Adapters ship for Claude Code, Codex, and OpenClaw, with an MCP server for anything else.

At a glance

Publisher
itechmeat (community)
Runs
See the README for setup
Written in
TypeScript
License
MIT
GitHub stars
637

How to set up Open Second Brain

  1. Follow the install steps in the Open Second Brain README; it is written in TypeScript, so have that toolchain ready.
  2. Check the Open Second Brain README for keys or settings; the registry lists none that Open Second Brain requires.
  3. Add Open Second Brain to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Open Second Brain tools to confirm the connection.
  5. Run one read-only task with Open Second Brain first, and keep your app asking before each tool call until the results look right.

Open Second Brain compared with similar servers

  • Caura by caura-ai has fewer GitHub stars than Open Second Brain (578 against 637); both are community servers, and Caura runs as a remote server and Open Second Brain runs on your own machine.
  • Mem0 by coleam00 has more GitHub stars than Open Second Brain (686 against 637); both are community servers, and both run locally.
  • Telemem by TeleAI-UAGI has fewer GitHub stars than Open Second Brain (496 against 637); both are community servers, and both run locally.

Before you connect Open Second Brain

  • Give Open Second Brain its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Open Second Brain tool call until you trust what it does with them.
  • Treat text that Open Second Brain fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Open Second Brain on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Open Second Brain

How marketing and sales teams put Open Second Brain to work, by company size. Pick the size closest to yours and start Open Second Brain on one use case.

Small business

  • A small business can give Open Second Brain its offers, FAQs and tone of voice once, so every draft starts from the same facts.
  • Founders can use Open Second Brain to keep notes from calls and decisions, then ask what was agreed with a customer weeks later.
  • A small business with a developer can use Open Second Brain to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Open Second Brain runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can connect Open Second Brain to positioning docs and past campaigns, so agents write on message without a long prompt each time.
  • Sales and marketing can share one knowledge base through Open Second Brain, so answers about pricing and features match across teams.
  • Growth engineers can use Open Second Brain to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Start Open Second Brain on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can use Open Second Brain with permissions that follow the source documents, so an agent only recalls what the person asking may see.
  • Large orgs can make Open Second Brain the approved memory layer for agents, with retention rules and a way to delete what shouldn't be kept.
  • Enterprise engineering teams can roll out Open Second Brain with repo scopes and audit logs, so agents work only where they are allowed.
  • Open Second Brain is a community server, so have security review the code and pin a version before Open Second Brain touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Open Second Brain README

From itechmeat/open-second-brain on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Open Second Brain

Open Second Brain is a program that runs on your machine and connects to the AI coding agents you use: Claude Code, Codex, Grok and others. It keeps the corrections, decisions and notes your agents save, turns corrections that repeat into rules, and lets later sessions, in the same agent or a different one, use those rules.

Why

You correct an agent, and the next session makes the same mistake. You switch agents, and the new one knows nothing the old one learned. With Open Second Brain connected, an agent can save a correction through its tools, and every connected agent can read the rules that come out of saved corrections. Every record names the agent that wrote it. Once a day a background pass, called dream, makes a rule of a correction that keeps coming back. A rule stays while agents record that they applied it; it is retired when that record goes stale, when agents report it outdated, or when you reject it.

What it looks like

An example. You tell your agents a few times not to use internal abbreviations, and they save it each time:

Correction, saved three times:  Expand internal abbreviations in user-facing copy.
After dream and recorded use:   Confirmed rule: Expand internal abbreviations in user-facing copy.

On hosts with a session-start hook, such as Claude Code and Codex, each new session receives the confirmed rules; on other hosts the agent asks for them through a tool. The rules are also written as plain Markdown pages into your vault's o2b-memory/ folder (or the folder view_target names): about-me.md with the confirmed rules, a page per week of history, decisions and topics. Rewrite a rule on about-me.md and your wording becomes the rule; delete its line and the rule is retired. Your edit is stored the next time the pages are rendered, and it wins over anything an agent or a model recorded.

Install

The easy way: let your agent do it

Paste this into the agent you want to connect:

Set up Open Second Brain for this agent. Follow the "Agent setup" procedure in
https://raw.githubusercontent.com/itechmeat/open-second-brain/main/llms.txt
If Bun or the open-second-brain package is missing, tell me the command and
install it after I agree. Ask me only the questions the procedure lists. Run
o2b setup without --apply, show me the plan, then stop and wait for my explicit
approval. Apply only the plan I approved, run the verification commands the
procedure names, report every step that did not pass, and tell me how to undo it.
By hand

With Bun 1.1 or later, install the package, then print the setup plan for your host (--no-vault instead of --vault if you do not use Obsidian):

bun add -g open-second-brain
o2b setup --target <host> --vault /path/to/vault --agent-name "<agent-name>" --timezone UTC

The second command writes nothing; add --apply to carry out the plan it printed. Every host, the remaining steps, verification and uninstall: install.md.

What you control

  1. What runs on your machine. The o2b command line, two MCP servers your agent host starts, lifecycle hooks on hosts that have them, and once a day a detached dream worker on the one machine that owns dream (install, dream). Dream starts by itself from an agent session, through a session-start hook or the MCP server; Pi, Aider and OpenClaw have neither, so on a machine with only those, run o2b dream run. Automatic dream is on by default; o2b brain settings set dream.auto false turns it off.
  2. What leaves your machine. Dream's summaries and topic wording are written by the agent command you configure; items built from private records are included by default, and an agent that uses a hosted model sends them to its provider (dream). Remote embeddings and a decision model are optional and off until you configure them; every outbound path is listed with what it sends.
  3. What it costs. The software is MIT licensed. Dream's sessions use your agent's subscription or provider allowance; an optional decision model stops sending once a daily spending limit is reached, 0.50 USD unless you change it (decision models).
  4. Your notes. Records live in a brain store, not in your notes: by default the vault's hidden .open-second-brain-store/ folder, so the vault's own sync carries it to your other machines when that sync carries hidden folders (Obsidian Sync does not: then move the store to a folder another tool syncs, in the order brain store gives, before store_root is set), and note tools and search skip it. A 1.x brain kept in the vault's Brain/ folder is moved into the store on upgrade, and the Brain/ folder leaves the vault by itself once every machine has updated (updating); a store that 2.0.0 left outside the vault moves in when you run o2b store move-into-vault on that machine with its agent sessions closed, and an @osb marker you write in a note is annotated once it is captured (how it works).
  5. Undo. o2b uninstall --target <host> --apply removes what setup wrote for a host, and bun remove -g open-second-brain removes the package; your vault, notes and brain store are kept (uninstall).
  6. Removed is not erased. The store is append-only: retiring or correcting a rule adds a record, and the old one stays until a compaction rewrites it. Do not put a secret into the brain (brain store).

Works with Agentic Playbooks

apb runs the agents; Open Second Brain gives those agents memory, so what the agents of one run recorded is there for the agents of the next. Each works without the other. Agentic Playbooks (apb) is a separate project.

Documentation

The documentation index groups the documents by what you want to do: get started, connect an agent, understand how it works, operate, upgrade, contribute. Open work your agents leave, promise or wait for is kept on a task board on the machine where it is captured: docs/board.md. Upgrading from 1.x: docs/updating.md.

Project

CHANGELOG · Security policy · Source on GitHub · MIT License

Questions about Open Second Brain

What is the Open Second Brain MCP server?

Local-first memory for Hermes Agent that lives in your Obsidian vault and remembers project context. Nightly dream passes turn repeat corrections into confirmed preferences with measurable confidence. Adapters ship for Claude Code, Codex, and OpenClaw, with an MCP server for anything else. Open Second Brain is maintained by itechmeat on GitHub at itechmeat/open-second-brain, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Open Second Brain MCP server?

Open Second Brain doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (itechmeat/open-second-brain). Like most servers, Open Second Brain ends with a command or URL you paste into your AI app's MCP config.

Does Open Second Brain need an API key?

The registry lists no required keys for Open Second Brain. Check the Open Second Brain README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Open Second Brain an official MCP server?

No. Open Second Brain is a community server maintained by itechmeat. Community servers can be excellent; read the code and the open issues before you give Open Second Brain access to company data.

What license is Open Second Brain under?

Open Second Brain is released under the MIT license, according to its GitHub repository. The license covers the code of Open Second Brain; the service it connects to has its own terms.