obsidian-second-brain AI工具 是 AI Skill Hub 本期精选AI工具之一。已获得 1.1k 颗 GitHub Star,综合评分 8.2 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
将Obsidian笔记库转化为AI驱动的智能第二大脑。通过Claude API集成,实现笔记智能化处理、跨CLI技能调用、知识库关联推理等功能。适合需要智能知识管理的研究者、创意工作者和AI爱好者。
obsidian-second-brain AI工具 是一款基于 Python 开发的开源工具,专注于 Claude集成、笔记增强、AI代理 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
将Obsidian笔记库转化为AI驱动的智能第二大脑。通过Claude API集成,实现笔记智能化处理、跨CLI技能调用、知识库关联推理等功能。适合需要智能知识管理的研究者、创意工作者和AI爱好者。
obsidian-second-brain AI工具 是一款基于 Python 开发的开源工具,专注于 Claude集成、笔记增强、AI代理 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install obsidian-second-brain
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install obsidian-second-brain
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/eugeniughelbur/obsidian-second-brain
cd obsidian-second-brain
pip install -e .
# 验证安装
python -c "import obsidian_second_brain; print('安装成功')"
# 命令行使用
obsidian-second-brain --help
# 基本用法
obsidian-second-brain input_file -o output_file
# Python 代码中调用
import obsidian_second_brain
# 示例
result = obsidian_second_brain.process("input")
print(result)
# obsidian-second-brain 配置文件示例(config.yml) app: name: "obsidian-second-brain" debug: false log_level: "INFO" # 运行时指定配置文件 obsidian-second-brain --config config.yml # 或通过环境变量配置 export OBSIDIAN_SECOND_BRAIN_API_KEY="your-key" export OBSIDIAN_SECOND_BRAIN_OUTPUT_DIR="./output"
<p align="center"> <a href="https://github.com/eugeniughelbur/obsidian-second-brain"> <img src="media/banner.png" alt="obsidian-second-brain: one brain, eight platforms, 47 commands. A cross-platform skill for Obsidian that runs on Claude Code, Codex, Gemini, OpenCode, Antigravity, Hermes, Pi, and Grok Bot." width="100%" /> </a> </p>
<p align="center"> <a href="#install"><img src="https://img.shields.io/badge/Claude_Code-D97757?style=for-the-badge&logo=anthropic&logoColor=white" alt="Claude Code" /></a> <a href="#grok-bot"><img src="https://img.shields.io/badge/Grok_Bot-000000?style=for-the-badge&logo=x&logoColor=white" alt="Grok Bot" /></a> <a href="#codex-cli--gemini-cli--opencode"><img src="https://img.shields.io/badge/Codex_CLI-412991?style=for-the-badge&logo=openai&logoColor=white" alt="Codex CLI" /></a> <a href="#codex-cli--gemini-cli--opencode"><img src="https://img.shields.io/badge/Gemini_CLI-4285F4?style=for-the-badge&logo=googlegemini&logoColor=white" alt="Gemini CLI" /></a> <a href="#codex-cli--gemini-cli--opencode"><img src="https://img.shields.io/badge/OpenCode-181818?style=for-the-badge&logo=opensourceinitiative&logoColor=white" alt="OpenCode" /></a> </p>
<p align="center"> <strong>Your vault is the memory. Claude, Grok Bot, Codex - same brain.</strong> <br /> <em>Your vault outlives whichever CLI you switch to.</em> </p>
<p align="center"> <img src="https://img.shields.io/badge/Obsidian-Vault-7C3AED?style=for-the-badge&logo=obsidian&logoColor=white" alt="Obsidian Vault" /> <img src="https://img.shields.io/github/v/release/eugeniughelbur/obsidian-second-brain?style=for-the-badge&color=green" alt="Release" /> <img src="https://img.shields.io/badge/license-MIT-blue?style=for-the-badge" alt="License: MIT" /> <img src="https://img.shields.io/github/stars/eugeniughelbur/obsidian-second-brain?style=for-the-badge&color=yellow" alt="Stars" /> <a href="https://github.com/sponsors/eugeniughelbur"><img src="https://img.shields.io/badge/Sponsor-EA4AAA?style=for-the-badge&logo=github-sponsors&logoColor=white" alt="Sponsor" /></a> </p>
<p align="center"> <strong>An evolution of <a href="https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f">Karpathy's LLM Wiki pattern</a>: a vault that rewrites itself.</strong> <br /><br /> <em>Every source updates existing pages instead of just appending new ones. Contradictions reconcile automatically. Your vault compounds while you sleep.</em> <br /><br /> <strong>Powered by <a href="references/freshness-policy.md">OKM - Open Knowledge Metabolism</a>:</strong> <em>every stored fact is timeless, dated, or a pointer - so your knowledge base never fills with facts that used to be true.</em> <br /><br /> <strong>Built for</strong> <em>developers · founders and operators · writers · researchers - <a href="#choose-your-preset">pick a preset at setup</a></em> <br /><br /> <strong>Start with three:</strong> <em><code>/obsidian-init</code> to set up, <code>/obsidian-save</code> to capture, <code>/obsidian-find</code> to recall. The other 42 are there when you need them.</em> <br /><br /> <em>auto-synthesis · thinking tools that argue with you</em> <br /><br /> <em>live research from X, the web, and YouTube · 4 scheduled agents · 4 role presets</em> <br /><br /> <em>write-time AI-first validator · <code>/create-command</code> interview flow · multilingual trigger schema</em> <br /><br /> <a href="#install"><strong>Install →</strong></a> · <a href="DEMOS.md">Demos</a> · <a href="#what-happens-when-you-install-this">See it in action</a> · <a href="#45-commands">All commands</a> · <a href="#choose-your-preset">Presets</a> · <a href="#the-vault-is-alive">OKM</a> · <a href="https://github.com/eugeniughelbur/obsidian-second-brain/discussions">Discussions</a> </p>
<p align="center"> <a href="DEMOS.md"> <img src="media/obsidian-save.gif" alt="One /obsidian-save command turns a conversation into five cross-linked AI-first notes: a person, a project with the decision, a task, a board card, and the daily note." width="100%" /> </a> <br /> <em>One <code>/obsidian-save</code> - five cross-linked notes. Real footage, synthetic vault. <a href="DEMOS.md">More demos →</a></em> <br /><br /> <em>If this looks useful, <a href="https://github.com/eugeniughelbur/obsidian-second-brain">star the repo</a>. It is how other people find it.</em> </p>
<p align="center"> <strong>v0.15 - The Port (September 2026):</strong> the plugin now runs on Windows the way it runs on macOS and Linux, fixed end to end by a contributor across two PRs.<br/> <em>Windows paths, CRLF and BOM notes, UTF-8 everywhere, a USERPROFILE-aware config home; plus Gemini-first /podcast with a free Whisper fallback, tag syntax and taxonomy checks, Simplified Chinese triggers, /obsidian-reindex, an Obsidian lint plugin, platform ownership, AI-FIRST.md, a reproducible retrieval benchmark, a generated docs site, typed edges, and the callout preamble. 763-test CI wall.</em> <a href="CHANGELOG.md">See the changelog →</a> </p>
---
An Obsidian plugin runs inside Obsidian and is written in TypeScript against Obsidian's plugin API. A Claude Code skill for Obsidian runs inside Claude Code and is written as a set of markdown command files plus optional Python scripts. Plugins are constrained to what Obsidian's API exposes. Skills are constrained only by what Claude can do in your shell, which is why this skill can do things plugins can't: pull live web research into vault notes, run scheduled agents that update your vault while you sleep, and synthesize knowledge across years of notes using Anthropic's Claude.
After a meeting: /obsidian-save Claude pulls out every decision, person, task, and idea and saves each one to the right note. You do nothing.
You recorded a voice memo: /obsidian-ingest meeting.m4a Claude transcribes it with a local Whisper install, attributes speakers where the transcript makes them identifiable, extracts every promise and action item, and distributes across entity pages, task boards, and the daily note.
You screenshot a whiteboard: /obsidian-ingest photo.png Claude reads the image, extracts text and structure, creates concept notes, links to related projects. A photo becomes knowledge.
You find a great video: /obsidian-ingest https://youtube.com/... Claude doesn't summarize into one note. It REWRITES your existing pages. People get updated. Contradictions get resolved. Patterns trigger new synthesis pages. One URL in. The vault is smarter.
Before a big decision: /obsidian-challenge Claude searches your vault for past failures and reversed decisions on the same topic. Pushes back with your own words. Your vault holds you accountable.
You want to see the big picture: /obsidian-visualize Claude generates a visual canvas of your entire vault. Hub nodes centered, color-coded by type, orphans highlighted. Open it in Obsidian and see the shape of your knowledge.
You go to sleep: The nightly agent runs 5 phases: closes the day, reconciles contradictions, synthesizes cross-source patterns, heals orphan notes, and rebuilds the index. You wake up to a smarter vault.
You start a new day: /obsidian-daily Claude pulls your calendar events, overdue tasks, and overnight changes into today's note. Your morning starts informed.
Someone shares an X post: /x-read https://x.com/... Grok with live X access fetches the post, the thread, and the replies. Returns verbatim text + TL;DR + key claims + reply sentiment + voices to watch. No more screenshots.
You're planning today's content: /x-pulse "AI automation" Grok scans X for what's trending in your topic right now. Returns 3-5 emerging themes (with rep posts + key voices), gaps nobody is filling, hook formats that are working, and 3 specific post ideas you could write today.
You need real research: /research "AI memory tools" Perplexity Sonar Pro pulls a deep dossier with citations: summary, key facts (every claim with a recency marker and source domain), timeline, key players, contrarian views, recommended further reading, open questions. Saved to your vault, auto-opens in Obsidian.
You want vault-first deep research: /research-deep "AI memory tools" Scans your vault for what you already know. Identifies gaps. Spawns 3-5 targeted searches via Perplexity (web) and Grok (X discourse). Synthesizes a delta report: what's new, what's confirmed, contradictions to resolve, recommended vault updates. Vault baseline doesn't get re-researched. Only gaps get filled.
You hit a great YouTube video: /youtube https://youtu.be/... Free transcript via youtube-transcript-api. Optional metadata + top comments via YouTube Data API v3. Gemini (free tier, Grok fallback) summarizes into TL;DR, Key Points, Notable Quotes (verbatim), Themes, Comment Sentiment, and Worth Following Up On. Saved as an AI-first note in your vault. Add --visual to also watch it: scene-change frame extraction (ffmpeg) that Claude reads with its own vision to capture on-screen text, code, diagrams, and demos the transcript misses.
You never open Obsidian. Everything happens through Claude.
---
One codebase, eight builds. Pick yours below. The vault behavior is identical across all of them; only the install path and the dispatcher file (CLAUDE.md/AGENTS.md/GEMINI.md/.agents/skills//.pi// workflow SKILL.md) differ.
Rather than ask you to take that on faith, here is what each build currently passes:
| Build | Emits a real tree | Script paths resolved | Docs reachable | Toolkit runnable |
|---|---|---|---|---|
| Agent Skills | pass | pass | pass | pass |
| Claude Code | pass | pass | pass | pass |
| Codex CLI | pass | pass | pass | pass |
| Gemini CLI | pass | pass | pass | pass |
| Grok Bot | pass | pass | pass | pass |
| Hermes | pass | pass | pass | pass |
| OpenCode | pass | pass | pass | pass |
| Pi | pass | pass | pass | pass |
Generated by scripts/conformance_report.py, verified in CI on every push. Each build is compiled from the same source tree, then checked for a non-empty output, a resolved script root, reference paths that actually exist in that build, and a Python project shipped beside the scripts. A red cell here is a real red cell, not a missing test.
Prerequisites: Claude Code (or one of the other six platforms below), git, and uv for the Python helpers (health check, research toolkit, bootstrap). jq is required for the classic script install - scripts/setup.sh uses it to edit ~/.claude/settings.json safely and exits if it is missing. Not needed on the plugin path. Optional: Ollama for local semantic search, openai-whisper (installed on first audio ingest, pulls in PyTorch). No API keys needed for the core vault commands.
```
The Grok Bot build emits workflow SKILL.md files that Grok Bot and Sand agents invoke with / or @. Each skill is a self-contained playbook (name, description, operating instructions). The user-obsidian-second-brain MCP server (already connected in Grok Bot) provides the vault I/O layer via obsidian_* tools (obsidian_search, obsidian_read_note, obsidian_save_note, obsidian_update_note, obsidian_validate_note, etc.). Skills tell the agent which MCP tool to call and how to structure the data. Set $OBSIDIAN_VAULT_PATH to your vault root. No hooks, no scheduled agents - Grok Bot has no hook runtime.
This is the skill/playbook half of the Hermes work; the bounded vault-data half is the [MCP connector](integrations/obsidian-mcp-server/). Native cron and lifecycle-hook integration are tracked in [Issue #79](https://github.com/eugeniughelbur/obsidian-second-brain/issues/79).
Point OpenCode at Hermes via OpenRouter. Authenticate once (`/connect`, search OpenRouter, paste your key - or `export OPENROUTER_API_KEY=...`), then in `opencode.json`:
json { "$schema": "https://opencode.ai/config.json", "model": "openrouter/nousresearch/hermes-4-70b", "provider": { "openrouter": { "models": { "nousresearch/hermes-4-70b": {} } } } } ```
Hermes models on OpenRouter (as of 2026-06, openrouter.ai):
| Model id | Best for | Cost (in / out per 1M tokens) |
|---|---|---|
nousresearch/hermes-4-70b | Default. Cheap, capable, 131k context. | $0.13 / $0.40 |
nousresearch/hermes-4-405b | Strongest instruction-following for the synthesis-heavy commands. | $1.00 / $3.00 |
nousresearch/hermes-3-llama-3.1-405b:free | Zero-cost trial (needs any OpenRouter key to authenticate). | free |
For the privacy story, run a smaller Hermes locally through Ollama or LM Studio and point OpenCode at the local endpoint - no data leaves your machine.
What to expect (open models follow instructions less reliably than Claude, so this is honest, not a promise of parity): the core commands - /obsidian-save, /obsidian-daily, /obsidian-capture, /obsidian-find, /obsidian-task, and /research in free mode - hold up well. The sub-agent-heavy commands and the deep synthesis ones (/obsidian-architect, /obsidian-reconcile, /research-deep) lean hard on instruction-following, so prefer hermes-4-405b (or Claude) for those. The AI-first vault rule still applies on every write regardless of model.
The 7 research commands use API keys (2 of them fall back to free sources without any).
Installed the plugin? You have no repo checkout, so install.sh, .env.example, and uv sync are not on your disk. Create the env file by hand instead - the research scripts read this path regardless of how you installed, and the plugin's MCP server already runs under uv run --no-project --with 'mcp<2', so there is nothing to uv sync:
```bash mkdir -p ~/.config/obsidian-second-brain touch ~/.config/obsidian-second-brain/.env chmod 600 ~/.config/obsidian-second-brain/.env
Search (/obsidian-find and the MCP connector) works out of the box as fast keyword search - no setup, no model, nothing to install. You can optionally add a meaning-based layer that finds notes even when your query shares no words with them. It is opt-in by setup and, when present, leads the ranking with keyword search as tiebreak and freshness signals on top (measured on a ~2,350-note vault: keyword recall@10 1.0, paraphrased-question recall@10 77%, and non-English queries went from 13% to 63% recall@5, a 5x gain, with the multilingual default model - full reference in scripts/eval/BASELINE.md). If the model is ever unreachable, search silently falls back to keyword - it never breaks or hangs.
Two ways to provide the embedding model:
ollama pull bge-m3, then build the index: uv run python scripts/eval/semantic_search.py --path "<vault>" --build. Your notes never leave the machine. Re-run it as you write - see below.OBSIDIAN_EMBED_BACKEND=openai, OBSIDIAN_EMBED_URL=<base url>, OBSIDIAN_EMBED_MODEL=<model>, and OBSIDIAN_EMBED_KEY=<key if needed>. This covers other local runtimes (LM Studio, llama.cpp's server) for free/private use, or a cloud API (OpenAI, a gateway) for top quality - note a cloud endpoint means note text leaves your machine, so use OBSIDIAN_EMBED_EXCLUDE=<folder prefixes> to keep private folders local-only.Keep it current. The index does not update itself, and a note that is not in it can only be found by literal word match - which on a query in another language means it cannot be found at all. Re-run --build regularly; it is incremental, so only new and changed notes re-embed. /obsidian-health reports coverage, and search warns on stderr once the index falls more than 5% behind (tune with OBSIDIAN_INDEX_STALE_WARN_PCT).
Knobs: OBSIDIAN_SEARCH_SEMANTIC=0 disables the layer entirely. The index file is large and regenerable - gitignore it.
---
Codex and OpenCode users: prefer the Agent Skills build below. The standalonecodex-cliandopencodebuilds are deprecated and superseded by it; both print that notice in their ownINSTALL.md. They still work, and will until they are removed. Gemini CLI has no replacement build, so this is the right path there.
git clone https://github.com/eugeniughelbur/obsidian-second-brain
cd obsidian-second-brain
bash scripts/build.sh --platform codex-cli # or gemini-cli, or opencode
cp -R dist/codex-cli/. /path/to/your/vault/ # or dist/gemini-cli/. or dist/opencode/.
Then start your CLI from the vault root.
The Codex build emits native Codex Agent Skills: one skill per command under .agents/skills/<name>/SKILL.md. Codex discovers them automatically with progressive disclosure (only each skill's name + description load until it's selected), and they run in your current session - invoke one with $<name>, pick it from /skills, or just describe the task and let Codex match it implicitly. AGENTS.md stays as a thin always-on manual (vault conventions + the AI-first rule); there is no routing table to maintain because the skill list is the router. The Gemini / OpenCode builds still emit a GEMINI.md / AGENTS.md dispatcher with an auto-generated routing table to command files under .gemini/ / .opencode/.
Run bash scripts/build.sh with no arguments to build every platform at once. See dist/<platform>/INSTALL.md after building for platform-specific notes.
Mostly no. The vault commands (/obsidian-save, /obsidian-daily, etc.) need no API keys. /research and /research-deep are also key-free now - with no Perplexity key they automatically fall back to free, key-less sources (Wikipedia, HackerNews, arXiv, Reddit, and more) and Claude synthesizes the dossier. The remaining research commands (/x-read, /x-pulse, /notebooklm, /youtube, /podcast) need their respective keys (xAI Grok, Perplexity, Google Gemini, optionally YouTube Data API v3 / OpenAI Whisper) and exit with a clear setup message when one is missing. The calendar command (/obsidian-calendar, all four modes) needs the Google Calendar MCP connector rather than an API key.
This is a Claude Code skill, not an Obsidian plugin. An Obsidian plugin lives inside Obsidian and adds UI features there. A Claude Code skill lives inside Claude Code (Anthropic's terminal AI coding agent) and gives Claude the ability to read, write, and reason over your Obsidian vault from outside Obsidian. You install this skill into Claude Code, not into Obsidian. Your vault is unchanged, just better-leveraged.
obsidian-second-brain 是一个强大的跨平台 CLI 技能集,旨在将您的 Obsidian 库转化为一个智能的“第二大脑”。它通过集成 Claude Code、Codex CLI、Gemini CLI 和 OpenCode 四大终端 AI 工具,提供了多达 33 个智能命令。无论您是在处理会议记录还是整理灵感,该工具都能通过 AI 的推理能力,在命令行界面中实现对 Obsidian 笔记的深度管理与自动化处理。
本项目与传统的 Obsidian plugin 有本质区别。传统的插件受限于 Obsidian API 的 UI 交互,而本项目作为一种 Claude Code skill,运行在您的 Shell 环境中。这意味着它不受 Obsidian 内部 API 的约束,而是利用 Claude 在终端中的强大能力,通过 Markdown 命令文件和 Python 脚本,实现对笔记库的读、写、分析与推理,赋予 AI 直接操作您知识库的权限。
本项目采用“一套代码,多平台支持”的设计。您可以根据需求选择 Claude Code、Codex CLI、Gemini CLI 或 OpenCode 平台进行安装。虽然不同平台的安装路径和调度文件(如 CLAUDE.md、AGENTS.md 或 GEMINI.md)有所不同,但它们对 Obsidian vault 的操作行为是完全一致的。请根据您选择的平台执行相应的构建与部署流程。
本项目包含一个可选的 Research toolkit。如果您需要使用 `/x-read`、`/research` 等 6 个高级研究命令,则需要配置相应的 API keys。您可以通过运行 `install.sh` 并根据提示选择“y”来自动完成配置,系统会自动生成 `~/.config/obsidian-second-brain/.env` 文件;也可以手动创建目录并从 `.env.example` 复制配置文件进行管理。
对于 Codex CLI、Gemini CLI 和 OpenCode 用户,可以通过克隆仓库并运行 `bash scripts/build.sh --platform [平台名称]` 来构建对应的分发文件。构建完成后,将 `dist` 目录下对应的文件拷贝至您的 vault 根目录或对应的隐藏配置目录(如 `.gemini-cli/`),随后从 vault 根目录启动您的 CLI 即可开始使用。
本项目并非传统的 Obsidian plugin,而是一种 Claude Code skill。Obsidian plugin 侧重于在软件内部增强 UI 功能,而本项目则赋予了 Anthropic 的终端 AI 代理(Claude Code)一种“外部视角”,使其能够直接在您的 Shell 中读取、写入并对整个 Obsidian vault 进行逻辑推理,实现从语音转录到任务自动分发的自动化工作流。
关于 API Key 的使用:基础的 27 个 vault 命令(如 `/obsidian-save`、`/obsidian-daily` 等)无需任何 API keys 即可直接运行。只有涉及高级研究功能的 6 个命令(如 `/x-pulse`、`/notebooklm`、`/youtube` 等)才需要配置 xAI Grok、Perplexity、Google Gemini 或 YouTube Data API 的密钥。
融合Obsidian与Claude能力的创新工具,填补笔记应用与AI代理的空白。架构完整、社区活跃,是知识工作者升级工作流的优质方案。维护态度积极。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,obsidian-second-brain AI工具 在AI工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | obsidian-second-brain |
| 原始描述 | 开源Claude技能:Cross-CLI skill for Obsidian. Turns your vault into a living AI-first second bra。⭐1.1k · Python |
| Topics | Claude集成笔记增强AI代理知识管理Python工具 |
| GitHub | https://github.com/eugeniughelbur/obsidian-second-brain |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-14 · 更新时间:2026-05-16 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。