Mentat Team117 downloadsYour local agentic cognitive partner for Obsidian, managing structured knowledge, local command operations, and deep mathematical reasoning.
Your local agentic cognitive partner for Obsidian. Mentat is an AI agent that lives in your vault — it reads, writes, searches, researches, and summarizes your notes through conversation.
| Provider | Chat + Tools | Embedding | Local |
|---|---|---|---|
| OpenAI (and compatible) | ✅ | ✅ | ❌ |
| Anthropic Claude | ✅ | ❌ | ❌ |
| Ollama | ❌ (no tool support) | ✅ | ✅ |
Set up in Settings → Mentat → Add AI Provider.
# Install
cd /path/to/vault/.obsidian/plugins
git clone https://github.com/Secbone/obsidian-mentat mentat
cd mentat && npm install && npm run build
# Enable in Obsidian: Settings → Community plugins → Mentat
# Configure: Settings → Mentat → Add AI Provider
# Open chat: Ctrl/Cmd+P → "Open AI Chat"
npm run build # Type check + bundle → dist/
npm run deploy:dev # Copy to ~/Documents/obsidian/.obsidian/plugins/
npm run lint # ESLint
npm test # Vitest
src/
├── agents/ # Agent runtime (BaseAgent, Compactor, events)
├── chat/ # Chat orchestration (session, query, subagents)
├── context/ # Message windowing, token estimation
├── extensions/ # Extension system (EventBus, ExtensionManager)
├── providers/ # AI providers (OpenAI, Anthropic, Ollama)
├── prompts/ # System prompts, skill prompts, vault context
├── settings/ # Plugin settings & settings UI
├── skills/ # Skill framework (registry, executor, MCP, strategies)
├── ui/ # Themed UI (ChatView, bubble theme, terminal theme)
└── types/ # Shared type definitions
| Doc | What it covers |
|---|---|
src/ui/themes/README.md |
Theme system architecture, creating new themes |
src/ui/README.md |
UI system overview, CSS conventions, icon sizing |
src/agents/README.md |
Agent system, events, streaming, tool execution |
src/skills/README.md |
Skill framework internals, MCP integration, custom skills |
skills/README.md |
Adding and documenting skills |
prompts/README.md |
Prompt system, template variables |
docs/theme-system-refactor.md |
Theme system refactoring history |
MIT