Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

LLM Text Assistant

s1t5s1t523 downloads

Process, translate and refine selected text with any OpenAI-compatible LLM directly in the editor.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

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 — with ready-made preset chips (Shorter / More formal / As email / Bullet list) and an optional note context (note title, vault path, surrounding text)
  • 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
  • Review before replacing (optional): Show an old→new diff and only write the result after you confirm

⌨️ 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 — the four built-in ones, every custom action and the free prompt — 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
  • Model list from the endpoint: "Load models" queries GET <base>/models and offers the available models as autocomplete for the model field
  • 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:

  1. Enable LLM Text Assistant under Settings → Community Plugins
  2. Configure your endpoint under Settings → LLM Text Assistant
Manual install (if the directory is temporarily unavailable)
  1. Download main.js, styles.css and manifest.json from the latest release
  2. 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
  3. 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. Load models fetches the endpoint's model list as autocomplete
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
Pass note context to the chat Also give the free prompt the note title, vault path and the surrounding text (default: off)
Max note-context characters Cap for the note context (0 = off, default: 600)
Confirm result before replacing Show an old→new diff and only write the result after you confirm (default: off)

Hotkeys: every action — built-in, custom and the free prompt — 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

  1. Select text in the editor (or select nothing to process the whole note)
  2. Choose an action via right-click context menu, command palette (Ctrl/Cmd+P), the ribbon icon ✨ or its action menu
  3. The processed text replaces the selection live (streaming)
  4. Cancel: click the "Processing…" toast or ⏹ Stop in the chat
  5. Undo: use the button in the toast (8 seconds)
  6. 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.

  • Preset chips (Shorter / More formal / As email / Bullet list) drop a ready-made instruction into the input field — they never send on their own
  • Note context: The "Note context" switch in the chat header adds the note title, its vault path and the surrounding text to every request. It starts from the setting Pass note context to the chat and can be toggled per chat session

✅ Review before replacing

With Confirm result before replacing enabled, every action shows a Review changes window after the result has streamed in: removed words are struck through in red, added words are highlighted in green. Apply keeps the result (the undo toast still works), Discard (or Esc) restores the original text — nothing is ever written without your confirmation.

🆕 v1.1.1 / v1.1.2 — fix: custom actions and system prompts were missing in the settings tab

Symptom: On Obsidian 1.13+ the plugin settings showed empty system-prompt fields and no way to create custom actions at all.

Cause: Obsidian 1.13 introduced declarative settings. As soon as a plugin implements getSettingDefinitions(), Obsidian renders the tab from those definitions and never calls display(). This plugin had both, but only display() built the custom-action editor and only display() filled the prompt textareas with the effective prompt (stored value, else the localized default). The declarative definitions bound the prompt fields as plain textarea controls, which display the stored value — and those keys are stored as "" on purpose, so every field rendered empty. The same gap hid the model-field <datalist>, so "Load models" had nothing to fill.

Fix: the prompt fields, the model field and the custom-action editor are now built by shared methods (addPromptControl, addTargetLanguageControl, addModelControl, renderCustomActionsEditor) that both getSettingDefinitions() and display() call, so the two paths cannot drift. The prompt textareas show the effective prompt again, clearing one restores the localized default, and custom actions can be added, edited and removed on 1.13+ as before. The target-language field had the same defect and now shows the effective language too (v1.1.2).

Tests: npm run smoke (section 11 asserts the declarative path wires all three builders) and npm run test:settings (value-level: an empty stored prompt renders the localized default, the datalist is wired, actions can be added and removed).

🔒 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 as Authorization header 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 test:settings  # value-level check of the settings rows (prompts, model list, custom actions)
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

I welcome contributions from the community!

For code changes by third parties, please coordinate with me via email at [email protected] 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)

HealthExcellent
ReviewPassed
About
Process and refine text in notes with LLMs directly in the Obsidian editor using built-in actions like Translate, Expand, Summarize and Grammar & Spelling. Open a chat from the selection for iterative edits, stream token-by-token responses, copy or apply results, and run cloud or local OpenAI‑compatible models.
AIEditingWriting
Details
Current version
1.1.2
Last updated
Last week
Created
3 months ago
Updates
1 release
Downloads
23
Compatible with
Obsidian 1.8.7+
Platforms
Desktop, Mobile
License
GPL-3.0
Report bugRequest featureReport plugin
Author
s1t5s1t5
GitHubs1t5
  1. Community
  2. Plugins
  3. AI
  4. LLM Text Assistant

Related plugins

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

ChatGPT MD

A seamless integration of ChatGPT, OpenRouter.ai and local LLMs via Ollama into your notes.

Gemini Scribe

Allows you to interact with Gemini and use your notes as context.

Text Generator

Generate text content using GPT-3 (OpenAI).

WeSight

Run Claude Code, Codex, and OpenCode as local AI collaborators inside your vault.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

Smart Connections

Find related notes and excerpts while writing. Your AI link building copilot displays relevant content in graph + list view. A local embedding model powers semantic search. Zero setup. No API key.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Fast Note Sync

Real-time sync of your vaults across server, mobile, and web; shareable with anyone; supports REST and MCP integrations to build your personal AI knowledge base.

Copilot

Run AI agents such as Claude Code, Codex, and OpenCode inside your vault. Turn your second brain into a smart assistant that gets knowledge work done.