Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

VaultChat

kpulikkpulik85 downloads

Multi-provider AI chat with file reading, editing, creation, and deletion. Supports Anthropic, OpenAI, Google Gemini, OpenRouter, and Ollama.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

Multi-provider AI chat inside Obsidian with file reading, editing, creation, and deletion. Supports Anthropic (Claude), OpenAI, Google Gemini, OpenRouter, and Ollama.

API keys: You need a standard API key from each provider you want to use. Claude Code OAuth tokens (sk-ant-oat01-...) do not work. Anthropic blocks them from third-party API calls.


Features

  • Multi-provider - switch between Anthropic, OpenAI, Gemini, OpenRouter, and Ollama from a single dropdown
  • File reading - attach any vault file to the conversation with the + button; the AI sees the full contents
  • File editing - the AI proposes edits in a diff format; auto-applied with Confirm/Revert, or manual Apply (configurable)
  • File creation - ask the AI to create new notes in any folder
  • File deletion - the AI can propose file deletions with a double-confirmation safety prompt
  • Vault awareness - the AI sees your full file tree so it uses correct paths
  • Chat history - persistent sessions stored per-vault, grouped by date, searchable, and resumable
  • Stop button - cancel any streaming response mid-generation
  • Include current note - one-click toggle to send your active note as context
  • Streaming - real-time token streaming from all providers
  • Dynamic model lists - Ollama shows installed models; OpenRouter fetches all available models

Providers

Provider API key source Notes
Anthropic console.anthropic.com Uses x-api-key header
OpenAI platform.openai.com Bearer token
Google Gemini aistudio.google.com OpenAI-compatible endpoint
OpenRouter openrouter.ai Access 100+ models with one key
Ollama No key needed Runs locally; set your base URL

Installation

From Obsidian (recommended)

  1. Open Settings > Community Plugins
  2. Click Browse and search for VaultChat
  3. Click Install, then Enable

Build from source

If you prefer to install manually or want to contribute:

git clone https://github.com/kpulik/VaultChat
cd VaultChat
npm install
npm run build

Then copy the built files into your vault:

mkdir -p /path/to/your/vault/.obsidian/plugins/VaultChat
cp main.js manifest.json styles.css /path/to/your/vault/.obsidian/plugins/VaultChat/

Restart Obsidian. The plugin will appear in Settings > Community Plugins.

Ollama setup

Ollama lets you run models locally. No API key, no cost, no data leaving your machine.

1. Install Ollama

Download from ollama.com and run the installer. On Mac it runs as a menu bar app that starts automatically.

2. Pull a model

Open Terminal and run one of these:

ollama pull llama3.2        # 2GB, good general purpose
ollama pull llama3.2:1b     # 1GB, fastest/smallest
ollama pull mistral         # 4GB, strong reasoning
ollama pull codellama       # 4GB, code-focused
ollama pull gemma3          # 5GB, Google's open model
ollama pull qwen2.5         # 4GB, strong at multilingual

To see what you have installed: ollama list

3. Open VaultChat

Select Ollama from the provider dropdown. The model list will auto-populate from your installed models. The base URL defaults to http://localhost:11434. Only change it if you're running Ollama on a different machine.

Note: Ollama must be running for the model list to load. If the dropdown shows "Fetch failed", open the Ollama app or run ollama serve in Terminal, then hit the refresh button.


Usage

  • Click the bot icon in the left ribbon to open the chat panel
  • Select your provider and model from the dropdowns in the header
  • Use the + button to attach vault files as context. The AI reads their full contents
  • Check Include current note to also send your active note
  • Press Enter to send, Cmd+Enter for a new line
  • Click Stop to cancel a streaming response at any time
  • Hover over any assistant message to see Copy and Insert buttons
  • When the AI proposes file edits, you'll see a diff with Confirm/Revert (auto-apply mode) or Preview/Apply (manual mode)
  • File deletions always require a double confirmation before anything is removed
  • Click the menu icon in the header to open chat history. Sessions are grouped by date and show attached files

Settings

Go to Settings > VaultChat to configure:

  • API keys for each provider (stored locally, obfuscated after entry)
  • Default model per provider
  • Custom base URL per provider (for proxies or self-hosted endpoints)
  • Context window (num_ctx) for Ollama - controls RAM usage (default 4096 tokens)
  • System prompt - customize the AI's behavior
  • Max tokens - maximum response length
  • Auto-apply edits - toggle between auto-apply (with Confirm/Revert) and manual Apply mode

Development

npm run dev   # watch mode, rebuilds on every save

For live reloading inside Obsidian, install the Hot Reload community plugin and symlink the project folder into your vault's plugins directory:

ln -s /path/to/VaultChat /path/to/vault/.obsidian/plugins/VaultChat

Open Obsidian's developer tools with Cmd+Option+I to debug.

License

MIT

82%
HealthExcellent
ReviewRisks
About
Chat with multiple AI providers inside Obsidian and attach vault files or the active note as context so models see your full file tree. Edit, create, or delete files via AI proposals with diff previews, stream responses in real time, and resume searchable, per-vault conversation history.
AIFilesEditing
Details
Current version
1.0.0
Last updated
2 months ago
Created
2 months ago
Updates
1 release
Downloads
85
Compatible with
Obsidian 1.0.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
kpulikkpulik
github.com/kpulik
GitHubkpulik
  1. Community
  2. Plugins
  3. AI
  4. VaultChat

Related plugins

Gemini Scribe

Allows you to interact with Gemini and use your notes as context.

Claudian

Embeds Claude Code/Codex as an AI collaborator in your vault. Your vault becomes agent's working directory, giving it full agentic capabilities: file read/write, search, bash commands, and multi-step workflows.

Remember cursor position

Remember cursor and scroll position for each note.

Thino

Quickly capture memos and display them in the sidebar with a heatmap. (Closed source)

Note Refactor

Extract note content into new notes and split notes.

ChatGPT MD

A seamless integration of ChatGPT, OpenRouter.ai and local LLMs via Ollama into your notes.

Advanced Tables

Improved table navigation, formatting, and manipulation.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Local REST API & MCP Server

Unlock your automation needs by interacting with your notes over a secure REST API.

QuickAdd

Quickly add new notes or content to your vault.