chinoryunqin231 downloads为 Obsidian 笔记点亮 AI 之光。支持 Claude、GPT、MiniMax、Kimi,提供总结、翻译、深度剖析、提取待办、续写、润色等快捷操作,并可直接将结果写回笔记。
AI assistant for your notes — inspired by Notion AI
为你的笔记点亮 AI 之光 · 灵感来自 Notion AI
Lumen is a Notion AI–style right‑sidebar panel that reads your active note, runs quick actions on it, and writes the result back to the file. Bring your own API key for Claude, GPT, Minimax, or Kimi — pick one, switch any time.
| 🧠 Context‑aware | Reads the active note automatically. Select text to scope the request to just that selection. |
| ⚡ Six built‑in actions | Summarize, translate, deep analysis, extract tasks, continue writing, polish — one click each. |
| 💬 Chat with follow‑ups | Every quick action opens a conversation. Ask follow‑ups, refine, retry. |
| ✍️ Edits files directly | "Replace selection", "Append to note", "Overwrite file" — Lumen actually writes, not just chats. |
| 🔌 Bring your own model | Anthropic Claude · OpenAI GPT · Minimax 海螺 · Kimi 月之暗面. One‑click switch. |
| 🔒 Local‑first | API key stays in your vault's local config. No telemetry, no servers, no analytics. |
Lumen → Install → Enablemain.js, manifest.json, and styles.css from the latest release<your-vault>/.obsidian/plugins/lumen-ai-assistant/Open Settings → Lumen and fill in:
| Field | What goes here |
|---|---|
| API provider | One of Anthropic, OpenAI, Minimax, Kimi |
| API key | From the provider's console (see below) |
| Model | Auto‑filled with the latest recommended; override if you want a different tier |
| System prompt | Optional. Customize the assistant's behavior |
Then click Test connection to confirm everything works.
| Provider | Console |
|---|---|
| Anthropic (Claude) | https://console.anthropic.com/ |
| OpenAI (GPT) | https://platform.openai.com/api-keys |
| Minimax (海螺) | https://platform.minimax.io/ |
| Kimi (Moonshot) | https://platform.moonshot.cn/ |
| Button | What it does |
|---|---|
| Replace selection | Replaces the currently selected text in your note (only shown when something is selected) |
| Append to note | Adds the reply to the end of the active note |
| Overwrite file | Replaces the entire file content (with a confirmation modal — useful for whole‑note translations or rewrites) |
| Copy · Retry | Standard utilities |
Tip: Lumen remembers your text selection even when you click into the input box, so you can select a paragraph in your note, then type a custom instruction without losing the selection.
<vault>/.obsidian/plugins/lumen-ai-assistant/data.json. It is never sent anywhere except the provider's API.https://api.anthropic.comhttps://api.openai.comhttps://api.minimax.chathttps://api.moonshot.cndata.json in the plugin folder.git clone https://github.com/chinoryunqin/lumen-ai-assistant
cd lumen-ai-assistant
npm install
npm run dev # watch mode
npm run lint # run the official eslint-plugin-obsidianmd checks
npm run build # production build
The build output main.js is committed via GitHub releases, not into the repo.
MIT © 2026 rick
Lumen 是一个嵌入右侧栏的 AI 助手面板,灵感来自 Notion AI。它会自动读取你当前打开的笔记,对其执行常用操作(总结、翻译、分析、润色等),并把结果直接写回文件 —— 不只是聊天。
支持四家服务商:Claude、GPT、Minimax(海螺)、Kimi(月之暗面)。一键切换,自带 API Key。
| 🧠 上下文感知 | 自动读取当前笔记。选中一段文字,操作只针对选区。 |
| ⚡ 六个快捷操作 | 总结 / 翻译 / 深度剖析 / 提取待办 / 续写 / 润色 —— 一键触发。 |
| 💬 多轮对话 | 每次操作都打开一个对话,可追问、可重试。 |
| ✍️ 直接编辑文件 | 替换选中 / 追加到末尾 / 覆写全文 —— AI 真的会改文件,不是只展示。 |
| 🔌 自带模型 | Anthropic Claude · OpenAI GPT · Minimax 海螺 · Kimi 月之暗面,随时切换。 |
| 🔒 本地优先 | API Key 只保存在你的 vault 本地配置里。零遥测、零分析、零服务器。 |
Lumen → 安装 → 启用main.js、manifest.json、styles.css<你的vault>/.obsidian/plugins/lumen-ai-assistant/ 里打开 设置 → Lumen,填:
| 字段 | 说明 |
|---|---|
| API 提供商 | Anthropic / OpenAI / Minimax / Kimi 任选一个 |
| API Key | 从所选服务商的开发者平台获取(见下表) |
| 模型 | 默认会自动填入当前推荐模型,可手动覆盖 |
| 系统提示词 | 可选,自定义 AI 的行为指令 |
填完点 测试连接 一键验证是否生效。
| 服务商 | 地址 |
|---|---|
| Anthropic (Claude) | https://console.anthropic.com/ |
| OpenAI (GPT) | https://platform.openai.com/api-keys |
| Minimax (海螺) | https://platform.minimax.io/ |
| Kimi (月之暗面) | https://platform.moonshot.cn/ |
| 按钮 | 作用 |
|---|---|
| 替换选中 | 用 AI 回复替换笔记中当前选中的文字(只在有选区时显示) |
| 插入末尾 | 把 AI 回复追加到笔记最末尾 |
| 覆写全文 | 用 AI 回复替换整个文件内容(有弹窗确认,适合整篇翻译/重写场景) |
| 复制 · 重试 | 工具按钮 |
提示:选中笔记里的文字,然后点击 Lumen 输入框 —— 选区状态会被保留,你可以一边看着选中文字,一边输入自定义指令。
<vault>/.obsidian/plugins/lumen-ai-assistant/data.json。除了服务商 API 之外不会发往任何地方。https://api.anthropic.comhttps://api.openai.comhttps://api.minimax.chathttps://api.moonshot.cndata.json 即可。git clone https://github.com/chinoryunqin/lumen-ai-assistant
cd lumen-ai-assistant
npm install
npm run dev # watch 模式
npm run lint # 跑官方 eslint-plugin-obsidianmd 规则
npm run build # 生产构建
构建产物 main.js 通过 GitHub release 分发,不进仓库。
MIT © 2026 rick
Made with ☕ and Claude · Star ⭐ if you find it useful