LLM Shortcut

by Viktor Chernodub
5
4
3
2
1
Score: 51/100

Description

Category: Productivity Tools

The LLM Shortcut plugin streamlines prompt management by converting a folder of saved prompts into instantly accessible commands. Each file in the prompt directory becomes a command that can be triggered directly, with the current open note automatically passed as context to the chosen LLM provider. It supports any OpenAI -compatible API, giving flexibility in selecting your AI backend while keeping all activity local without external logging. The tree-like folder structure is preserved as a navigable list, making it easy to organize and access prompts for different use cases.

Reviews

  • Viktor Chernodub
    Reviewed on Nov 24th, 2025
    No review text provided.

Stats

13
stars
2,894
downloads
2
forks
461
days
9
days
60
days
52
total PRs
5
open PRs
17
closed PRs
30
merged PRs
10
total issues
2
open issues
8
closed issues
43
commits

RequirementsExperimental

  • Access to an OpenAI-compatible API provider

Latest Version

2 months ago

Changelog

  • fix: keep long model loaders on one line (#57) (eb3f3b8)
  • fix: stabilize custom prompt modal layout (#56) (94ad609)

README file from

Github

LLM Shortcut

downloads shield

Turn Markdown prompt files into Obsidian commands.

LLM Shortcut maps your prompt library folder to command palette entries, then runs the selected prompt against the active note using any OpenAI-compatible provider.

Why this plugin

If you keep reusing prompts ("improve writing", "translate", "make this a bullet-list"), copy-paste gets tedious quickly.

This plugin lets you:

  • keep prompts as plain .md files in your vault;
  • organize them in folders;
  • run them like native Obsidian commands.

ezgif-376a9b52f4d3e831

I used OpenRouter's google/gemini-3-flash-preview for demo

Prerequisites

You have to use your own LLM provider and keys :)

Features

  • Use your own OpenAI-compatible providers (OpenAI, OpenRouter, and others with compatible endpoints)
  • Prompt files become commands automatically (including nested folders)
  • Streaming output directly into the editor selection/cursor
  • Custom prompt command for one-off prompts without creating a file
  • Configurable reasoning effort for supported models
  • Provider capability checks that flag unsupported reasoning levels
  • Provider model autocomplete with support for custom model names
  • Multiple provider/model presets with a response test for the current preset
  • Local-first behavior: your prompt files stay in your vault

2-minute quick start

  1. Install LLM Shortcut from Community Plugins.
  2. Open plugin settings and fill:
    • 🔑 API key
    • 🌐 Base URL (example: https://api.openai.com/v1)
    • 🤖 Model name (example: gpt-4.1-mini)
    • 🧠 Reasoning effort (optional; available levels are checked against the selected model)
  3. Create a prompt folder (default: _prompts).
  4. Add a prompt file, for example _prompts/Writing/Improve.md:
Improve the selected text.
Keep the original meaning, but make it clearer and more concise.
  1. Open any note, select text (or place cursor), then run command:
    • LLM Shortcut: Writing / Improve

The better you are with the prompting, the better results you get, it's mostly on you :)

Advanced prompt features

info-mode popup

This feature is a “show result, don’t edit my note” mode. Normally, this plugin writes the AI response directly into your note (at cursor/selection).

If you set this in your prompt file frontmatter: llm-shortcut-prompt-response-processing-mode: info the response is shown in a popup window instead.

The popup opens with your prompt name as the title, shows a loading state, then streams in the AI answer live.

The answer is rendered as Markdown (so headings/lists/tables display nicely).

Your note content is not replaced in this mode.

Good use case: dictionary/explanation prompts (like prompt-examples/Foreign word explanation.md) where you want to read info quickly without changing the document.

Selection-Only Commands

Some prompts work best when applied to a specific selection of text. You can mark a command as selection-only by adding frontmatter to your prompt file:

---
llm-shortcut-selection-mode: selection-only
---
Your prompt content here...

When a command is marked as selection-only, it will:

  • Require text to be selected before execution
  • Show an error notification if you try to run it without a selection
  • Only process the selected text (and the document context) when executed

This is useful for prompts that are designed to transform, analyze, or modify specific portions of text rather than working with the entire document.

Context for LLM

By default, the plugin sends the entire file content to the LLM, marking the areas that should be modified (either a text selection or the caret position). The LLM uses the full file as context when making modifications.

You can limit the context window by specifying the number of characters to include before and after the selection or caret position. This is particularly useful when working with very long documents or when you want to focus the LLM's attention on a specific area.

To configure the context size, add these parameters to your prompt file's frontmatter:

---
llm-shortcut-context-size-before: 256
llm-shortcut-context-size-after: 0
---
Your prompt content here...
  • llm-shortcut-context-size-before: Number of characters to include before the selection (default: entire file)
  • llm-shortcut-context-size-after: Number of characters to include after the selection (default: entire file)

Built-in command: custom prompt

The plugin also adds a command for ad-hoc prompting (default label: Custom prompt).

You can rename this in settings via 📝 Command label.

Our use cases

  • Improve clarity and grammar in selected paragraphs
  • Translate selected text while preserving formatting
  • Convert free text into a table
  • Explain unfamiliar words in context
  • Generate concise summaries/checklists from meeting notes

Ready-made examples are available in prompt-examples.

Integrations

License

MIT

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Footnote Shortcut
6 years ago by Alexis Rondeau, Micha Brugger
Create, edit, move, and tidy footnotes in Obsidian without leaving the keyboard.
YOLO
10 months ago by Lapis0x0
Agent-native AI assistant — chat, write, whiteboard, learning, all in one.
MCP Connector
3 months ago by istefox
Your Obsidian vault, exposed to Claude, Codex, Cursor and any MCP client. Runs inside Obsidian, on-device semantic search, no cloud round-trip, no binary to download.
BMO Chatbot
3 years ago by Longy2k
Generate and brainstorm ideas while creating your notes using Large Language Models (LLMs) from Ollama, LM Studio, Anthropic, Google Gemini, Mistral AI, OpenAI, and more for Obsidian.
Code Editor Shortcuts
5 years ago by Tim Hor
Obsidian plugin to add keyboard shortcuts commonly found in code editors such as Visual Studio Code (vscode) or Sublime Text
Math+
6 months ago by ocapraro
This is an Obsidian plugin for taking math notes using Excalidraw.
Better Command Palette
5 years ago by Alex Bieg
A better command palette for obsidian
Shortcuts extender
6 years ago by kitchenrunner
Plugin for Obsidian: Use shortcuts for input special symbols and changing level of headings without language switching
Keyboard Analyzer
4 years ago by cogscides
Obsidian plugin to display command hotkeys on a visible keyboard layout
Key Promoter
5 years ago by Johannes Theiner
Learn keyboard shortcuts by showing them when using the mouse
Leader Hotkeys
6 years ago by Tony Grosinger
Use a leader-key (tmux style) for hotkeys in Obsidian.md
Local LLM Helper
3 years ago by Mani Mohan
An Obsidian plugin to process text, chat with AI, and semantically search your notes — works with any OpenAI-compatible LLM server (Ollama, LM Studio, vLLM, and more).
Text Expander JS
4 years ago by Jonathan Heard
Obsidian plugin: Type text shortcuts that expand into javascript generated text.
Wrap with shortcuts
5 years ago by Manic Chuang
Wrap selected text in custom tags with shortcuts.
Ollama Chat
3 years ago by Brumik
A plugin for chatting with you obsidian notes trough local Ollama LLM instead of Chat GTP.
Auto pair chinese symbol
5 years ago by renmu123
中文符号自动补齐
Cannoli
3 years ago by blindmansion
Cannoli allows you to build and run no-code LLM scripts using the Obsidian Canvas editor.
Hotkeys for Bookmarks
6 years ago by Vinzent
Script Launcher
4 years ago by Alessandro Ruggiero
An Obsidian plugin that allows you to easily run scripts written in any language directly from the app
LLM Summary
2 years ago by QSun
wip
Vimium
2 years ago by Karsten Finderup Pedersen
Interact with elements using keyboard shortcuts in the spirit of Vim.
Flashcards LLM
3 years ago by Marco Pampaloni
Use Large Language Models (such as ChatGPT) to automatically generate flashcards from obsidian notes
AI Editor
3 years ago by Zekun Shen
Marjdown shortcuts
5 years ago by Jules Guesnon
🪨 Obsidian plugin that allows to write markdown from commands
Caret
2 years ago by Jake Colling
Caret, an Obsidian Plugin
Steward
a year ago by Dang Nguyen
A vault-specific agent equipped with agentic capacity, fast search, flexible commands, vault management, and terminals to "jump" into other CLI agents, such as Claude, Gemini, etc.
Format Hotkeys
6 years ago by Ansel Santosa
Google Docs style formatting hotkeys for Obsidian
Quick Links
3 years ago by Ian Fisher
Obsidian plugin to create quick link shortcuts
Sequence Hotkeys
4 years ago by Ruan Moolman
Obsidian plugin to support a sequenced of keyboard shortcuts to run commands.
Harpoon
3 years ago by mask(developermask)
Prompt
5 years ago by Hung-Su Nguyen
Obsidian plugin to show text prompts, for a quick kick of writing inspiration!
Canvas LLM
a year ago by Mike Farlenkov
A canvas-like UI to talk with LLMs in Obsidian.
LLM Test Generator
2 years ago by Aldo E George
Pure Chat LLM
a year ago by Justice Vellacott
Turn notes into conversations with chatGPT or better yet Ollama
Quickly
4 years ago by Sparsh Yadav
Quick capture to obsidian note
LLM workspace
2 years ago by Olivér Falvai
Rich Text Editor Shortcuts
2 years ago by Joshua Wootonn
Create and toggle checkboxes, paste links wrapping your current selection, and toggle underline without leaving the keyboard.
Next Link
3 years ago by Juan Luque
Simple Prompt
2 years ago by David Zachariae
Simple Prompt Plugin is a plugin for Obsidian that allows you generate content in your notes using LLMs.
Expand Selection
7 months ago by Alex Tait
Obsidian plugin to expand your editor selection to lines, sections (recursive), or the entire note
LLM Tagger
2 years ago by David Jayatillake
LLM docs
a year ago by Shane Lamb
Chat with LLM in regular markdown files in Obsidian
Pick Me
2 months ago by seanishoo
Annotate and ask questions about what you select — in notes and in PDFs — without leaving the page. Annotations live in their own Markdown files; the original document is never modified.
Quick Nav
2 years ago by exoticknight
Enhance your editing experience by unleashing the hidden power of shortcuts.
Note Codes
a year ago by Ezhik
Reference your Obsidian notes from anywhere with simple 4-character codes.
PromptCrafter
2 years ago by Fabrice Hong
Create reusable, modular prompts in Obsidian
Code Blocks commands
a year ago by dragonish
Provide commands to insert code blocks with markup, and support triggering commands with backticks.
Daily Prompt
3 years ago by Erl-koenig
Custom Comments
a year ago by Jack Chronicle
Adds a method to create custom methods to enclose comments
Heading Helper
a year ago by Siddhartha Khuntia
Ghost Text
a year ago by lawrencefeng17
Backtick text selector
2 years ago by Ram Rachum
Obsidian plugin for selecting text in backticks
FastForwardLink
2 years ago by Idan Liberman
FastForwardLink Obsidian.md Plugin
Hotstrings
2 years ago by wakywayne
Hanko
2 years ago by Telehakke
Obsidian plugin.
Three Noun Prompts
2 years ago by jamespeachh
Use TOPT algorithm to get daily writing prompts!