能力标签
SwarmVault知识图谱引擎
🛠
AI工具

SwarmVault知识图谱引擎

基于 TypeScript · 开源 AI 工具,GitHub 社区精选
英文名:swarmvault
⭐ 466 Stars 🍴 54 Forks 💻 TypeScript 📄 MIT 🏷 AI 8.2分
8.2AI 综合评分
知识图谱记忆系统RAGMCP工具Agent增强
✦ AI Skill Hub 推荐

经 AI Skill Hub 精选评估,SwarmVault知识图谱引擎 获评「强烈推荐」。这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.2 分,适合有一定技术背景的用户使用。

📚 深度解析

SwarmVault知识图谱引擎 是一款基于 TypeScript 的开源工具,在 GitHub 上收获 0k+ Star,是知识图谱、记忆系统、RAG、MCP工具领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

**为什么要使用开源工具而非商业 SaaS?**
对于个人开发者和有隐私需求的用户,本地部署的开源工具意味着数据不离本机,不受第三方服务商的数据政策约束。同时,开源工具通常没有使用次数限制和月度费用,一次安装即可长期使用,对于高频使用场景的总拥有成本(TCO)远低于订阅制商业工具。

**安装与环境准备**
SwarmVault知识图谱引擎 依赖 TypeScript 运行环境。建议通过 pyenv(Python)或 nvm(Node.js)管理 TypeScript 版本,避免全局环境污染。对于新手用户,推荐先创建虚拟环境(python -m venv venv && source venv/bin/activate),再安装依赖,这样即使出现问题也可以随时删除虚拟环境重新开始,不影响系统稳定性。

**社区与维护**
GitHub Issue 和 Discussion 是获取帮助的最快渠道。在提问前建议先检查 Closed Issues(已关闭的问题),大多数常见问题都已有解答。遇到 Bug 时,提供 pip list 的输出、完整错误堆栈和最小可复现示例,能显著提高开发者响应速度。AI Skill Hub 将持续追踪 SwarmVault知识图谱引擎 的版本更新,及时通知重要功能变化。

📋 工具概览

本地优先的开源知识图谱构建工具,支持RAG检索增强生成。为AI Agent提供持久化记忆和知识库管理能力,适合需要构建私有知识库、增强LLM上下文的开发者和研究人员。

SwarmVault知识图谱引擎 是一款基于 TypeScript 开发的开源工具,专注于 知识图谱、记忆系统、RAG 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 466
开发语言
TypeScript
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
MIT
AI 综合评分
8.2 分
工具类型
AI工具
Forks
54

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

本地优先的开源知识图谱构建工具,支持RAG检索增强生成。为AI Agent提供持久化记忆和知识库管理能力,适合需要构建私有知识库、增强LLM上下文的开发者和研究人员。

SwarmVault知识图谱引擎 是一款基于 TypeScript 开发的开源工具,专注于 知识图谱、记忆系统、RAG 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 开源免费,支持本地部署,数据完全自主可控
  • 活跃的 GitHub 开源社区,持续迭代更新
  • 提供详细文档和使用示例,新手友好
  • 支持自定义配置,灵活适配不同使用环境
  • 可作为基础组件集成进现有技术栈或进行二次开发
🎯 主要使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:npm 全局安装
npm install -g swarmvault

# 方式二:npx 直接运行(无需安装)
npx swarmvault --help

# 方式三:项目依赖安装
npm install swarmvault

# 方式四:从源码运行
git clone https://github.com/swarmclawai/swarmvault
cd swarmvault
npm install
npm start
📋 安装步骤说明
  1. 访问 GitHub 仓库页面
  2. 按照 README 文档完成依赖安装
  3. 根据系统环境完成初始化配置
  4. 参考官方示例或文档开始使用
  5. 遇到问题可在 GitHub Issues 中查找解答
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 命令行使用
swarmvault --help

# 基本用法
swarmvault [options] <input>

# Node.js 代码中使用
const swarmvault = require('swarmvault');

const result = await swarmvault.run(options);
console.log(result);
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# swarmvault 配置说明
# 查看配置选项
swarmvault --config-example > config.yml

# 常见配置项
# output_dir: ./output
# log_level: info
# workers: 4

# 环境变量(覆盖配置文件)
export SWARMVAULT_CONFIG="/path/to/config.yml"
📑 README 深度解析 真实文档 完整度 64/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

SwarmVault

Languages: English | 简体中文 | 日本語

npm npm downloads GitHub stars license [node]()

The local-first LLM Wiki, knowledge graph builder, and RAG knowledge base for AI agents. SwarmVault turns docs, code, transcripts, notes, and URLs into a durable markdown wiki plus a local graph you can inspect, query, and hand to agents. Start with one command, then learn the deeper graph, review, context-pack, and automation workflows when you need them.

Documentation on the website is currently English-first. If wording drifts between translations, README.md is the canonical source.

Install

Agent and MCP Setup

Set up your coding agent so it knows about the vault:

swarmvault install --agent claude --hook --mcp  # Claude Code + graph-first hook + MCP server
swarmvault install --agent codex --hook     # Codex + graph-first hook
swarmvault install --agent cursor           # Cursor
swarmvault install --agent copilot --hook   # GitHub Copilot CLI + hook
swarmvault install --agent gemini --hook    # Gemini CLI + hook
swarmvault install --agent trae             # Trae
swarmvault install --agent claw             # Claw / OpenClaw skill target
swarmvault install --agent droid            # Droid / Factory rules target
swarmvault install --agent kiro             # Kiro IDE + always-on steering
swarmvault install --agent kilo --hook       # Kilo project rules + plugin
swarmvault install --agent hermes           # Hermes user-scope skill
swarmvault install --agent antigravity      # Google Antigravity rules + /swarmvault workflow
swarmvault install --agent vscode           # VS Code Copilot Chat chatmode
swarmvault install status --agent kilo --hook

For hook-capable agents, the installed hooks guide graph-first reads, with enforcement as an opt-in. For Claude Code, --hook injects graph-first instructions at session start — answer code-understanding questions with the plain swarmvault graph query|explain|path commands (avoid --json, which produces much larger output), swarmvault query, swarmvault context build, or wiki/graph/report.md, and read source files only when editing them — along with a graph staleness note. swarmvault graph query "<seed>" prints the top matches with page paths plus an inline excerpt of the best-matching wiki page, so one command usually answers where-is/what-calls questions without follow-up file reads. For who-calls and impact-of-change questions, the hook guidance recommends swarmvault graph callers <symbol>, which lists every caller from graph call edges with exact file:line call-site evidence — scanning only the files the graph identifies as callers — instead of a repo-wide grep. By default the hook runs in advisory mode (context): the first broad Grep/Glob/Bash search per session gets a one-time guidance note pointing at those plain graph commands, and nothing is denied. Pass --graph-first at install time to opt in to enforcement, where the first broad search per session is denied once with a guided redirect to those plain graph commands and the inline excerpt they return (repeating the same search is then allowed, so work is never blocked). The flag accepts an optional value — deny (the default when the flag is passed), context, or off — and persists the chosen mode as hooks.graphFirst in swarmvault.config.json; SWARMVAULT_GRAPH_FIRST=deny|context|off still overrides per session. After Edit/Write tools the hook spawns a background swarmvault graph update --file <path> refresh so the graph tracks your edits. Searches scoped to vault artifact directories (wiki/, raw/, state/) or a single file are never intercepted, and search tools that merely filter piped output (e.g. some-command | grep …) do not count as broad searches. The Codex, Gemini, Copilot, OpenCode, and Kilo hooks carry the same graph-first guidance — a session note plus a one-time search redirect appropriate to each tool's hook API.

swarmvault install --agent claude --mcp also registers the SwarmVault MCP server in the project's .mcp.json ({"mcpServers":{"swarmvault":{"command":"swarmvault","args":["mcp"]}}}). Claude installs additionally write a project skill bundle at .claude/skills/swarmvault/SKILL.md, and --scope user installs the skill, hook, and settings once under ~/.claude for all repos — the hook no-ops in repos without a compiled graph report.

swarmvault install --agent <agent> also keeps the host project clean: in git repos the vault artifact directories are appended to .gitignore, strict-JSON tsconfig.json files get the artifact directories added to "exclude" so stored source copies under raw/ do not break the host typecheck (commented JSONC tsconfigs are left untouched with a warning, linter configs that still cover the artifact directories get an advisory warning, and everything is skipped when SWARMVAULT_OUT keeps artifacts outside the repo).

Recommended per-repo onboarding for token-saving agent workflows:

cd <repo>
swarmvault init && swarmvault ingest .
swarmvault install --agent claude --hook --mcp --graph-first
swarmvault hook install        # git-hook refresh on commit/checkout; accepts an optional repo path (e.g. `swarmvault hook install packages/app`) when the tracked repo lives below the vault root

SwarmVault never writes these project-local rule files during init, quickstart, scan, or clone unless you explicitly opt into configured installs. Use swarmvault install --agent <agent> [--scope project|user] for one target at a time, or list agents in swarmvault.config.json and run swarmvault init --install-agent-rules or swarmvault quickstart <input> --install-agent-rules when you want configured targets installed together. install status reports the files SwarmVault expects for a target without mutating the workspace.

Or expose the vault directly over MCP:

swarmvault mcp

Using OpenClaw or ClawHub? Install the packaged skill with:

clawhub install swarmvault

That installs the published SKILL.md plus a ClawHub README, examples, references, troubleshooting notes, and validation prompts. Keep the CLI itself updated with npm install -g @swarmvaultai/cli@latest.

Quickstart

Worked Examples

Each folder has real input files and actual output so you can run it yourself and verify.

ExampleWhat it showsSource
**[research-deep-dive](worked/research-deep-dive/)**Papers and articles building an evolving thesis with contradiction detection across sourcesworked/research-deep-dive/
**[personal-knowledge-base](worked/personal-knowledge-base/)**Journal entries, health notes, podcasts compiled into a personal Memex with dashboardsworked/personal-knowledge-base/
**[book-reading](worked/book-reading/)**Chapter-by-chapter fan wiki with character and theme pages that compound as you readworked/book-reading/
**[code-repo](worked/code-repo/)**Repo ingest, module pages, graph reports, benchmarksworked/code-repo/
**[capture](worked/capture/)**Research-aware add capture with normalized metadata from arXiv, DOI, URLsworked/capture/
**[mixed-corpus](worked/mixed-corpus/)**Compile, review, save-first output loops across mixed input typesworked/mixed-corpus/

See the examples guide for step-by-step walkthroughs.

Optional: Add a Model Provider

You do not need API keys or an external model provider to start using SwarmVault. The built-in heuristic provider supports local/offline vault setup, ingest, compile, graph/report/search workflows, and lightweight query or lint defaults.

Cloud API Providers

For cloud-hosted models, add a provider block with your API key:

{
  "providers": {
    "primary": {
      "type": "openai",
      "model": "gpt-4o",
      "apiKeyEnv": "OPENAI_API_KEY"
    }
  },
  "tasks": {
    "compileProvider": "primary",
    "queryProvider": "primary",
    "embeddingProvider": "primary"
  }
}

See the provider docs for optional backends, task routing, and capability-specific configuration examples.

You can also manage provider routing from the CLI without hand-editing JSON:

swarmvault provider add router --type openrouter --model openrouter/auto --api-key-env OPENROUTER_API_KEY --capability chat --capability structured --task queryProvider
swarmvault provider list
swarmvault provider show router
swarmvault provider remove router --fallback local

Provider commands preserve unknown swarmvault.config.json fields and store secret references through apiKeyEnv; they do not accept literal API key values.

Packages

PackagePurpose
@swarmvaultai/cliGlobal CLI (swarmvault and vault commands)
@swarmvaultai/engineRuntime library for ingest, compile, query, lint, watch, MCP
@swarmvaultai/viewerGraph viewer (included in CLI, no separate install needed)
🎯 aiskill88 AI 点评 A 级 2026-05-20

高质量的Agent记忆框架,本地优先理念符合隐私需求,MCP标准化设计易于集成,活跃维护且Star增长稳定,值得深度关注。

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
  • 跨境业务、多语言内容运营团队
  • 做语音类 AI 产品的开发者
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • embedding 模型与查询模型不一致导致检索失效
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型
部署方案
  • Docker:swarmvault 提供官方镜像,docker compose up 一键启动
  • CLI:直接 npm install -g / pip install,命令行调用
  • 本地部署:CPU 8GB 起,GPU 推荐 16GB+ 显存
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
swarmvault 中文教程swarmvault 安装报错怎么办swarmvault MCP 配置swarmvault Docker 部署swarmvault Agent 工作流swarmvault 与同类工具对比swarmvault 最佳实践swarmvault 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
  • 跨境业务、多语言内容运营团队
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • embedding 模型与查询模型不一致导致检索失效

👥 适合人群

AI 技术爱好者研究人员和学生开发者和工程师技术创业者

🎯 使用场景

  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发

⚖️ 优点与不足

✅ 优点
  • +MIT 协议,可免费商用
  • +完全开源免费,无授权费用
  • +本地部署,数据完全自主可控
  • +开发者社区支持,遇问题可查可问
⚠️ 不足
  • 安装和初始配置可能需要一定技术基础
  • 功能完整性通常不如成熟商业产品
  • 技术支持主要依赖开源社区,响应速度不稳定
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐

📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

swarmvault 是一款TypeScript开发的AI辅助工具。开源MCP工具:The local-first LLM Wiki: open-source knowledge graph builder, RAG knowledge bas。⭐466 · TypeScript 主要应用场景包括:构建AI Agent长期记忆、企业知识库管理、本地化RAG系统。
💡 AI Skill Hub 点评

AI Skill Hub 点评:SwarmVault知识图谱引擎 的核心功能完整,质量优秀。对于AI爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。

📚 深入学习 SwarmVault知识图谱引擎
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 swarmvault
原始描述 开源MCP工具:The local-first LLM Wiki: open-source knowledge graph builder, RAG knowledge bas。⭐466 · TypeScript
Topics 知识图谱记忆系统RAGMCP工具Agent增强
GitHub https://github.com/swarmclawai/swarmvault
License MIT
语言 TypeScript
🔗 原始来源
🐙 GitHub 仓库  https://github.com/swarmclawai/swarmvault 🌐 官方网站  https://www.swarmvault.ai

收录时间:2026-05-19 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →