Open Zk Kb

io.github.mrosnerr由 GitHub 账号 mrosnerr 发布v1.4.4更新于 Oct 24, 2026

Shared, persistent memory for AI assistants, built on the Zettelkasten method.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

一个面向 AI 编程助手的本地持久记忆服务器,以 Zettelkasten 方式把偏好、纠正和决策存为相互链接的 Markdown 笔记,并用 SQLite 索引检索。

可以做什么
把纠正、偏好和决策作为原子化、相互链接的笔记存入本地知识库,并在 Claude Code、Cursor、Windsurf、OpenCode、Zed、Pi、OMP 等受支持客户端间共享。用全文检索加本地语义匹配的混合搜索,只呈现相关上下文。在会话开始时读取上下文、检查知识库健康状况,并删除不再有用的笔记。笔记是纯 Markdown 文件,背后是可重建的 SQLite 索引。
适用场景
当你反复向编程助手解释技术栈、约定或已纠正过的问题,或希望多个 AI 工具共用一份记忆而非各自独立上下文时适用。
运行要求
以 npm 包形式通过 stdio 在本地运行;即使通过 Pi 包使用也需要 Bun 1.0 或更高版本。无需 API 密钥或云服务,本地嵌入开箱即用。安装程序会配置受支持的客户端并创建本地知识库。
安装前请注意
可选遥测默认关闭;启用后会在后续启动时向 PostHog(EU Cloud)发送每会话一条匿名事件,含客户端、模型 ID、知识库大小和工具调用计数,不含笔记内容。可设 DO_NOT_TRACK=1 阻止。服务器会写入和删除本地知识库中的笔记,请留意助手存了什么。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Open Zk Kb,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

open-zk-kb

[CI] [npm version] [npm downloads] [License: MIT]

You open a new session and your agent has no idea who you are. Again. You re-explain your stack, your conventions, that one edge case you've corrected five times.

open-zk-kb gives your agent a memory — so corrections stick, context compounds, and every session starts smarter than the last.

[Store, apply, inspect, and remove an automatic preference in Pi]
The full loop in Pi: store a preference, carry it into a fresh session, inspect the vault, and remove it when it stops being useful.

Quick start

Requires Bun — install with curl -fsSL https://bun.sh/install | bash

bash
bunx open-zk-kb@latest

The installer configures your selected clients, installs agent instructions, and creates a local vault. Supported clients: OpenCode, Claude Code, Cursor, Windsurf, Zed, Pi, and OMP.

See the Setup Guide for manual installation and troubleshooting.

Why open-zk-kb?

Your agent starts from zero every session. No memory, no learning curve. You correct the same mistakes, re-explain the same conventions, re-teach the same context. Switch tools and it's even worse — your Cursor agent doesn't know what your Claude agent learned.

open-zk-kb fixes that.

  • Correct it once, it sticks — your agent stores corrections, preferences, and decisions. Next session, it already knows.
  • Works across every tool — one knowledge base shared by Claude Code, Cursor, Windsurf, OpenCode, Zed, Pi, and OMP
  • Finds what's relevant — hybrid search matches meaning, not just keywords, so only useful context surfaces
  • Runs locally — no API keys, no cloud, works offline. Your data stays on your machine.
  • Human-readable — plain Markdown files you can browse, edit, and version control
  • Open source — MIT licensed

Pi: native knowledge tools

Install the Pi package, then restart Pi:

bash
pi install npm:open-zk-kb

The extension exposes all ten knowledge-* tools directly in Pi. Results use Pi-native compact rendering: search, store, context, and health have focused summaries and expandable detail, while the other tools show concise status output. The MCP server and local SQLite/embedding work still run with Bun >= 1.0; Pi itself runs under its supported Node.js runtime. Installing Bun is therefore required even when using the Pi package.

Pi also loads active project preferences automatically when a session starts and injects them into model context without requiring a model-initiated search. The visible knowledge-context entry reports what happened without fabricating a tool call.

See the Pi experience guide for the complete preference workflow and renderer examples. For installer-managed instructions, verification, and troubleshooting, see Pi installation.

Configuration

Zero configuration required. Local embeddings work out of the box with no API key.

See the Configuration Guide for embeddings, vault path, lifecycle tuning, and server settings.

Under the hood

Built on the Zettelkasten method — atomic, linked notes with structured kinds. Each note captures one concept (a decision, a preference, a gotcha) and links to related notes, building an interconnected knowledge graph.

Search combines SQLite FTS5 full-text indexing with local vector embeddings (MiniLM-L6-v2) for semantic matching. Markdown files are the source of truth; the database is a rebuildable index.

Telemetry

When enabled (telemetry.enabled: true and telemetry.share: true), open-zk-kb sends one anonymous event for each completed session to PostHog (EU Cloud) on a later startup. It includes a canonical client, bounded model IDs, vault size, and counts for all ten tools—not note content, queries, paths, names, or email addresses. Runtime defaults are disabled; the interactive installer enables sharing only after affirmative consent, while unattended and direct package installs remain disabled unless configured separately. Set DO_NOT_TRACK=1 to unconditionally block sharing (local SQLite counters are unaffected), or keep both flags false. See Telemetry for the full event schema and details.

Documentation

License

MIT License

来源:README.md,提交 a4b0b41

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.4.4最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分