A powerful AI assistant plugin for Obsidian that helps you create and manage notes more efficiently.
- Smart AI Assistant: Press and hold the space key in an empty line to invoke the AI assistant
- Flowchart Generation: Quickly convert text descriptions into Mermaid flowcharts
- Multiple AI Providers: Support for various AI service providers:
- OpenAI
- Claude
- DeepSeek
- Azure OpenAI
- ChatGLM
- Open Settings in Obsidian
- Go to "Third-party plugins"
- Turn off "Safe mode"
- Click "Browse" and search for "AI Plugin"
- Click Install
- Enable the plugin
-
Basic Usage:
- Press and hold space key in any empty line
- Enter your prompt
- Press Enter to get AI response
-
Flowchart Generation:
- Select "Add Flowchart" from the dropdown menu
- Enter flowchart description
- Preview and confirm the generated flowchart
-
Configuration:
- Choose AI provider
- Set API key
- Configure model and other parameters
- Go to plugin settings page
- Select your preferred AI provider
- Enter the corresponding API key
- (Optional) Configure custom API endpoint
- (Optional) Select specific model
- Clone repository:
git clone [repository-url]
cd obsidian-ai-plugin
- Install dependencies:
npm install
- Development mode:
npm run dev
- Local testing:
To test the plugin in local Obsidian:
- Create a test vault in Obsidian
- Locate the plugins directory:
- macOS: {vault}/.obsidian/plugins/
- Create a new folder: obsidian-ai-plugin
- Create symbolic links:
ln -s $(pwd)/dist/main.js [vault-path]/.obsidian/plugins/obsidian-ai-plugin/main.js
ln -s $(pwd)/dist/manifest.json [vault-path]/.obsidian/plugins/obsidian-ai-plugin/manifest.json
ln -s $(pwd)/dist/styles.css [vault-path]/.obsidian/plugins/obsidian-ai-plugin/styles.css
- Ensure you have valid AI service API keys before use
- Stable network connection recommended
- Be aware of API call costs and limitations
- Plugin only sends necessary prompts to AI services when required
- No personal information is collected or stored
- API keys are stored locally only
Pull Requests and Issues are welcome. Before submitting, please:
- Ensure code follows project style guidelines
- Add necessary tests
- Update relevant documentation
一个强大的 Obsidian AI 助手插件,帮助你更高效地创建和管理笔记。
- 智能 AI 助手:在空行按住空格键即可唤起 AI 助手
- 流程图生成:快速将文本描述转换为 Mermaid 流程图
- 多种 AI 提供商:支持多个 AI 服务提供商:
- OpenAI
- Claude
- DeepSeek
- Azure OpenAI
- ChatGLM
- 在 Obsidian 中打开设置
- 进入 "第三方插件"
- 关闭 "安全模式"
- 点击 "浏览" 并搜索 "AI Plugin"
- 点击安装
- 启用插件
-
基础使用:
- 在任意空行按住空格键
- 输入你的提示词
- 按 Enter 键获取 AI 响应
-
流程图生成:
- 在下拉菜单中选择 "添加流程图"
- 输入流程图描述
- 预览并确认生成的流程图
-
配置设置:
- 选择 AI 提供商
- 设置 API 密钥
- 配置模型和其他参数
- 进入插件设置页面
- 选择你想使用的 AI 提供商
- 输入对应的 API 密钥
- (可选)配置自定义 API 端点
- (可选)选择特定的模型
- 克隆仓库:
git clone [repository-url]
cd obsidian-ai-plugin
- 安装依赖:
npm install
- 开发模式:
npm run dev
- 本地测试:
为了在本地 Obsidian 中测试插件,你需要:
- 在 Obsidian 中创建一个测试 vault
- 找到 vault 的插件目录:
- macOS: {vault}/.obsidian/plugins/
- 在插件目录中创建一个新文件夹:obsidian-ai-plugin
- 创建符号链接:
ln -s $(pwd)/dist/main.js [vault-path]/.obsidian/plugins/obsidian-ai-plugin/main.js
ln -s $(pwd)/dist/manifest.json [vault-path]/.obsidian/plugins/obsidian-ai-plugin/manifest.json
ln -s $(pwd)/dist/styles.css [vault-path]/.obsidian/plugins/obsidian-ai-plugin/styles.css
- 使用前请确保你有有效的 AI 服务 API 密钥
- 建议使用稳定的网络连接
- 注意 API 调用的费用和限制
- 插件仅在需要时发送必要的提示词到 AI 服务
- 不会收集或存储任何个人信息
- API 密钥仅存储在本地
欢迎提交 Pull Requests 或提出 Issues。在提交之前,请:
- 确保代码符合项目的代码风格
- 添加必要的测试
- 更新相关文档