pfrankov/obsidian-local-gpt
An Obsidian plugin for in-note AI editing and retrieval via Ollama or APIs
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Local GPT is a TypeScript Obsidian extension that runs from the editor. A context-menu action or Action Palette prompt supplies the task, with selected text or retrieved vault context available as input. The result can be inserted below the selection or used to replace it. The separate AI Providers plugin manages provider configuration, and Local GPT depends on @obsidian-ai-providers/sdk for the integration. The SDK serializes native reasoning parameters rather than leaving Local GPT to maintain provider-specific request mappings.
Generation routing and retrieval are configured independently: a saved action can inherit the global generation provider or bind to a configured provider, while RAG uses the selected embedding provider. A palette override is scoped to the current run rather than written back to the action. The dependency manifest also includes pdfjs-dist, idb, and sortablejs; it does not establish the index storage schema or retrieval ranking algorithm.
Key Capabilities & Differentiators
The built-in actions cover writing continuation, summarization, grammar correction, and action-item extraction; custom actions can supply their own system prompts. Saved actions retain their prompt, system prompt, creativity, reasoning, and replacement behavior. The palette supports @ file mentions, while retrieval can also use links, backlinks, and PDFs. Ollama and OpenAI-like APIs cover local and API-backed generation, and image actions require a vision-capable model.
Reasoning controls use model modes declared in AI Providers. A one-request choice cannot carry across models or providers, and unsupported or stale values are omitted. API default for reasoning omits the parameter; it does not disable thinking. The same distinction applies to sampling: API default omits temperature, while an explicit None sends zero. These controls preserve endpoint defaults without silently rewriting an explicit user choice.
Trade-offs & Limitations
Compared with a standalone Ollama client, Local GPT reduces copying between chat and notes by adding editor writeback and vault context. The cost is a two-plugin setup and separate decisions about generation, embeddings, and vision support. Local inference avoids sending requests to a remote generation API when configured end to end, but model choice and context length determine the memory and latency costs. A remote endpoint shifts that load away from the device at the expense of connectivity, potential API fees, and exposure of submitted content to the endpoint.
Explicit routing makes provider choice predictable, but does not provide automatic failover: a removed provider must be reselected, and model availability or endpoint compatibility errors remain visible. Model preferences are not included when sharing a community action, so shared prompts do not guarantee matching outputs across users. The MIT license covers Local GPT, not the terms of the selected models or hosted services.
Hardware & Deployment Guide
Install Local GPT and AI Providers from Obsidian's community plugin store, then configure a generation provider in AI Providers. BRAT is another installation route for Local GPT. For offline operation, provision the necessary Ollama models beforehand and make sure both generation and any enabled retrieval stay local. For Ollama-based retrieval, select an embedding provider in Local GPT settings; the listed examples are nomic-embed-text for English and bge-m3 for other languages. An OpenAI-like remote endpoint shifts generation off-device but requires connectivity and sends request content outside the device.
The 4.3.11 and 4.3.12 changes target editor responsiveness rather than inference speed. The former removed unnecessary vault scans during ordinary typing; the latter reuses the file list for @ mentions, refreshes it on file or folder creation, deletion, or rename, and releases it when the palette closes. Version 4.3.13 added per-action provider selection and surfaces saved actions when the palette prompt is empty.
Obsidian users who want reusable editing actions, direct writeback, and context from related notes or PDFs, with control over where generation and embeddings run.
You only need a general-purpose chat client, do not want to configure a companion provider plugin, or require automatic provider failover.
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/pfrankov/obsidian-local-gpt.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about obsidian-local-gpt
How do Local GPT, AI Providers, and vault retrieval fit together?
How much RAM or VRAM do I need?
Can a company use it commercially and keep inference on its own hardware?
When is this a better fit than a standalone Ollama client or hosted chat UI?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy