
open-memex
io.github.stoneskinv0.7.2更新于 Oct 4, 2026
Local-first memory for AI coding agents — Markdown + SQLite FTS5, shared across editors via MCP.
概览
为 AI 编程助手提供本地持久记忆,以 Markdown 保存项目事实与个人偏好,并用 SQLite 关键词索引检索。
- 功能
- open-memex 把每条事实保存为独立的 Markdown 记忆文件,分为项目与个人两种范围,并用 SQLite FTS5 建立 BM25 关键词索引。其 MCP 服务器提供十一个工具,包括 memory_add、memory_search、memory_list、memory_supersede 和 memory_forget,以及 memory_submit、memory_promote、memory_resolve 等团队评审工具。会话首轮可自动注入最相关的记忆,助手也能按需检索全部记忆。记忆就是普通文件,可自行打开、编辑或删除,索引可随时重建。
- 适用场景
- 当你反复向 AI 编程助手解释同一代码库的约定、决策和坑点,或希望同一台机器上的多个支持 MCP 的编辑器共用一份记忆而不是各自为政时,适合使用。它首先面向个人开发者,通过 Git 的团队共享是可选的,且从不自动发生。
- 运行要求
- 需要 Node.js 22.14 或更高版本,因为内置的 SQLite 驱动有此要求。可用 npm 全局安装,或用 npx 直接运行。不需要账号、API 密钥或网络访问。需在项目根目录运行 open-memex init 完成编辑器接入;opencode 也可改用原生插件。记忆数据存放在用户的应用数据目录下。
安装
在 SourceWeft 中
- 打开 控制台中的 open-memex,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
open-memex
Persistent memory for your AI coding agents — on your machine, in plain Markdown, shared by every tool you code with.
Every AI coding session starts from zero: you re-explain the project, the agent rediscovers the same gotchas, and yesterday's decisions vanish when the chat ends. open-memex gives your agents a memory that survives the session. Say "remember: we deploy on Fridays" once, and next week Copilot, Cursor, opencode, or Claude Code already knows — because they all read and write the same local memory on your machine.
- Free and open source (Apache-2.0). No account, no cloud, no telemetry — everything lives on your machine, in files you can open and edit.
- Local-first: memories are plain Markdown files (the source of truth) with a rebuildable SQLite keyword index. Nothing leaves your machine unless you explicitly share it.
- One memory, every agent: wire up several editors with one command; they share the same memory instead of keeping separate silos.
[Terminal demo: two memories saved on Monday, recalled by search in a fresh session on Friday]
New here? This README takes you from install to a working memory in about a minute. The concept guide explains the mental model in depth once you're up and running.
Contents
- Quick start
- Core concepts
- Which editors, which features
- Installation
- Setting up your editor
- What
initchanges on your machine - Capture: how memories get saved
- Tools the agent gets
- Memory types
- Team workflow: sharing memories through Git
- Retrieval: how memories come back
- Security & data
- Limitations
- Upgrading
- Storage layout
- Config
- CLI reference
- MCP server
- Scopes, in detail
- Troubleshooting
- FAQ
- Project status
Quick start
You need Node.js ≥ 22.14 (check with node -v). Then:
init detects the editors you have installed (VS Code, Cursor, opencode, and
Visual Studio when your project has a solution file) and connects each one to
open-memex. Restart your editor afterwards.
See it work (30 seconds):
Now open a new chat in your editor and ask your agent: "When does this project deploy?" It already knows — no re-explaining. That round trip, capture once and recall forever, is the whole product. Everything below is detail.
Optional but recommended — check everything is wired up:
Core concepts
Three ideas explain almost everything open-memex does.
1. Two scopes: project and personal.
Every memory belongs to one of two places:
- project — knowledge about one codebase (decisions, constraints, lessons). Scoped to the current repo automatically; you never set this up by hand.
- personal — knowledge about you (preferences, habits) that applies in every project. It lives only on this machine and can never be shared into a repo.
Facts about you ("I prefer concise diffs") go to personal; everything else
defaults to the current project.
2. Capture → recall. Memories are saved as small Markdown files, one fact each. On the first turn of every new session, open-memex hands your agent the most relevant ones automatically, so it starts the session already knowing them. The agent can also search the full memory on demand. You never have to "load" anything yourself.
3. Your files, your rules.
The Markdown files are the source of truth — open them, edit them, delete them,
grep them. The SQLite index next to them is just a search accelerator and
rebuilds from the files at any time (open-memex reindex). Team sharing, when
you want it, goes through the same review flow as code: nothing is shared
automatically (see Team workflow).
Which editors, which features
open-memex talks to editors two ways: a native opencode plugin, and a
standard MCP server that any MCP-capable editor can use. (MCP — Model
Context Protocol — is the open standard editors use to give agents extra tools;
open-memex appears in your editor as a set of memory_* tools.) What you get
depends on which path an editor uses:
* MCP has no hard session-start hook, so open-memex sends the agent guidance in
the MCP handshake (including how many drafts are waiting) and init writes the
fuller version into the editor's instruction files. In practice agents follow
it; the opencode plugin is the only path with true built-in first-turn
injection. The Tools section lists the 5 core tools
and the 6 extra workflow tools, so the "5 vs 11" split is explicit.
All editors on the same machine read and write the same memory — a constraint captured in VS Code is respected in opencode; a lesson learned in Cursor shows up in Claude Code. (Different machines do not sync automatically; see the FAQ.)
init also installs an Agent Skill (a short instruction file that teaches
skill-aware agents to use the CLI) for VS Code and Cursor, and for opencode in
per-project MCP mode. With the opencode native plugin wired, no skill is
installed there — the plugin already provides the memory tools, and a second
instruction set only made agents chatty.
How it compares
Instruction files are great for a handful of standing rules — keep using them
(open-memex can even draft one from your memories; see distill-agents below).
open-memex covers the growing pile of decisions, lessons, and preferences that
no one remembers to write down.
Installation
Requirements
- Node.js ≥ 22.14 (
open-memex doctorverifies this for you). The floor is the SQLite driver's:better-sqlite313 is built against Node-API 10, which Node gained in 22.14.0 — older Node segfaults on the first database open.
Install the CLI
That's the stable release. Installing the package may print a reminder to run
open-memex init — the editor wiring is a separate step (see
Setting up your editor), so don't worry if you
don't see the reminder; just run init next.
Two alternatives:
- No install — run via npx:
npx -y open-memex <command>runs any command without installing (e.g.npx -y open-memex init --client vscode). Slower to start, nothing to uninstall. - Alpha builds (newest features, rougher edges, for testers):
npm install -g open-memex@alpha. Check what's published withnpm view open-memex version(stable) andnpm view open-memex@alpha version(alpha).
If open-memex isn't found after installing, your PATH needs attention — see
Troubleshooting.
From source (for contributors)
Setting up your editor
Run init from your project root (the top folder of the repo you're working
in) so the project scope resolves to that repo:
--yes accepts the recommended defaults for everything init asks about
(editors to wire, auto-capture, first-turn recall). Leave it off if you want to
answer each question. With no --client, init detects your installed editors
and wires them all — one init covers every project. Prefer a single editor?
Pass --client:
VS Code (Copilot):
Writes the MCP server entry; reload the window afterwards and confirm the
open-memex server is started in Copilot Chat's MCP panel. By default this
writes a project-level .vscode/mcp.json (an interactive run asks which
level you want); add --global for VS Code's user-level config instead —
one setup that works in every project.
Cursor:
Same shape as VS Code: project-level .cursor/mcp.json by default,
user-level MCP config with --global, plus Copilot-style instructions.
opencode (native plugin — recommended):
Merges the native plugin into your user-level ~/.config/opencode/opencode.json
(or opencode.jsonc if that's the file you already have) — one-time, every
project picks it up, no per-project init. You get the 5 core tools, keyword
auto-capture, and first-turn context injection. (A config file with comments is
left untouched — init prints the line to add by hand.)
Both opencode generations are supported from the same install: init writes
the opencode 1 spelling ("plugin") and the opencode 2 spelling ("plugins")
— each host reads its own key. Opencode 1 needs version 1.18.29 or newer
for this. open-memex doctor tells you if the wiring and the installed host
version don't match.
opencode (as a plain MCP consumer):
Writes a project-level opencode.jsonc with the MCP server. Only needed if you
prefer plain MCP over the native plugin — you give up keyword capture and
built-in injection.
Claude Code (from your project root):
Visual Studio (from your solution directory):
Writes solution-level .mcp.json. Requires Visual Studio 2022 17.14+ or Visual
Studio 2026 (Windows-only). Visual Studio also auto-discovers .vscode/mcp.json
and .cursor/mcp.json, so the VS Code setup above works too.
Codex: no init client yet — add the server manually via
open-memex mcp --print-config as a starting point ([mcp_servers] in
config.toml, or codex mcp add).
One-time setup for all projects (VS Code / Cursor)
Two different "globals" — don't mix them up.
npm install -g open-memexinstalls the package globally: it puts theopen-memexcommand on your PATH.init --globalwrites the editor config at user level instead of the project: init once, the wiring works in every project. It works the same whether the package was installed globally or run via npx.
The --global form writes the server entry to the editor's user-level MCP
config (%APPDATA%\Code\User\mcp.json on Windows,
~/Library/Application Support/Code/User/mcp.json on macOS,
~/.config/Code/User/mcp.json on Linux; ~/.cursor/mcp.json for Cursor)
instead of the project — init once, the server starts in every project.
A per-project .vscode/mcp.json still wins if a project defines its own.
If the user-level file has comments in it (editors accept JSONC), init leaves
the file untouched and prints the exact snippet to paste in by hand.
init behavior notes
- Existing config files are merged, never overwritten — re-running
initis safe.--forcerewrites our entries. - With no durable
open-memexonPATH(e.g. one-shot npx),initwrites annpx -y open-memex mcpserver command into the config so the setup keeps working.npm i -g open-memex+open-memex init --forceswitches to the faster direct command later. - On an interactive terminal,
initshows the detected editors and asks you to confirm; scripts and CI never prompt and wire every detected editor. - If you run bare
open-memexon a machine where init never completed, it offers to run it for you (interactive terminals only).
Remove the wiring
Reverses init — removes the MCP server entry, the opencode plugin line, the
Agent Skill, and the open-memex section of the editor instructions. With no
--client it cleans up every detected editor; --global limits the cleanup to
user-level wiring. Your memories are never touched.
What init changes on your machine
Everything init writes, in one place:
- Memory data (created on first use, not by
inititself):%APPDATA%\open-memex\on Windows,~/.local/share/open-memex/on macOS/Linux — your memory files and the search index. Nothing here is ever modified byuninstall. - Editor wiring (removed by
open-memex uninstall):- opencode: a
"plugin"entry (opencode 1) and a"plugins"entry (opencode 2) merged into~/.config/opencode/opencode.json(or.jsonc). Stalemy-o-memoryentries from before the rename are removed at the same time. - VS Code / Cursor: an
open-memexserver entry in the user-level or project-level MCP config, plus an open-memex section in the Copilot instructions (user-level~/.copilot/copilot-instructions.mdby default;--instructions projectwrites.github/copilot-instructions.mdin the repo instead, for teams where everyone uses open-memex). - Visual Studio:
.mcp.jsonnext to your solution. - Agent Skill: a
skills/open-memex/folder for VS Code (~/.copilot/skills/), Cursor (~/.cursor/skills/), or opencode in per-project MCP mode (~/.config/opencode/skills/).
- opencode: a
- Your repo: nothing. Files only appear in a repo when you explicitly run
submit(see Team workflow) — a local commit, never an automatic push.
Files with comments (JSONC) are never rewritten: init prints the exact
snippet to paste instead.
Capture: how memories get saved
Three ways memories get in:
- Keyword triggers (opencode native plugin only): say
remember …,note that …,don't forget: …,TIL …,save this …— or in Chinese记住…/记一下…/记录一下…/别忘了:…— and the sentence is captured without any tool call. Captures land in the current project by default; phrases that signal "this is about me" —remember for me …,help me remember: …,记住我…,替我记…,帮我记…,我觉得…,我喜欢…— go to personal instead, and team-context phrases (我们决定…,帮我们记住…) stay in project. Two rules keep the noise down (D67): a trigger must be a statement to the store, so the narration forms记得…/remind me to…/别忘了带伞/don't forget the wifi passwordnever fire (add a separator —别忘了:…,don't forget: …— orthatto make it an instruction); and a captured body under 3 characters is rejected as a fragment rather than saved —capture --dry-runsays so instead of dropping it silently. A trigger also owns its own sentence: the plugin tells the agent what it just stored, and amemory_addthat re-saves the same words within the next few minutes is refused with the stored id (D73) — one thing you said is one memory, not three copies of it. - The agent saves it: in any editor, ask your agent to remember something
(or it saves on its own when you state a fact worth keeping) — it calls
memory_add. The routing above is a heuristic; you can always say "save this to my personal memory" or use the CLI with--scopeto be explicit. - Checkpoint proposals: when a task wraps up, the agent proposes 1–3 short candidate memories distilled from the session — decisions and their reasons, conventions, gotchas, approaches tried and abandoned — and saves only the ones you approve. Nothing is written silently: no draft is created behind your back.
- The CLI:
open-memex add "…"with optional--scope/--tag/--type/--aliases.
Aliases. Each saved memory can carry up to 4 alternate phrasings
(synonyms, another language's equivalent) that are indexed with it, so a
question worded differently still finds the memory — "vacation days" finds the
holiday policy. init asks once whether to enable this (default on); turn it
off any time with open-memex config set captureAliases false.
Redaction. Wrap anything sensitive in <private>…</private> and it is
stripped before saving. Recognized secrets (API keys, tokens, high-entropy
credentials) are masked in place — the first 4 characters are kept so you can
tell which key it was, the rest is replaced — and the memory is still saved.
Preview exactly what a message would capture, safely, any time:
If a secret slips through anyway, open-memex forget <id> deletes the memory.
Tools the agent gets
The MCP server exposes eleven tools; the opencode native plugin exposes the five core ones (marked ●). The other six are the team-review workflow tools — they only matter once you share memories through Git.
So an MCP-connected editor always has the full set; opencode's plugin covers capture and recall, and anything workflow-shaped goes through the CLI or an MCP-connected editor.
Memory types
Every memory has a type (what it is) and tags (what it's about). Eleven
types are built in:
--type accepts any string, but sticking to the built-in set keeps session-start
labels, search, and distill-agents output predictable.
Team workflow: sharing memories through Git
Working solo? You can skip this section — everything above is the whole product for one person. Nothing below ever happens automatically.
Personal notes stay private. Project knowledge, when you choose to share it, follows an explicit, reviewable pipeline shaped like code review:
- Capture — save decisions, gotchas, lessons as drafts during normal work.
- Review — drafts wait in a local outbox (on your machine, invisible to
git);
open-memex sync-status— or just saying "sync memory" in chat — shows what's pending. - Submit — you name the memories; they move into
<repo>/.ai/open-memex/with a local commit on your current branch. open-memex never pushes on its own; it prints the push + PR commands, and an agent holding your explicit yes can carry them out. - PR review — memories are plain Markdown; reviewers approve, request changes, or reject through the normal branch/PR process.
- Recall — published memories are injected at session start and searchable on demand, for humans and agents alike.
Whoever tends the shared memory follows the curator convention: what to approve, what to send back, and the hygiene rules that keep shared memory from rotting.
Retrieval: how memories come back
On the first turn of every session, open-memex injects an [OPEN-MEMEX] block
into the agent's context with the most recent project memories (default: top 8)
and your personal preferences (default: top 5). It looks like this:
It's a snapshot, not the whole memory — the agent can call memory_search any
time for the rest. Both top-N counts are configurable (see Config).
For MCP clients this block is delivered as handshake guidance the agent follows;
the opencode plugin injects it directly on the first turn.
Security & data
- Local-first: everything lives on your machine (
%APPDATA%\open-memexon Windows,~/.local/share/open-memexon macOS/Linux) plus the repos you choose. Zero cloud calls, zero accounts, zero third-party APIs, zero telemetry. - Secrets stay out:
<private>…</private>spans are stripped; detected API keys/tokens are masked in place before saving. Preview withopen-memex capture --dry-run "…". - Personal never syncs: the
personalscope is this machine only — excluded from export by default and can never enter a repo. - Auditable sharing: team memories move only by explicit
submit, travel through branch/PR review, and everypromotetransition is appended to the memory'sreview_history(who / when / why). - You own the files: Markdown is the source of truth — inspect, edit, or delete anything by hand; the SQLite index rebuilds from the files.
Limitations
Honest edges, so nothing surprises you:
- Keyword search, not semantic. Retrieval is BM25 keyword matching: search finds the words you saved, not paraphrases. (Plain questions are fine — "how do we…" / "请问…" wording is filtered out before matching, so asking naturally doesn't dilute the results.) No embedding model is ever downloaded without your explicit opt-in.
- One machine. Editors on the same machine share memory; there is no
cross-machine sync.
export/importbundles (below) move memory between machines manually. - A snapshot, not everything. Session-start recall is a top-N snapshot (8
project + 5 personal by default); older memories are one
memory_searchaway, but they are not all in context at once. - MCP guidance is advisory. Outside opencode, proactive capture and recall depend on the agent following the handshake instructions — there is no hard session-start hook in MCP. The tools themselves always work when called.
- Capture routing is a heuristic. Personal-signal phrases (
remember for me …,我喜欢…) go to personal; everything else defaults to the current project. When it guesses wrong, say the scope out loud or use--scopein the CLI.
Upgrading
Your editor configs point at the installed open-memex command, so upgrades
need no re-wiring. After a major upgrade, run open-memex init --force once to
refresh the installed Agent Skill and instruction files with the latest wording.
If you installed from source or moved the package, --force also re-points the
opencode plugin path.
What changed in each version: see the CHANGELOG.
Storage layout
Each .md file is one memory: YAML frontmatter (id, scope, type, tags, created_at, schema_version, …) followed by the content. You can edit them by
hand — the index re-syncs from the files, and Markdown is always the source of
truth (open-memex reindex rebuilds the index from scratch).
Once you submit, project memories also live as Markdown files under
<repo>/.ai/open-memex/ (configurable via memoryDir), where they travel with
branches and PRs like any other file.
Config
Settings live in ~/.config/opencode/open-memex.jsonc — the opencode in the
path is historical; this one file is shared by every client. Override the config
path with OPEN_MEMEX_CONFIG and the storage root with OPEN_MEMEX_HOME
(the pre-rename MY_O_MEMORY_CONFIG / MY_O_MEMORY_HOME names are still
honored as fallbacks).
Defaults:
open-memex config prints the effective config (defaults + file). Change a
setting after install:
Settable keys: maxProjectMemories, maxProfileItems, injectOnFirstTurn,
keywordCaptureEnabled, captureAliases, logLevel, memoryDir, and sync.autoPull (a dotted
key that writes into the nested sync object). Full design:
docs/V2-DESIGN.md.
CLI reference
Setup & health:
Memory operations:
Team review workflow (two homes, one per stage):
Project drafts live in the appdata outbox (git-invisible, branch-independent);
only drafts you approve move into <repo>/.ai/open-memex/, where they follow
branches and PRs. Nothing moves without you naming it. In an AI chat with the
MCP server connected, just say "sync memory" (or "同步记忆") — the agent
runs the status check, summarizes the outbox drafts, and asks which ones to
sync. The server also tells the agent on its own: at session start the
handshake reports how many drafts are waiting, and every memory-changing tool
result carries the current count when it is non-zero.
Whoever tends the shared memory follows the curator convention —
docs/CURATOR.md: what to approve, what to send back, and the hygiene
rules that keep shared memory from rotting.
Maintenance:
The CLI runs under Node 22. From a source checkout it uses the built-in
experimental TypeScript loader (no build step); the published npm package ships
pre-compiled JS (npm run build at publish time). From a source checkout,
prefix every command with node --experimental-strip-types src/cli.ts (or
npm run cli -- <command> for simple cases — npm swallows unknown --flag
args, so prefer direct node).
MCP server
The same memory tools over the Model Context Protocol, via a stdio server — no host-specific plugin needed. Any MCP client can use open-memex.
The project scope is resolved from the process working directory, so configure
the server with cwd set to your project root (init handles this for you).
Note: MCP is request/response — it gives the agent tools, not the opencode plugin's automatic keyword capture or first-turn injection. Proactive memory use depends on the agent's instructions: the server sends session-start guidance in the MCP handshake
instructions(including the live outbox draft count at session start, plus the pending count appended to memory-changing tool results when non-zero), andinitwrites the fuller version into the editor's instruction files. Both are advisory — no MCP consumer offers a hard session-start hook.
Scopes, in detail
- project — scoped to the current repo, keyed off the git origin URL hash (so clones of the same repo share a scope), or off the cwd path if there is no remote. Default for new memories.
- personal — global across all your projects, this machine only, never
synced. Use for personal preferences. (v1 called this
user;migrate --to-v2renames it.)
See docs/SCOPES.md for the full scope model: key derivation, migration, visibility, reserved names. The concept guide walks through the mental model end to end.
Troubleshooting
Every command dies with no output, or the process crashes (exit 139,
0xC0000005, "Segmentation fault").
Your Node is older than 22.14 and the bundled SQLite driver cannot load on
it. better-sqlite3 13 is compiled against Node-API 10, which Node only gained
in 22.14.0; on anything older require() succeeds and then the first database
open segfaults the process with no diagnostic. open-memex now refuses to load
the driver and says so, but anything already crashing was almost certainly this.
Check with node -v, then either upgrade Node (nvm install 22.14 && nvm use 22.14, or any current 22.x/24.x) or pin the driver down with npm install better-sqlite3@^12.11.1. open-memex doctor reports both the Node floor and a
live driver probe. Known upstream: WiseLibs/better-sqlite3#1514.
open-memex is not recognized / command not found.
A global npm install -g puts the open-memex launcher in npm's global bin
folder. If your terminal can't find it, that folder isn't on your PATH:
- Find the folder:
npm config get prefix- Windows: the launcher (
open-memex.cmd) sits directly in that folder, e.g.C:\Users\<you>\AppData\Roaming\npm - macOS / Linux: it's in
<prefix>/bin, e.g./usr/local/binor~/.nvm/versions/node/v22.x.x/bin
- Windows: the launcher (
- Add it to
PATH:- Windows: Settings → System → About → Advanced system settings →
Environment Variables → add the folder to the User
Path→ restart the terminal. Verify withwhere open-memex. - macOS / Linux: add
export PATH="$(npm prefix -g)/bin:$PATH"to~/.zshrc(or~/.bashrc), restart the shell, verify withcommand -v open-memex.
- Windows: Settings → System → About → Advanced system settings →
Environment Variables → add the folder to the User
- No admin rights / don't want to touch
PATH? Use the npx form —npx -y open-memex <command>resolves the package itself and needs noPATHchanges.
EBUSY / EPERM on better_sqlite3.node (Windows).
On Windows a loaded DLL is locked: if the open-memex MCP server is running
(VS Code MCP panel, Cursor, etc.), npm install -g open-memex cannot replace
better_sqlite3.node and fails with EBUSY / EPERM. Stop the MCP server
first (or quit the editor), then re-run the install. If it still fails, delete
node_modules/open-memex and any node_modules/.open-memex-* temp folders
under your global npm root and install again.
init says it left a config file untouched.
Your editor config has comments (JSONC) or invalid JSON, and open-memex never
rewrites files it can't parse safely. init printed the exact snippet to add
by hand — paste it in, and you're done. The same applies to the opencode
config: if it has comments, add the "plugin" line manually.
Something's off — run open-memex doctor.
Checks the Node version, config source, scope resolution for the current
directory, and storage writability; verifies VS Code hasn't disabled MCP;
then boots a real MCP server and runs initialize + tools/list against
it — all eleven tools must show up. It also reports pre-rename my-o-memory
leftovers if any editor config still references the old package name.
FAQ
Do I need git?
No. Capture and recall work in any folder — without a git repo the project
scope simply keys off the folder path. Git is only needed for the team
workflow (submit / PR review), which is optional.
I use several editors. Do they really share one memory? Yes — on the same machine. Every wired editor reads and writes the same local memory; see the capability matrix for what each editor gets. A decision captured in VS Code is respected in opencode.
I work on two computers (office + home). Does memory sync?
Not automatically — memory is per-machine by design, and your personal scope
never leaves the machine it was created on. To move memory manually, use
open-memex export on one machine and open-memex import on the other.
Project memories shared through Git (Team workflow) travel with the repo, so
cloning the repo on the second machine brings the published project memories
along — your personal ones stay behind, on purpose.
Is it really free? Do I need an account? Free and open source (Apache-2.0). No account, no sign-up, no telemetry, no cloud calls. If it can't phone home, there's nothing to phone home to: the only network open-memex ever touches is your own git remote, when you explicitly push.
I accidentally pasted a secret into a memory. What now?
open-memex search "<part of it>" to find the memory, then
open-memex forget <id> to delete it. To prevent it next time, wrap sensitive
text in <private>…</private> (stripped before saving) — recognized API keys
and tokens are also masked automatically. Preview any message safely with
open-memex capture --dry-run "…".
Do I need to run init for every project?
No. The data layer needs nothing — the project scope is derived automatically
from your cwd's git remote or path, so memories are namespaced per project
with zero setup. The editor wiring is one open-memex init per machine
(user-level wherever the editor supports it). Run it again only after
upgrading (--force) or if you switch editors.
Does opencode need init?
Two paths. Recommended: open-memex init --client opencode --global — it
merges the native open-memex plugin into ~/.config/opencode/opencode.json
for you. One-time setup, applies to all projects, and additionally enables
keyword auto-capture and first-turn memory injection. Prefer to do it by hand?
Add "plugin": ["file:///absolute/path/to/open-memex/src/index.ts"] (the
installed package's path) to that file instead. As a plain MCP consumer:
open-memex init --client opencode writes a project-level opencode.jsonc
(no hooks). If your user-level config has comments, init leaves it
untouched and prints the manual step.
VS Code — run init once, or per project?
Once. Plain open-memex init auto-detects VS Code and writes the MCP server
entry to VS Code's user-level mcp.json (%APPDATA%/Code/User/mcp.json on
Windows, ~/Library/Application Support/Code/User/mcp.json on macOS,
~/.config/Code/User/mcp.json on Linux), so the server starts in every
project. A per-project .vscode/mcp.json still wins when present, and the
entry keeps cwd=${workspaceFolder} so project-scope resolution keeps
working per window. If your user-level mcp.json has comments (VS Code
accepts JSONC), init leaves it alone and prints the exact snippet to add by
hand. An empty file is treated as blank and written to directly.
How do I remove the editor wiring?
open-memex uninstall reverses init: it removes the MCP server entry, the
opencode plugin line, the Agent Skill directory, and the open-memex section of
the Copilot instructions. With no --client it cleans up every detected
editor; --global limits the cleanup to user-level wiring. Your memories are
never touched.
I upgraded Node, or switched versions with nvm. Do I need to reinstall?
The package itself doesn't care: its SQLite driver is a Node-API prebuild, so
it loads on any supported Node (≥ 22.14) with no recompiling, and your
memories live outside the install. But version managers (nvm and friends)
keep a separate global package folder per Node version, so after a switch
open-memex may simply be "not found". Run npm install -g open-memex once
under the new Node, then open-memex doctor to confirm the driver loads.
Project status
open-memex is stable and in daily use; the current stable line is published on
npm as latest, with alpha builds for testers. Release history lives in
GitHub Releases; design
decisions are recorded in the append-only log at
docs/V2-DESIGN.md.
On the horizon (no version promises): native agent plugins for more editors as enhancements over the same MCP tools; local embeddings as an opt-in experiment (no model is ever downloaded without asking); an org layer only if real multi-repo sharing, ACL, or compliance needs demand it.
License
来源:README.md,提交 350496f
工具
0版本历史
1- v0.7.2最新Oct 4, 2026

