Skip to main content

Basic Memory: Linked Markdown Notes for AI Assistants

Basic Memory is a local-first knowledge system whose Markdown files can be read, written, and searched by both people and AI assistants. It helps carry useful information between conversations: project decisions, research notes, meeting summaries, or explanations you want to revisit. A later session must still retrieve the relevant notes; persistence alone does not put them into the model's context.

Files, observations, and relations​

The note below comes from the backtest project in the fee-allocation fix described in Agent Memory.

# Backtest scope

## Observations
- [decision] Keep the analysis in a command-line script.
- [constraint] Use test data; do not modify production accounts.
- [completion] Finish when the fee-allocation tests pass.

## Relations
- relates_to [[Production isolation]]

Basic Memory treats the whole note as an entity. A line with a bracketed category, such as [decision] Keep the analysis in a command-line script, is an observation: a statement tagged with its kind. relates_to [[Production isolation]] is a relation: it links this note to another note in the same knowledge base titled “Production isolation.”

Notes and relations together form a knowledge graph: people and assistants can follow the relation from “Backtest scope” to “Production isolation” instead of relying on a single keyword match. The official knowledge-format guide describes the Markdown syntax.

For a real decision, include who approved it, when it applied, and a link to its source. Distinguish accepted decisions from proposals so a later reader can tell what actually changed.

Connect a project​

Basic Memory is published on PyPI. Version 1.0, released on 2026-10-29, adds a wiki for every project, live notes, documents as searchable notes, and Basic Memory agents in beta (see the official documentation). After installing, register a directory for local notes. Replace ~/research with your intended directory and research with a project name of your choice:

uv tool install basic-memory --prerelease=allow
basic-memory project add research ~/research
basic-memory project list

The install command follows the official repository, which says the flag is required: Basic Memory depends on a FastMCP 4 pre-release, and without the flag uv silently installs an older release.

The local project is indexed when it is added. An MCP-compatible client can then use tools prefixed with bm_, such as bm_write, bm_read, bm_edit, bm_search and bm_context. These are tool names, not shell commands. See Model Context Protocol (MCP) for how clients call tools.

bm_context follows connections between notes through memory:// URLs. A note's address is generated from its file path and can carry the project name as a prefix; if the note above is saved as ~/research/backtest-scope.md, its address looks like memory://research/backtest-scope. Given that address, bm_context returns the “Backtest scope” note, the “Production isolation” note it links to through relates_to, and the notes that link back to it.

A useful interaction is to ask the assistant to find the backtest-scope note in the selected project, read it, and explain which decisions still apply to the current request. Search combines full-text and vector ranking by default, with vectors from a local FastEmbed model. The default embedding model is the English bge-small-en-v1.5, so switch to a multilingual model before indexing Chinese notes; cross-encoder reranking is off by default. The official repository lists the tool interface.

Local files and an optional cloud service​

Basic Memory supports two-way editing: people and assistants can both change notes, which live as plain Markdown files under ~/basic-memory by default. Local storage on its own provides no cross-device sync or backup; the official hosted plan adds web and mobile access, two-way sync with local files, and snapshot backups for $15 a month, with a 7-day trial. Basic Memory is licensed under AGPL-3.0, so read the terms before embedding it in your own product.

For how Basic Memory compares with QMD and zvec-grep, and the limits the three share, see Agent Memory.

Explore connectionsOpen network