LLM Text Assistant
approvedby s1t5
Process, translate and refine selected text with any OpenAI-compatible LLM directly in the editor. - This plugin has not been manually reviewed by Obsidian staff.
π€ LLM Text Assistant β Obsidian Plugin
Process, translate and refine text in your Obsidian notes with LLMs, directly in the editor
This is the Obsidian edition of LLM Text Assistant β the browser extension (Chrome/Firefox/Thunderbird) by the same author, with the same actions, prompts and streaming behaviour, adapted to the Obsidian editor.
β¨ Key Features
π Core Features
- Four built-in actions: π Translate, βοΈ Expand, π Summarize, β Grammar & Spelling, available via the editor context menu (right-click), the command palette, the ribbon icon β¨ and its action menu
- Custom actions: Define your own actions with emoji, title and system prompt
- Free Prompt (Chat mode): Open a chat window with the current selection as context and give iterative instructions with full context; apply the result back into the note
- Copy responses: Hover any response for its β§ copy button, use "Copy last response", or press Ctrl/Cmd+C with nothing selected
- Streaming results (live typing): Text appears token by token as the model generates it, no waiting for the full response
- Selection or whole note: Processes the selection β or the entire note when nothing is selected
β¨οΈ UX
- Undo toast: After every replacement a toast appears with an Undo button (8 seconds)
- Cancel requests: Abort a running request by clicking the "Processingβ¦" toast or the stop button in chat, already received text is kept
- Native Obsidian hotkeys: Every action is a command β assign hotkeys via Obsidian's Hotkeys settings
- Robust error handling: Configurable timeout (default 60s), automatic retries on network errors and rate limits (429/5xx), clear error messages (e.g. "check your API key" on 401)
π Provider Support
- Works with any OpenAI-compatible Chat Completions API:
- Cloud: OpenAI, Mistral, Groq, Google Gemini (OpenAI-compat endpoint) and more
- Local: Ollama, LM Studio, llama.cpp, vLLM; no API key required, data never leaves your machine
- Flexible configuration: API URL, API key, model, temperature, timeout
- Customizable system prompts for every built-in action (e.g.
{TARGET_LANGUAGE}placeholder for translation)
π Internationalization
- Full UI and default prompts in English and German (auto-selected by Obsidian language)
- Target language for translation is freely configurable
π Quick Start
Prerequisites
- Obsidian 1.8.7 or newer (Restricted Mode off for community plugins)
- An OpenAI-compatible API endpoint (cloud or local)
π οΈ Installation
Install the plugin directly from the Obsidian Community directory:
π https://community.obsidian.md/plugins/llm-text-assistant
Or from within Obsidian: Settings β Community Plugins β Browse β search for LLM Text Assistant β Install.
Then:
- Enable LLM Text Assistant under Settings β Community Plugins
- Configure your endpoint under Settings β LLM Text Assistant
Manual install (if the directory is temporarily unavailable)
- Download
main.js,styles.cssandmanifest.jsonfrom the latest release - Create the folder
<your-vault>/.obsidian/plugins/llm-text-assistant/and copy the three files into it β or use Obsidian 1.8+: Settings β Community Plugins β Install from files - Enable the plugin and configure your endpoint as above
βοΈ Configuration
Open Settings β LLM Text Assistant:
| Setting | Description |
|---|---|
| API URL | Chat Completions endpoint, e.g. https://api.openai.com/v1/chat/completions |
| API Key | Your API key (leave empty for local endpoints) |
| Model | e.g. gpt-4o-mini, llama3.1, mistral |
| Temperature | Creativity (0β2, default: 0.3) |
| Timeout (seconds) | Max wait time per attempt (default: 60). Retries twice on timeout. |
| Target language (Translate) | Language to translate into (e.g. English, German, French) |
| System prompts | Per-action instructions, e.g. {TARGET_LANGUAGE} placeholder for translation |
| Custom actions | Your own actions with emoji, title and prompt |
| Free prompt | Show/hide the π¬ Free prompt entry |
Hotkeys: every action appears in Obsidian's command palette β assign hotkeys under Settings β Hotkeys.
Local endpoint examples
| Provider | URL | API Key |
|---|---|---|
| Ollama | http://localhost:11434/v1/chat/completions | leave empty |
| LM Studio | http://localhost:1234/v1/chat/completions | leave empty |
π Usage
- Select text in the editor (or select nothing to process the whole note)
- Choose an action via right-click context menu, command palette (
Ctrl/Cmd+P), the ribbon icon β¨ or its action menu - The processed text replaces the selection live (streaming)
- Cancel: click the "Processingβ¦" toast or βΉ Stop in the chat
- Undo: use the button in the toast (8 seconds)
- Copy: in the free prompt chat, hover a response and click β§, use "Copy last response", or press Ctrl/Cmd+C with nothing selected
π¬ Free Prompt (Chat mode)
Open it via the context menu or the action menu. Your current selection is loaded as context β give instructions one after another, e.g. "Improve the text" or "Translate into English". β Apply writes the result into the editor, β§ copies it to the clipboard, βΊ Reset restarts the chat with fresh context.
π Privacy & Security Notes
- No data collection: The plugin collects nothing. API calls go directly from Obsidian to the endpoint you configured, there is no intermediate server
- API key storage: Your API key is stored in the plugin settings of your vault (
.obsidian/plugins/llm-text-assistant/data.json) and only sent asAuthorizationheader to the configured endpoint
ποΈ Development
Prerequisites: Node.js β₯ 20 and npm.
npm install
npm run build # type-check (tsc) + bundle main.js
npm run typecheck # TypeScript check only
npm run smoke # core tests without an Obsidian runtime (streaming, retry, abort, i18n)
npm run dev # watch mode for development
The smoke tests mock Obsidian's requestUrl via a Node loader hook (scripts/smoke-hook.mjs) β no Obsidian installation required. See AGENTS.md for conventions and release details.
π€ Contributing
We welcome contributions from the community!
For code changes by third parties, please coordinate with us via email at mail@s1t5.dev before making any changes.
You can also:
- Open an Issue for bug reports or feature requests
- Submit a Pull Request for improvements
- Help improve documentation
π Support the Project
If you find this project useful and would like to support its continued development, you can buy me a coffee! Your support helps me dedicate more time and resources to improving the application and adding new features. While financial support is not required, it is greatly appreciated and helps ensure the project's ongoing maintenance and development.
π License: GNU GENERAL PUBLIC LICENSE Version 3 (see LICENSE file)
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.