Claude AI powered vault assistant that can edit, create, and delete notes across your entire vault using natural language.
The focus of this plugin is fast and easy editing of 1 or more notes via quick one-off prompt submissions, not chatting with your notes. There is no chat interface, just a modal to submit prompts. This makes for really simple but powerful edits. Ex: "Find all the tasks I didn't complete in the last 3 daily notes and copy them to today's daily note".
Web search tools are enabled for Claude, so it can also find information from the open internet to include in notes.
- Natural Language Editing: Use simple prompts to modify your notes (e.g., "Fix spelling errors", "Add headers", "Summarize this")
- Powered by Claude: Uses Anthropic's Claude Sonnet 4.5 for intelligent, context-aware editing
- Web Search & Fetch: Claude can search the web and fetch content from URLs to enhance your notes
- Safe Modifications: The AI is instructed to only change what you explicitly request, preserving the rest of your note
- Simple Interface: Quick command palette access with an easy-to-use prompt modal
-
Clone or download this repository
-
Navigate to the plugin directory:
cd obsidian-ai-copilot -
Install dependencies:
npm install
-
Build the plugin:
npm run build
-
Copy the following files to your Obsidian vault's plugins folder:
- Create folder:
<your-vault>/.obsidian/plugins/ai-copilot/ - Copy
main.js,manifest.json, andstyles.css(if it exists) to this folder
- Create folder:
-
Reload Obsidian and enable the plugin in Settings → Community Plugins
- Download the latest release files (
main.jsandmanifest.json) - Create folder
<your-vault>/.obsidian/plugins/ai-copilot/ - Copy the downloaded files to this folder
- Reload Obsidian and enable the plugin
- Open Obsidian Settings
- Navigate to "AI Co-Pilot" under Plugin Options
- Enter your Anthropic API key
- Get an API key at https://console.anthropic.com/
- You'll need to create an account and add credits
- (Optional) Customize the model name if you want to use a different Claude model
To use web search functionality (e.g., "Search for the latest React best practices and add them to this note"), you must enable web search in your Anthropic account:
- Go to https://console.anthropic.com/
- Navigate to your account settings
- Enable web search for your API key
Note: Web search uses your API credits. Web fetch (fetching content from specific URLs) works automatically without additional setup.
- Open any note in Obsidian
- Open the command palette (Ctrl/Cmd + P)
- Search for "Open AI Co-Pilot Prompt" and select it
- Enter your request in the prompt modal
- Press Enter or click "Apply Changes"
- Wait for the AI to process your request
- Your note will be updated with the requested changes
Basic Editing:
- "Fix all spelling and grammar errors"
- "Add headers to organize this content into sections"
- "Summarize this note in 3 bullet points at the top"
- "Convert this list into a table"
- "Add tags at the bottom based on the content"
- "Rewrite this in a more professional tone"
- "Expand on the second paragraph with more details"
With Web Search:
- "Search for the latest best practices on TypeScript and add a section to this note"
- "Find recent news about AI and create a summary"
- "Look up current React hooks patterns and incorporate them here"
With Web Fetch:
- "Fetch https://example.com/article and add a summary to this note"
- "Get the content from https://example.com/doc.pdf and extract the key points"
- When you submit a prompt, the plugin captures the entire content of your current note
- It sends both the note content and your prompt to Anthropic's Claude API
- Claude is instructed via a system prompt to only modify what you request and preserve everything else
- The plugin receives the modified note and replaces the current content
- All changes are applied atomically, so you can undo with Ctrl/Cmd + Z if needed
This plugin sends user-selected note content to the Anthropic API when explicitly invoked through the "Open AI Co-Pilot Prompt" command.
What data is sent:
- The complete content of your current note
- Your prompt/instructions
When data is sent:
- Only when you explicitly run the command and submit a prompt
- No automatic or background data transmission
- No telemetry or analytics
How your API key is stored:
- API keys are stored locally in Obsidian's plugin settings
- Keys are never transmitted to any server other than Anthropic's API
- Keys are not shared with the plugin author or any third parties
Your responsibility:
- Do not use this plugin with sensitive or confidential information unless you accept that it will be processed by Anthropic
- Review Anthropic's privacy policy at https://www.anthropic.com/legal/privacy
- API Costs: This plugin uses Anthropic's paid API. Each request will consume API credits based on the size of your note and the response
- Privacy: Your note content is sent to Anthropic's servers for processing. Don't use this plugin with sensitive information unless you're comfortable with this
- Backup: Always keep backups of your vault. While the plugin is designed to be safe, AI responses can be unpredictable
- Undo: If the AI makes unwanted changes, use Ctrl/Cmd + Z to undo
npm run devThis will watch for file changes and automatically rebuild.
npm run buildUpdate the version in package.json, then run:
npm version patch # or minor, or majorThis will automatically update manifest.json and versions.json.
"Anthropic API key not configured" error
- Make sure you've added your API key in the plugin settings
"Failed to process with AI" error
- Check your internet connection
- Verify your API key is valid and has credits
- Check the console (Ctrl/Cmd + Shift + I) for more detailed error messages
Plugin not showing in command palette
- Make sure the plugin is enabled in Settings → Community Plugins
- Try reloading Obsidian
Potential features for future versions:
- Selection-based editing (modify only selected text)
- Multi-note editing (apply changes across multiple notes)
- Custom system prompts
- Streaming responses for large notes
- Diff view before applying changes
- Prompt history and templates
This plugin is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).
If you wish to use or distribute this software as part of a commercial or closed-source product, please contact Eric Anderson for a commercial license.
This is an experimental plugin. Use at your own risk. Always keep backups of your important notes.