Basic Memory

io.github.basicmachines-co由 GitHub 帳號 basicmachines-co 發布v1.0.0更新於 Oct 30, 2026

Local-first knowledge management with bi-directional LLM sync via Markdown files.

發布方自己的服務:Memory.fit

已驗證STDIO僅桌面檔案與儲存知識與記憶

概覽

AI 產生的概覽

本地優先的知識庫,將筆記存成 Markdown 檔案,AI 助理可讀寫、搜尋並串成知識圖譜。

可以做什麼
  • 建立、讀取、編輯、移動與刪除專案中的 Markdown 筆記
  • 依關鍵字、語意或混合排序搜尋筆記,並列出或尋找實體
  • 沿觀察與 wikilink 構成的知識圖譜取得上下文
  • 管理專案,並驗證、推斷或比對知識庫結構
  • 匯入既有的 Claude、ChatGPT 或 memory JSON 對話
適用情境
適合希望助理跨工作階段記住內容,並把這份記憶保存成可用 Obsidian 或編輯器開啟的純 Markdown 檔案的情境。也適合想把個人或專案知識庫留在本機、而非託管服務的使用者。
執行需求
本機安裝需要 Python 與 uv,透過 uvx 加上預先發行版參數執行。筆記預設存放在使用者家目錄下的 basic-memory 資料夾。選用的雲端模式與重排序需要帳號或 API 金鑰(例如 COHERE_API_KEY);可用 BASIC_MEMORY_NO_PROMOS 關閉遙測。
安裝前請注意
助理可以寫入、編輯、移動與刪除知識庫中的筆記,請留意破壞性操作與核准設定。README 推廣含免費試用的付費雲端方案,並說明會向第三方分析服務傳送匿名遙測。啟用託管重排序時,查詢會傳送給外部服務商。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Basic Memory,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[MCP Toplist]

[License: AGPL v3] [PyPI version] [Python 3.12+] [Tests] [Ruff] [圖片] [圖片] [Ask DeepWiki]

Skip the install — try Basic Memory in the cloud

Claude, Codex, or Cursor connected in 30 seconds. No Python, no JSON, no terminal. $15.00/mo locked in for life (12.50/mo yearly pricing). 7-day free trial — cancel any time before day 7 if it's not for you. Beta pricing — sign up now and your rate never goes up. OSS users: code BMFOSS takes another 20% off for 3 months.

Start free trial →

Basic Memory Teams is now available!

Give your team a single, shared cloud workspace. Knowledge isn't confined to one person — anything a teammate writes is immediately available to everyone else and to their AI assistants. Edit a note together in real time, hand work off between humans and agents, and build one connected knowledge base instead of scattered copies. Same pricing - start with one user and add more as needed.


Basic Memory

Your AI never forgets again.

Pick up right where you left off — in Claude, Codex, Cursor, ChatGPT, or anything that speaks MCP. Your knowledge lives as Markdown files that both you and your AI can read, write, and search.

  • Local-first. Plain text on your disk. Forever.
  • Two-way. AI and humans write to the same files; sync keeps them in step.
  • A real knowledge graph. Observations and wikilinks compound into context.
  • Semantic search. Find notes by meaning, not just keywords, with optional cross-encoder reranking for higher-quality vector and hybrid results.
  • MCP-native. Works with every major AI client and IDE.
  • Progressive tool discovery. Every tool is tagged with behavior hints (read-only, destructive, idempotent) so agents pick the right tool on demand — no wasted context trying things to see what they do.
  • Cloud, optional. Sync across devices when you want — never required.

Get started

Pick the path that fits you. Both run the same product on the same Markdown.

☁️   Cloud💻   Local install

30 seconds. Sign up, connect your AI client, done.

  • Works in any browser
  • Mobile, web, desktop
  • Cross-device sync built in
  • We handle hosting, backups, snapshots

$15.00/mo locked for life · 7-day free trial · cancel any time

Start free trial →

2 minutes. Install, configure your AI client, run.

  • Free forever (AGPL-3.0)
  • All data on your disk
  • Air-gapped friendly
  • Requires Python via uv
bash
uv tool install basic-memory --prerelease=allow

--prerelease=allow is required: Basic Memory 0.23 depends on a FastMCP 4 pre-release, and uv only accepts pre-releases of transitive dependencies when told to — without the flag it silently installs an older release. The same flag goes on every uvx / uv tool upgrade command below.

For Postgres deployments that store semantic vectors in Milvus, install the first-party optional extra instead:

bash
uv tool install "basic-memory[milvus]" --prerelease=allow

Configure your client ↓

What people are saying

Basic Memory changed my whole relationship with LLMs. I switched from GPT and Gemini to exclusively Claude and Claude Code because of this integration and am completely revamping all our company's processes around a Basic Memory workflow.

— Alex, TrainerDay

Basic Memory is the missing 'wow' factor in AI chatbots. Now I can't imagine Claude or Claude Code without it.

— Caleb, Caleb Picker Consulting

I don't code without Basic Memory anymore. It's such a time saver to be able to refer to projects I don't currently have active and keep a running log of all my learnings and ProTips.

— @groksrc, Developer

More on basicmemory.com.

Basic Memory Cloud

The hosted version of Basic Memory. Same product, same Markdown files, same MCP tools — we just host the database, run the sync, and put it on your phone.

What you get

  • Every device, same brain. Your knowledge graph on web, mobile, and desktop. No copy-paste between machines.
  • Connect any MCP client. Claude Desktop, Claude Code, Codex, Cursor, ChatGPT (Custom GPTs), VS Code — one-click connect from the web app.
  • Bidirectional sync to local. Edit on your phone, see it in Obsidian on your laptop. rclone-powered with conflict resolution.
  • Snapshots and backups. Point-in-time restore. Browse history. Never lose a note.
  • No lock-in. Your notes are plain Markdown. Export to local Markdown any time — same files, same format, same wikilinks. Cancel anytime, your data stays yours.

Built on WorkOS AuthKit, Neon Postgres, and Tigris S3.

Pricing

$15.00/mo, locked in for the life of your subscription (regular price $19). Sign up during beta and the rate never goes up — as long as you stay subscribed, you keep the price. One plan, no tiers, no surprise upgrades. Unlimited notes, unlimited projects, every feature.

  • 7-day free trial. Cancel any time before day 7 if it's not for you.
  • Cancel anytime after that too — export your notes whenever you want.
  • OSS users: code BMFOSS for another 20% off for 3 months (~$11.40/mo).

Start your 7-day free trial →

Cloud vs. local

CloudLocal
Setup time30 seconds2 minutes (requires Python)
Cost$15.00/mo, locked for life (7-day trial)Free
StorageWe host (Tigris S3)Your disk
Cross-device syncBuilt inManual (Git, Syncthing, etc.)
Mobile accessYes (web + app)No
Air-gappedNoYes
Your data stays yoursYes — export anytimeYes — already there
Source codeAGPL-3.0AGPL-3.0
Snapshots & backupsBuilt inRoll your own

Both paths use the same OSS engine and the same Markdown files. There's no lock-in either way — flip between them when your needs change.

Works with the tools you already use

ClientTransportNotes
Cloud web apphttpsSign in at basicmemory.com — no install
Claude Desktopstdio/httpsmacOS / Windows / Linux
Claude Codestdio/httpsclaude mcp add
Codexstdio/httpsOpenAI's coding agent
Cursorstdio/https.cursor/mcp.json
VS Codestdio/httpsNative MCP support
ChatGPThttpsCustom GPT actions (search / fetch)
Obsidian—Reads/writes the same Markdown directly
Anything MCPstdio/httpsIf it speaks MCP, it works

Official agent packages

This repository is also the canonical home for Basic Memory's host-native agent packages. The core Python package, Claude Code plugin, shared skills, Hermes plugin, and OpenClaw plugin all ship from the same source tree.

Maintainers can verify the whole consolidated surface from the repo root:

bash
just package-check

Package-local justfiles are also available when working inside one host:

bash
just package-check-claude-codejust package-check-skillsjust package-check-hermesjust package-check-openclaw

Claude Code plugin

The Claude Code plugin is the bridge between Claude's working memory and Basic Memory — session-start briefings, pre-compaction checkpoints, an opt-in capture output style, and /basic-memory:bm-setup · :remember · :share · :status.

Connect the Basic Memory MCP server first — see Connect your AI client. The plugin's hooks and skills call it, so it's a hard prerequisite. Then install the plugin:

bash
bm install claude-code

That registers the marketplace and installs the plugin through Claude Code. Add --scope project to declare both in the repository's settings for a team, or --dry-run to see the underlying claude plugin commands without running them.

Source: plugins/claude-code.

Shared skills

Framework-agnostic SKILL.md files live in skills/. If your Skills CLI supports repository subdirectory sources:

bash
npx skills add basicmachines-co/basic-memory/skills -g

For Claude and ChatGPT, upload basic-memory.zip or basic-memory-chatgpt.zip from the skills-latest release; see skills/README.md.

If your installed Skills CLI cannot load that source, update the CLI or copy the memory-* directories from skills/ into your agent's skills directory.

Hermes

Hermes keeps its native plugin shape under integrations/hermes:

bash
hermes plugins install basicmachines-co/basic-memory/integrations/hermes

Hermes does not install a plugin's Python dependencies, so also add the mcp package to the Hermes venv — see the plugin README for that step and the supported Hermes releases.

OpenClaw

OpenClaw stays package-native and publishes from integrations/openclaw:

bash
openclaw plugins install @basicmemory/openclaw-basic-memory

Pick up where you left off

https://github.com/user-attachments/assets/a55d8238-8dd0-454a-be4c-8860dbbd0ddc

Connect your AI client

If you went the Cloud route, the web app walks you through client connect. The snippets below are for local installs.

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "basic-memory": {      "command": "uvx",      "args": ["--prerelease=allow", "basic-memory", "mcp"]    }  }}

Restart Claude Desktop. Notes live in ~/basic-memory by default.

Claude Code, Codex CLI, Cursor, VS Code, ChatGPT, Obsidian

Claude Code

bash
claude mcp add basic-memory -- uvx --prerelease=allow basic-memory mcp

For the full memory bridge — session briefings, pre-compaction checkpoints, and the /basic-memory:* commands — also install the Claude Code plugin on top of this.

Codex CLI

Add to ~/.codex/config.toml:

toml
[mcp_servers.basic-memory]command = "uvx"args = ["--prerelease=allow", "basic-memory", "mcp"]

Codex can keep its default MCP approval behavior, or you can pre-approve eligible Basic Memory tools by adding this server-scoped setting to the same table:

toml
[mcp_servers.basic-memory]command = "uvx"args = ["--prerelease=allow", "basic-memory", "mcp"]default_tools_approval_mode = "approve"

This does not disable Codex approvals globally or expand which Basic Memory projects the server can access. Codex still requires approval for tools that advertise a destructive annotation, including Basic Memory's writes, edits, and deletes. If you installed the Basic Memory Codex plugin, use its plugin-scoped configuration instead.

Cursor

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

json
{  "mcpServers": {    "basic-memory": {      "command": "uvx",      "args": ["--prerelease=allow", "basic-memory", "mcp"]    }  }}

VS Code

Add to your User Settings (JSON):

json
{  "mcp": {    "servers": {      "basic-memory": {        "command": "uvx",        "args": ["--prerelease=allow", "basic-memory", "mcp"]      }    }  }}

ChatGPT

Basic Memory exposes OpenAI-compatible search and fetch tools for Custom GPT actions. See the ChatGPT integration guide.

Obsidian

No setup. Point Obsidian at ~/basic-memory (or your project folder) and the same wikilinks, frontmatter, and Markdown your AI writes appear in your graph view. Edit either side — sync handles the rest.

Try a prompt:

"Create a note about our project architecture decisions.""Find information about JWT auth in my notes.""What have I been working on this week?"

What's New

  • Automatic updates. Basic Memory keeps itself up to date for uv tool and Homebrew installs; bm update triggers a manual check.
  • Semantic vector search. Find notes by meaning, not just keywords. Hybrid full-text + vector ranking with FastEmbed embeddings, on SQLite or Postgres.
  • Optional search reranking. Rescore the strongest vector and hybrid candidates with a local FastEmbed cross-encoder or a LiteLLM-backed provider.
  • Schema system. Infer, validate, and diff the structure of your knowledge base with bm_schema(command="infer"), bm_schema(command="validate"), and bm_schema(command="diff").
  • Per-project cloud routing. Route individual projects through the cloud while others stay local, via API key (bm project set-cloud).
  • Explicit note changes. bm_edit updates existing notes; bm_write creates notes and guards against accidental overwrites.
  • Richer search results. Matched chunk text is included so the LLM gets context, not just hits.
  • FastMCP 3.0 + tool annotations. Every tool ships with MCP behavior hints (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) so agents can discover capabilities progressively at runtime instead of guessing or burning tokens.
  • CLI overhaul. --json output for scripting, workspace-aware commands, and an htop-inspired project dashboard.

Full CHANGELOG for v0.18 → v0.20.

Optional cross-encoder reranking

Reranking adds a second relevance pass after vector or hybrid retrieval. It is disabled by default because it adds inference latency and, for the local provider, a first-run model download. Text, title, and permalink searches keep their existing ranking.

Enable the default local FastEmbed reranker:

bash
export BASIC_MEMORY_RERANKER_ENABLED=true

The default model is jinaai/jina-reranker-v1-tiny-en. To use a hosted reranker through LiteLLM instead, first install the optional LiteLLM SDK, then configure it:

bash
export BASIC_MEMORY_RERANKER_ENABLED=trueexport BASIC_MEMORY_RERANKER_PROVIDER=litellmexport BASIC_MEMORY_RERANKER_MODEL=cohere/rerank-v3.5export COHERE_API_KEY=...

The feature fails fast on invalid configuration and does not silently fall back to retrieval order when an enabled provider fails. See the semantic search guide for provider setup, all settings, tuning, pagination, and failure behavior.

Why Basic Memory

Most LLM conversations are ephemeral. You ask a question, get an answer, then everything is forgotten. Workarounds have limits:

  • Chat history captures conversations but isn't structured knowledge.
  • RAG lets the LLM query your documents but not write back to them.
  • Vector DBs need complex infra and usually live in someone else's cloud.
  • Knowledge graphs need specialized tooling to maintain.

Basic Memory takes a simpler path: structured Markdown files that humans and LLMs both read and write.

  • All knowledge stays in plain files you control.
  • Both sides read and write to the same files.
  • Familiar Markdown with semantic patterns — no new format to learn.
  • A traversable graph the LLM can follow link by link.
  • Works with the editors you already use (Obsidian, VS Code, anything).
  • Just files plus a local SQLite index. No servers required.

How it works

You're chatting normally about coffee:

I've been experimenting with brewing methods. Pour over gives more clarity than French press, water at 205°F seems best, and freshly ground beans make a huge difference.

Ask the LLM to capture it:

"Make a note on coffee brewing methods."

A Markdown file appears in your project directory in real time:

markdown
---title: Coffee Brewing Methodspermalink: coffee-brewing-methodstags: [coffee, brewing]---
# Coffee Brewing Methods
## Observations- [method] Pour over highlights subtle flavors over body- [technique] Water at 205°F (96°C) extracts optimal compounds- [principle] Freshly ground beans preserve aromatics
## Relations- relates_to [[Coffee Bean Origins]]- requires [[Proper Grinding Technique]]- affects [[Flavor Extraction]]

Next session, the LLM picks up the thread. It follows the relations to surface what you already know about Ethiopian beans and burr grinders, and builds on it instead of starting over. You see the same files in Obsidian or your editor. Edit them by hand — the AI sees your changes too.

Real two-way flow: humans edit Markdown, LLMs read/write through MCP, sync keeps everything consistent, and the source of truth is always your files.

The Markdown format

Each file is an Entity. Entities have Observations (facts about them) and Relations (links to other entities). That's the whole grammar.

Frontmatter

markdown
---title: <Entity title>type: notepermalink: <uri-slug>tags: [optional, list]---

Observations

Facts about the entity. Categories in [brackets], tags with #, optional context in parens.

markdown
- [method] Pour over highlights subtle flavors- [tip] Grind medium-fine for V60 #brewing- [fact] Lighter roasts contain more caffeine than dark- [resource] James Hoffmann's V60 technique on YouTube- [question] How does temperature affect compound extraction?

Relations

Wiki-style links that form the graph. Single-token relation types, or quote multi-word ones.

markdown
- pairs_well_with [[Chocolate Desserts]]- grown_in [[Ethiopia]]- requires [[Burr Grinder]]- "pairs well with" [[Dark Chocolate]]

Bare - [[Target]] and prose - Worth checking out [[Target]] index as links_to. Full reference in the docs.

MCP tools

Basic Memory exposes these tools to any MCP client. Every tool is annotated with MCP behavior hints (read-only, destructive, idempotent, open-world) so agents can pick the right one without trial-and-error:

  • Content: bm_write, bm_read, bm_edit, bm_move, bm_delete
  • Search & discovery: bm_search, bm_list, bm_find
  • Knowledge graph: bm_context
  • Projects: bm_project(command="list" | "create" | "recent"); bm_project_delete is separate and requires server opt-in.
  • Schema: bm_schema(command="validate" | "infer" | "diff")
  • Manual: bm_man
  • Cloud connector adapters: search and fetch are registered by Cloud only. Local diagnostics use bm doctor.

Most tools default to text; bm_context defaults to JSON. Pass output_format="json" for structured responses. Project-scoped tools accept a name, workspace/project, or external UUID through project. Use bm_man(page="bm-search(3)") for the installed contract, or see the tool guide. CLI commands retain their shell names.

CLI essentials

bash
# Projectsbasic-memory project listbasic-memory project add research ~/researchbasic-memory project set-cloud research   # route through cloudbasic-memory project set-local research   # revert
# Configbasic-memory config list                        # all settings, effective values, env overridesbasic-memory config set cli_output_style plain  # validated through the config modelbasic-memory config unset cli_output_style      # revert to default
# Health & maintenancebasic-memory statusbasic-memory doctor              # report project problems and the commands that fix thembasic-memory tool edit ...  # CLI access to MCP toolsbasic-memory update              # check for and install updates
# Importsbasic-memory import claude conversationsbasic-memory import chatgptbasic-memory import memory-json

Routing flags (--local / --cloud) force a target when you're in mixed mode. Full CLI reference in the docs.

Auto-updates

CLI installs check for updates every 24 hours by default and apply them silently (so the MCP server keeps responding).

  • Supported install sources: uv tool, Homebrew
  • Skipped for uvx (ephemeral runtime managed by uv)
  • Manual: bm update (check + apply) or bm update --check (check only)

Disable in ~/.basic-memory/config.json:

json
{ "auto_update": false }

Telemetry

Minimal, anonymous events to understand the CLI-to-cloud conversion funnel.

What we collect: cloud promo impressions, cloud login attempts and outcomes, promo opt-out events.

What we don't: file contents, note titles, knowledge base data, PII, IP addresses, per-command or per-tool tracking.

Events go to our Umami Cloud instance (open-source, privacy-focused) on a background thread — never blocks the CLI.

Opt out:

bash
export BASIC_MEMORY_NO_PROMOS=1

This disables promos and all telemetry.

Logging

Basic Memory uses Loguru. Defaults vary by entry point:

Entry pointDefaultWhy
CLI commandsFile onlyDoesn't interfere with command output
MCP serverFile onlyStdout would corrupt JSON-RPC
API serverFile (local) or stdout (cloud)Docker/cloud uses stdout

Log file: ~/.basic-memory/basic-memory.log (10MB rotation, 10 days retention).

Environment variables

VariableDefaultDescription
BASIC_MEMORY_LOG_LEVELINFODEBUG / INFO / WARNING / ERROR
BASIC_MEMORY_CLOUD_MODEfalseAPI logs to stdout with structured context
BASIC_MEMORY_FORCE_LOCALfalseForce local API routing
BASIC_MEMORY_FORCE_CLOUDfalseForce cloud API routing
BASIC_MEMORY_EXPLICIT_ROUTINGfalseMark route selection as explicit
BASIC_MEMORY_ENVdevSet to test for test mode (stderr only)
BASIC_MEMORY_NO_PROMOSfalseDisable cloud promos and telemetry
BASIC_MEMORY_IMPORT_UPLOAD_MAX_BYTES104857600Max uploaded import size
bash
BASIC_MEMORY_LOG_LEVEL=DEBUG basic-memory reindextail -f ~/.basic-memory/basic-memory.log

Development

Basic Memory supports SQLite (default, fast, no Docker) and Postgres (via testcontainers — Docker required).

bash
just install          # Install with dev dependenciesjust test-sqlite      # All tests, SQLitejust test-postgres    # All tests, Postgres (testcontainers)just test             # Both backendsjust fast-check       # fix/format/typecheck + impacted testsjust doctor           # File <-> DB consistency check (temp config)just package-check    # Claude Code, skills, Hermes, OpenClaw package checksjust lintjust typecheck        # Pyright (primary)just typecheck-ty     # ty (supplemental)just formatjust check            # All quality checksjust migration "msg"  # New Alembic migration

Tests use pytest markers: windows, benchmark, smoke. See justfile for the full list.

Contributions welcome — see CONTRIBUTING.md.

License

AGPL-3.0.

Built with ♥️ by Basic Machines

來源:README.md,提交 c9bd187

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:軟體包安裝失敗。

版本歷史

3
  1. v1.0.0最新Oct 30, 2026
  2. v0.24.1Oct 23, 2026
  3. v0.23.2Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Memory 整合