---
title: "qmd vs Basic Memory (2026): which fits your files?"
canonical: "https://xerj.org/compare/qmd-vs-basic-memory-2026"
updated: "2026-12-04"
---

# qmd vs Basic Memory in 2026

SHORT ANSWER · UPDATED 2026-12-04
Pick qmd for local hybrid search over Markdown knowledge bases; pick Basic Memory for memory you can read and edit as Markdown. qmd is a command-line tool written in TypeScript under MIT, while Basic Memory is a self-hosted server written in Python under AGPL-3.0.
**Key number:** qmd: 31,830 GitHub stars, Basic Memory: 4,829 GitHub stars (3 Dec 2026).
Stars, licences, languages and releases for 3 tools were fetched live from the GitHub API, GitHub release pages and the Hugging Face API on 3 Dec 2026. Hosted services link to their official sites and carry no invented numbers.

**TL;DR** Pick qmd for local hybrid search over Markdown knowledge bases.

## Agent prompt

```text
Read https://xerj.org/llms.txt. I am choosing between qmd and Basic Memory. Index this project with xerj autoindex, connect xerj mcp, and use xerj_search to find where my code would call either one. Cite file and line.
```

## Pick one in ten seconds

- Pick [qmd](https://github.com/tobi/qmd) for local hybrid search over Markdown knowledge bases.
- Pick [Basic Memory](https://github.com/basicmachines-co/basic-memory) for memory you can read and edit as Markdown.
- Pick [XERJ](https://github.com/xerj-org/xerj) when an AI agent should search local code, docs and logs over MCP, with citations.

## Where qmd shines

On-device search engine for Markdown notes and docs with BM25, vector search and reranking, plus MCP. It fits local hybrid search over Markdown knowledge bases. Plan for this: focused on Markdown collections.

## Where Basic Memory shines

Local-first knowledge base that stores agent memory as Markdown files with an MCP server. It fits memory you can read and edit as Markdown. Plan for this: focused on Markdown notes.

## Key differences

- **How it runs:** qmd is a command-line tool; Basic Memory is a self-hosted server.
- **Language:** qmd is mainly TypeScript, Basic Memory is mainly Python.
- **Licence:** qmd uses MIT; Basic Memory uses AGPL-3.0.
- **Release cadence:** qmd shipped v2.9.0 on 17 Nov 2026; Basic Memory's latest GitHub release is v1.0.0 from 29 Oct 2026.
- **MCP:** both projects ship MCP support, so an agent can call either one as a tool.

## Where XERJ fits

XERJ is a new way for AI to search for data: one local Rust binary that indexes code, docs, logs and data with `xerj autoindex` and returns passages with file and line citations. `xerj mcp` is a stdio MCP server, and `xerj mcp --http` serves Streamable HTTP at `http://127.0.0.1:9330/mcp`, read-only unless you pass `--allow-writes`. A non-loopback bind needs `XERJ_MCP_TOKEN`. Use it next to qmd or Basic Memory when an agent has to answer from files on your machine.

## How we checked

Stars, licences, languages and releases for 3 tools were fetched live from the GitHub API, GitHub release pages and the Hugging Face API on 3 Dec 2026. Hosted services link to their official sites and carry no invented numbers. We describe what each project says it does and avoid ranking one above the other in general.

## Read next

- [qmd alternatives 2026: local note search tools for AI agents](https://xerj.org/compare/qmd-alternatives-2026)
- [qmd vs Khoj (2026): which fits your files?](https://xerj.org/compare/qmd-vs-khoj-2026)
- [Supermemory vs Basic Memory (2026): which agent memory fits?](https://xerj.org/compare/supermemory-vs-basic-memory-2026)
- [Basic Memory alternatives 2026](https://xerj.org/compare/basic-memory-alternatives-2026)
- [claude-mem vs Basic Memory (2026): which agent memory fits?](https://xerj.org/compare/claude-mem-vs-basic-memory-2026)
- [BM25 vs vector search](https://xerj.org/science/bm25)
- [What is agentic search? AI agents that search in a loop (2026)](https://xerj.org/science/agentic-search)

## FAQ

### Is qmd better than Basic Memory?

Neither is better in general. qmd fits local hybrid search over Markdown knowledge bases, and Basic Memory fits memory you can read and edit as Markdown. The 4-question picker on this page scores both for your workload.

### Are qmd and Basic Memory open source?

qmd: MIT. Basic Memory: AGPL-3.0. Licences come from each repository on 3 Dec 2026.

### Which is easier to run, qmd or Basic Memory?

qmd runs as a command-line tool (focused on Markdown collections). Basic Memory runs as a self-hosted server (focused on Markdown notes).

### Which has more GitHub stars, qmd or Basic Memory?

qmd had 31,830 stars and Basic Memory had 4,829 on 3 Dec 2026. Stars measure attention, so weigh them with the fit questions above.

## Evidence

- [tobi/qmd](https://github.com/tobi/qmd): 31,830 stars, MIT, TypeScript, latest release v2.9.0, 17 Nov 2026 (GitHub API and release page, checked 3 Dec 2026).
- [basicmachines-co/basic-memory](https://github.com/basicmachines-co/basic-memory): 4,829 stars, AGPL-3.0, Python, latest release v1.0.0, 29 Oct 2026 (GitHub API and release page, checked 3 Dec 2026).
- [xerj-org/xerj](https://github.com/xerj-org/xerj): 23,588 stars, Apache-2.0, Rust, latest release v1.0.0-rc.105, 23 Nov 2026 (GitHub API and release page, checked 3 Dec 2026).

## Comparison table

| Tool | What it is | Runs as | Language | Latest release | Licence | Stars |
|---|---|---|---|---|---|---|
| [qmd](https://github.com/tobi/qmd) | On-device search engine for Markdown notes and docs with BM25, vector search and reranking, plus MCP | Command-line tool | TypeScript | v2.9.0, 17 Nov 2026 | MIT | 31,830 |
| [Basic Memory](https://github.com/basicmachines-co/basic-memory) | Local-first knowledge base that stores agent memory as Markdown files with an MCP server | Self-hosted server | Python | v1.0.0, 29 Oct 2026 | AGPL-3.0 | 4,829 |
| [XERJ](https://github.com/xerj-org/xerj) | One local Rust binary that indexes code, docs, logs and data, and serves cited search to agents over MCP | Command-line tool | Rust | v1.0.0-rc.105, 23 Nov 2026 | Apache-2.0 | 23,588 |
