Prerequisites
Before installing Local GPT, ensure you have:- Obsidian version 0.15.0 or higher
- An AI provider configured (Ollama, OpenAI, or OpenAI-compatible API)
Installation Steps
Step 1: Install AI Providers Plugin
The AI Providers plugin acts as a central hub for managing AI connections in Obsidian.Open Community Plugins
Search for AI Providers
AI Providers in the plugin browserInstall and Enable
Step 2: Install Local GPT Plugin
- Obsidian Plugin Store (Recommended)
- BRAT (Beta Testing)
Open Community Plugins
Search for Local GPT
Local GPT in the search barInstall and Enable
Direct Link
Step 3: Configure an AI Provider
With both plugins installed, you need to configure at least one AI provider.Option 1: Ollama (Local, Recommended)
Option 1: Ollama (Local, Recommended)
Install Ollama
Pull a Model
llama3, mistral, qwen2, etc.Configure in Obsidian
- Open Settings → AI Providers
- Click Add Provider → Ollama
- Set the URL to
http://localhost:11434(default) - Select your model (e.g.,
gemma2:latest) - Save the provider
Set as Main Provider
Option 2: OpenAI API
Option 2: OpenAI API
Get API Key
Configure in Obsidian
- Open Settings → AI Providers
- Click Add Provider → OpenAI
- Enter your API key
- Select a model (e.g.,
gpt-4o-mini) - Save the provider
Set as Main Provider
Option 3: OpenAI-Compatible API
Option 3: OpenAI-Compatible API
Start Your Server
Configure in Obsidian
- Open Settings → AI Providers
- Click Add Provider → OpenAI Compatible
- Enter the base URL (e.g.,
http://localhost:8080/v1) - Add API key if required
- Select or enter the model name
- Save the provider
Set as Main Provider
Optional: Configure RAG (Enhanced Actions)
To enable context-aware responses using RAG, you need an embedding model:Install an Embedding Model
Configure Embedding Provider
- In Settings → AI Providers, add a new Ollama provider
- Select your embedding model (e.g.,
nomic-embed-text:latest) - In Settings → Local GPT, set this as the Embedding Provider
Optional: Configure Hotkeys
Set up keyboard shortcuts for quick access to Local GPT features:Open Hotkey Settings
Search for Local GPT
Local in the search bar to filter Local GPT commandsAssign Shortcuts
- Local GPT: Show context menu - e.g.,
Cmd+MorCtrl+M - Local GPT: Action Palette - e.g.,
Cmd+JorCtrl+J
Verify Installation
To confirm everything is working:Open a Note
Select Text
Open Context Menu
Test an Action
Troubleshooting
No AI Providers showing up
No AI Providers showing up
Ollama connection failed
Ollama connection failed
- Verify Ollama is running:
ollama listin terminal - Check the URL is
http://localhost:11434 - Try pulling the model again:
ollama pull gemma2
Embedding provider errors
Embedding provider errors
- Embedding providers are optional for basic functionality
- Ensure you’ve pulled an embedding model:
ollama pull nomic-embed-text - Verify the embedding provider is configured separately from the main provider