kpulik85 downloadsMulti-provider AI chat with file reading, editing, creation, and deletion. Supports Anthropic, OpenAI, Google Gemini, OpenRouter, and Ollama.
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.
| 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 |
From Obsidian (recommended)
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 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.
Go to Settings > VaultChat to configure:
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.
MIT