能力标签
Sage-Wiki
🛠
AI工具

Sage-Wiki

基于 Go · 开源免费,本地部署,数据完全自主可控
英文名:sage-wiki
⭐ 534 Stars 🍴 91 Forks 💻 Go 📄 未公布协议 🏷 AI 7.5分
7.5AI 综合评分
Go知识库AI工具
✦ AI Skill Hub 推荐

Sage-Wiki 是 AI Skill Hub 本期精选AI工具之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。

📚 深度解析

Sage-Wiki 是一款基于 Go 的开源工具,在 GitHub 上收获 1k+ Star,是Go、知识库、AI工具领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

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

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

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

📋 工具概览

Sage-Wiki是一款开源的AI工具,用于创建个人知识库。它可以将论文、文章和笔记等内容整合起来,形成一个个人知识库。Sage-Wiki使用Go语言开发,提供了一个易于安装和使用的界面。它的核心价值在于能够帮助用户快速地查找和组织个人知识。

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

GitHub Stars
⭐ 534
开发语言
Go
支持平台
Windows / macOS / Linux(跨平台)
维护状态
正常维护,社区驱动
开源协议
未公布
AI 综合评分
7.5 分
工具类型
AI工具
Forks
91

📖 中文文档

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

Sage-Wiki是一款开源的AI工具,用于创建个人知识库。它可以将论文、文章和笔记等内容整合起来,形成一个个人知识库。Sage-Wiki使用Go语言开发,提供了一个易于安装和使用的界面。它的核心价值在于能够帮助用户快速地查找和组织个人知识。

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

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

# 方式二:从源码编译
git clone https://github.com/xoai/sage-wiki
cd sage-wiki
go build -o sage-wiki .

# 方式三:下载预编译二进制
# 访问 Releases 页面下载对应平台二进制文件
# https://github.com/xoai/sage-wiki/releases
📋 安装步骤说明
  1. 访问 GitHub 仓库页面
  2. 按照 README 文档完成依赖安装
  3. 根据系统环境完成初始化配置
  4. 参考官方示例或文档开始使用
  5. 遇到问题可在 GitHub Issues 中查找解答
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 查看帮助
sage-wiki --help

# 基本运行
sage-wiki [options] <input>

# 详细使用说明请查阅文档
# https://github.com/xoai/sage-wiki
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# sage-wiki 配置说明
# 查看配置选项
sage-wiki --config-example > config.yml

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

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

简介

English | 中文 | 日本語 | 한국어 | Tiếng Việt | Français | Русский

description: "A recorded decision with rationale"

```

With web UI (requires Node.js for building frontend assets)

git clone https://github.com/xoai/sage-wiki.git && cd sage-wiki cd web && npm install && npm run build && cd .. go build -tags webui -o sage-wiki ./cmd/sage-wiki/ ```

Browse in the browser (requires -tags webui build)

sage-wiki serve --ui

Install

```bash

First Compile

sage-wiki compile

First Compile

sage-wiki compile

Docker

```bash

Or from Docker Hub

docker pull xoai/sage-wiki:latest

Or build from source

docker build -t sage-wiki . docker run -d -p 3333:3333 -v ./my-wiki:/wiki -e GEMINI_API_KEY=... sage-wiki ```

Available tags: :latest (main branch), :v1.0.0 (releases), :sha-abc1234 (specific commits). Multi-arch: linux/amd64 and linux/arm64.

See the self-hosting guide for Docker Compose, Syncthing sync, reverse proxy, and LLM provider setup.

Source folders to watch and compile

sources: - path: raw # or vault folders like Clippings/, Papers/ type: auto # auto-detect from file extension watch: true

output: wiki # compiled output directory (_wiki for vault overlay)

The api section configures the primary LLM provider used for all compiler

Multi-Provider Setup

sage-wiki lets you use different LLM providers for different tasks. The api section sets the primary provider for generation (summarize, extract, write, lint, query), while embed can use a completely separate provider for embeddings — each with its own credentials and rate limits.

Use cases: - Cost optimization — cheap model for bulk summarization, quality model for article writing - Best-of-breed — Claude for generation, OpenAI for embeddings, Ollama for local search - Subscription mixing — use your ChatGPT subscription for generation and Gemini subscription for embeddings

Example: Claude for generation + OpenAI embeddings

api:
  provider: anthropic
  api_key: ${ANTHROPIC_API_KEY}

models:
  summarize: claude-haiku-4-5-20251001    # cheap for bulk work
  extract: claude-haiku-4-5-20251001
  write: claude-sonnet-4-20250514         # quality for articles
  lint: claude-haiku-4-5-20251001
  query: claude-sonnet-4-20250514

embed:
  provider: openai
  model: text-embedding-3-small
  api_key: ${OPENAI_API_KEY}

Example: Subscription auth with two providers

sage-wiki auth login --provider anthropic
sage-wiki auth import --provider gemini
api:
  provider: anthropic
  auth: subscription

embed:
  provider: gemini
  # no api_key needed — uses imported Gemini subscription credentials

The models section controls which model is used per task, all within the primary provider. Different models can have very different cost/quality tradeoffs — use smaller models (haiku, flash, mini) for high-volume passes like summarization, and larger models (sonnet, pro) for article writing and Q&A.

Or install and apply to an existing project

sage-wiki pack install academic-research sage-wiki pack apply academic-research --mode merge

Install from a Git URL

sage-wiki pack install https://github.com/someone/their-pack.git

Team Setup

sage-wiki scales from a single-person wiki to a shared knowledge base for teams of 3-50. Three deployment patterns:

Git-synced repo (3-10 people) — the wiki lives in a Git repository. Everyone clones, compiles locally, and pushes. The compiled wiki/ directory is tracked; the database is .gitignored and rebuilt on each compile.

Shared server (5-30 people) — run sage-wiki on a server with the web UI. Team members browse in the browser and connect agents via MCP over SSE.

Hub federation (multi-project) — each project has its own wiki. The hub system federates them into a single search interface with sage-wiki hub search.

```bash

Guides

GuideDescription
[Agent Memory Layer](docs/guides/agent-memory-layer.md)MCP setup, skill files, capture workflows, read-capture-evolve loop
[Team Setup](docs/guides/team-setup.md)Git-synced, shared server, and hub federation deployment patterns
[Contribution Packs](CONTRIBUTING.md)Creating packs, parser authoring, registry submission
[Large Vault Performance](docs/guides/large-vault-performance.md)Tiered compilation, backpressure, code parsers, 100K+ scaling
[Search Quality](docs/guides/search-quality.md)Chunk indexing, query expansion, re-ranking, graph expansion
[Output Trust](docs/guides/output-trust.md)Grounding verification, consensus, promotion/demotion lifecycle
[Subscription Auth](docs/guides/subscription-auth.md)OAuth login, token import, credential management
[Self-Hosted Server](docs/guides/self-hosted-server.md)Docker Compose, Syncthing, reverse proxy, VPS deployment
[Configurable Relations](docs/guides/configurable-relations.md)Custom ontology types, multilingual synonyms, type restrictions
[Local Models](docs/guides/local-models.md)Ollama setup, GPU/CPU routing, per-pass model config

Quickstart

Compiler Pipeline

Edit config.yaml to add api key, and pick LLMs

Edit config.yaml to set source/ignore folders, add api key, pick LLMs

Configuration

config.yaml is created by sage-wiki init. Full example:

```yaml version: 1 project: my-research description: "Personal research wiki"

Embedding provider (optional — auto-detected from api provider)

Ontology types (optional)

Configurable Relations

The ontology has 8 built-in relation types: implements, extends, optimizes, contradicts, cites, prerequisite_of, trades_off, derived_from. Each has default keyword synonyms used for automatic extraction.

You can customize relations via ontology.relations in config.yaml:

  • Extend a built-in type — add synonyms (e.g., multilingual keywords) to an existing type. The default synonyms are kept; yours are appended.
  • Add a custom type — define a new relation name with its keyword synonyms. Relation names must be lowercase [a-z][a-z0-9_]*.

Relations are extracted using block-level keyword proximity — a keyword must co-occur with a [[wikilink]] in the same paragraph or heading block. This prevents spurious edges from cross-paragraph matches.

You can also restrict which entity types a relation connects:

ontology:
  relation_types:
    - name: curated_by
      synonyms: ["curated by", "organized by"]
      valid_sources: [exhibition, program]
      valid_targets: [artist]

When valid_sources/valid_targets are set, edges are only created if the source/target entity type matches. Empty = all types allowed (default).

Zero config = identical to current behavior. Existing databases are migrated automatically on first open. See the full guide for domain-specific examples, type-restricted relations, and how extraction works.

config.yaml

trust: include_outputs: verified # "false" (exclude all), "verified" (confirmed only), "true" (legacy) consensus_threshold: 3 # confirmations needed for auto-promote grounding_threshold: 0.8 # minimum grounding score similarity_threshold: 0.85 # cosine similarity for question matching auto_promote: true # auto-promote when thresholds met


**How it works:**

1. **Query** — sage-wiki answers your question. The output is written to `wiki/under_review/` as pending.
2. **Consensus** — If the same question is asked again and produces the same answer from different source chunks, confirmations accumulate. Independence is scored via Jaccard distance between chunk sets.
3. **Grounding** — Run `sage-wiki verify` to check claims against source passages via LLM entailment.
4. **Promotion** — When both consensus and grounding thresholds are met, the output is promoted to `wiki/outputs/` and indexed into search.
bash

config.yaml

parsers: external: true # enable external parser loading trust_external: true # acknowledge that parsers run unsandboxed ```

Security: external parsers run with timeout enforcement (30s default, 120s max) and environment stripping (only PATH, HOME, LANG). They require double opt-in: parsers.external: true to load parser definitions, and parsers.trust_external: true to acknowledge that parsers execute as unsandboxed subprocesses. Packs with parsers also require --enable-parsers during pack apply.

See CONTRIBUTING.md for the full parser authoring guide.

CLI only (no web UI)

go install github.com/xoai/sage-wiki/cmd/sage-wiki@latest

Folders to never read or send to APIs (vault overlay mode)

base_url: https://openrouter.ai/api/v1

api_key: ${DASHSCOPE_API_KEY}

api: provider: gemini api_key: ${GEMINI_API_KEY} # env var expansion supported # auth: subscription # use subscription credentials instead of api_key # requires: sage-wiki auth login --provider <name> # supported providers: openai, anthropic, gemini # base_url: # custom endpoint (OpenRouter, Azure, etc.) # rate_limit: 60 # requests per minute # extra_params: # provider-specific params merged into request body # enable_thinking: false # e.g., disable Qwen thinking mode # reasoning_effort: low # e.g., DeepSeek reasoning control

can use a DIFFERENT provider for embeddings — with its own api_key, base_url,

api:

api_key: ${ANTHROPIC_API_KEY}

api_key: ${OPENAI_API_KEY}

#

Or import from an existing CLI tool

sage-wiki auth import --provider claude sage-wiki auth import --provider copilot sage-wiki auth import --provider gemini


Then set `api.auth: subscription` in your `config.yaml`:
yaml api: provider: openai auth: subscription ```

All commands will use your subscription credentials. Tokens refresh automatically. If a token expires and can't refresh, sage-wiki falls back to api_key with a warning.

Limitations: Batch mode is unavailable with subscription auth (auto-disabled). Some models may not be accessible via subscription tokens. See the subscription auth guide for details.

MCP Integration

MCP Integration

Ask questions

sage-wiki query "How does flash attention optimize memory?"

similarity_threshold: 0.85 # question matching threshold

🇨🇳 中文文档镜像 AI 翻译 2026-06-09
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

项目简介:sage-wiki 是一个记录决策的工具,带有合理性

📋 环境依赖

环境依赖与系统要求:需要 Node.js 构建前端资产

🛠 安装步骤(Docker/pip/源码)

安装:首先clone 仓库,安装依赖,编译前端资产,使用 go build

🚀 使用教程

使用教程:包括 Agent Memory Layer、Team Setup、Contribution Packs 等

⚙️ 配置说明(含 MCP / env)

配置说明:编辑 config.yaml 添加 API 密钥,选择 LLMs

🔌 API 说明

API/接口说明:CLI 只支持(无 web UI)

🔄 工作流/模块

工作流 / 模块说明:包括 MCP 集成,Compiler Pipeline 等

❓ FAQ 摘要

常见问题:使用 sage-wiki query 查询答案

🎯 aiskill88 AI 点评 A 级 2026-06-09

Sage-Wiki是一款功能强大的AI工具,能够帮助用户快速地查找和组织个人知识。它的界面易于使用,且提供了一个易于安装的界面。然而,Sage-Wiki的性能和稳定性需要进一步优化。

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

⚡ 核心功能

👥 适合谁
  • 使用 Cursor 编辑器、希望提升 AI 编程效率的开发者
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型

👥 适合人群

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

🎯 使用场景

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

⚖️ 优点与不足

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

该工具未明确声明开源协议,商业使用前请联系原作者确认授权范围,避免侵权风险。

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

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

🔗 相关工具推荐

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

❓ 常见问题 FAQ

使用Go语言安装Sage-Wiki
💡 AI Skill Hub 点评

经综合评估,Sage-Wiki 在AI工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。

📚 深入学习 Sage-Wiki
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 sage-wiki
原始描述 开源AI工具:An LLM-compiled personal knowledge base. Drop in your papers, articles, and not。⭐534 · Go
Topics Go知识库AI工具
GitHub https://github.com/xoai/sage-wiki
语言 Go
🔗 原始来源
🐙 GitHub 仓库  https://github.com/xoai/sage-wiki

收录时间:2026-06-09 · 更新时间:2026-06-09 · License:未公布 · AI Skill Hub 不对第三方内容的准确性作法律背书。