Joseph Kim6k downloadsTranslate selected text in Obsidian's native PDF reader with local and cloud translation services.
Features • Quick Start • Recommended Settings • Usage Guide • Other Services • Windows Notes • FAQ • Development
A local LLM-powered translation plugin for Obsidian, supporting real-time text selection translation in PDF and Markdown files.
# 1. Install Ollama (macOS / Linux)
curl -fsSL https://ollama.com/install.sh | sh
# 2. Pull Tencent Hy-MT3-1.8B (Q4_K_M) and give it a short name
ollama pull hf.co/tencent/Hy-MT3-1.8B-GGUF:Q4_K_M
ollama cp hf.co/tencent/Hy-MT3-1.8B-GGUF:Q4_K_M hy-mt3-1.8b-q4:latest
# 3. After installing the plugin, select Local LLM in settings
# Enter endpoint http://localhost:11434 and select the downloaded model
# Click Test to verify connection
💡 Windows Users: Download the installer from the Ollama website. Ollama will run automatically in the background after installation.
When upgrading to 0.5.5, the previous default model selection moves to Hy-MT3. Run the model setup commands above on the machine running Ollama before translating. Tencent model card
Download and install via Terminal:
# Create plugin directory
mkdir -p YourVault/.obsidian/plugins/llm-translator
# Download Release files
curl -sL https://github.com/KimFischer99/Obsidian-LLM-Translator/releases/latest/download/main.js \
-o YourVault/.obsidian/plugins/llm-translator/main.js
curl -sL https://github.com/KimFischer99/Obsidian-LLM-Translator/releases/latest/download/manifest.json \
-o YourVault/.obsidian/plugins/llm-translator/manifest.json
curl -sL https://github.com/KimFischer99/Obsidian-LLM-Translator/releases/latest/download/styles.css \
-o YourVault/.obsidian/plugins/llm-translator/styles.css
Replace YourVault with your Obsidian vault path. Restart Obsidian and enable LLM Translator in Settings → Community plugins.
After installing the plugin, configure as follows:
| Setting | Recommended Value |
|---|---|
| Translation scope | Global |
| Auto-translate selected text | Enabled |
| Enable reader selection popup | Enabled |
| Setting | Recommended Value |
|---|---|
| Translation service | Local LLM |
| Local model endpoint | http://localhost:11434 |
| Model name | hy-mt3-1.8b-q4:latest |
| Source language | Auto |
| Target language | 简体中文 |
| Setting | Recommended Value |
|---|---|
| Max selection length | 5000 |
| Selection trigger delay | 350ms |
| Request timeout | 30000ms |
| Top K | 20 |
| Top P | 0.6 |
| Repeat Penalty | 1.05 |
| Num Predict | 4096 |
The default scope is Global.
Modify the translation prompt in Settings → Advanced → Custom prompt:
Translate the following academic text. Preserve technical terminology,
citations, and formulas. Output only the translation.
Supports any OpenAI-compatible API provider:
| Configuration | Description |
|---|---|
| API URL | Provider's endpoint |
| API Key | Provider's authentication key |
| Model name | Provider's model identifier |
llama-server)The Local LLM setting uses Ollama's /api/chat protocol. To connect llama-server, use Cloud API → OpenAI Compatible, which calls /v1/chat/completions:
llama-server -m /path/to/model.gguf --alias translator-local --host 127.0.0.1 --port 8080
In Settings → Service, choose Cloud API and enter:
| Setting | Value |
|---|---|
| API URL | http://127.0.0.1:8080/v1 (base URL; do not add /chat/completions) |
| Model name | translator-local (the --alias value) |
| API Key | Create a SecretStorage entry containing no-key-required if the server has no --api-key; otherwise use its real key. The plugin requires a nonempty value. |
Click Test connection. See the llama.cpp server documentation for model and server options.
For Hy-MT3-1.8B, use --alias Hy-MT3-1.8B --jinja -c 8192 with its GGUF and enter Hy-MT3-1.8B as the model name.
No configuration required. Select directly from the translation service dropdown.
⚠️ Free translation services have rate limits. For heavy usage, switch to local models or cloud APIs.
http://localhost:11434 endpoint, the request stays on this computer; a custom remote endpoint sends it over the network.127.0.0.1, such as the llama.cpp example above, the request stays on this computer.SecretStorage; data.json stores only the selected secret ID, not the key value.LLM Translator 0.5.1 requires Obsidian 1.11.4 or later. Obsidian's version resolver can keep older installations on plugin 0.3.5.
http://localhost:11434/: http://localhost:11434 (correct)http://localhost:11434\ (wrong)http://localhost:11434 in your browser to verify# Install dependencies
npm install
# Development mode (watch for file changes)
npm run dev
# Production build
npm run build
# Automated behavior tests
npm test
After building, copy main.js, manifest.json, and styles.css to:
YourVault/.obsidian/plugins/llm-translator/
MIT License © 2026