enygma37 downloadsAn AI-powered assistant for your vault for inspection and introspection of all your notes...and then some.
Vault AI Chat brings an AI assistant directly into where your notes live. It lives in a sidebar panel and understands your vault — it can search your notes for relevant context, read and edit files on your behalf, and connect to external tools via MCP servers. Think of it as a research and writing partner that already knows what's in your vault.
main.js, manifest.json, and styles.css into your vault at:<your-vault>/.obsidian/plugins/vault-ai-chat/
The first time you open the chat panel (click the message icon in the left ribbon, or use the Open Vault AI Chat command), you'll be walked through a short setup wizard that:
The wizard writes two files to your vault root — IDENTITY.md and KNOWLEDGE.md — which are injected into every AI request as personalisation context. You can edit these files at any time to adjust what the AI knows about you.
Type in the text box at the bottom of the panel and press Enter (or Shift+Enter for a new line). The AI searches your vault on every message and includes the most relevant notes as background context.
The AI does not automatically read your open note on every message — only when you ask for it. Use phrases like:
Say "remember that…" and the AI will save the information to KNOWLEDGE.md in your vault, where it will be included in all future conversations.
"Remember that I prefer code examples in TypeScript." "Remember that my project deadline is end of June."
The AI can create, update, move, and delete notes and folders. By default it will ask for confirmation before making any change. You can turn this off in settings if you prefer.
MCP (Model Context Protocol) servers extend the AI with additional tools — GitHub, web search, databases, and anything else that exposes an MCP interface.
docker or npx) and one argument per line.Transport: stdio
Command: docker
Arguments:
run
-i
--rm
-e
GITHUB_PERSONAL_ACCESS_TOKEN
ghcr.io/github/github-mcp-server
Environment variables:
GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your_token_here
Note: You must have Docker installed and the image pulled locally before the server will start. Run the docker command manually once to pull the image if needed.
| Setting | Description |
|---|---|
| API key | Your OpenAI (or compatible) API key. Stored in plain text in data.json — see the security note below. |
| Base URL | The /chat/completions endpoint. Defaults to https://api.openai.com/v1. Change this to use a local model or alternative provider. |
| Model | The model name to request, e.g. gpt-4o-mini, gpt-4o. |
| Max context notes | How many vault notes to include as search context per message (1–20). |
| Allowed root | Restrict AI file actions to a specific folder. Leave blank for no restriction. |
| Require confirmation | Ask before creating, editing, moving, or deleting files. On by default. |
| Allow deletes | When off, the AI cannot delete notes even if asked. Off by default. |
.obsidian/plugins/vault-ai-chat/data.json. Obsidian has no built-in secure key storage. Do not store your vault in a shared, publicly synced, or unencrypted location if this is a concern.IDENTITY.md and KNOWLEDGE.md from your vault root, then run this in the Obsidian developer console (Cmd+Option+I):const p = app.plugins.plugins['vault-ai-chat'];
p.settings.bootstrapComplete = false;
await p.saveSettings();
npm install
npm run dev # watch mode
npm run build # production build
The plugin is written in TypeScript and bundled with esbuild. Source is in main.ts; styles are in styles.css.