LLM Shortcut

by Viktor Chernodub
5
4
3
2
1
Score: 45/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

10
stars
743
downloads
2
forks
274
days
3
days
81
days
41
total PRs
10
open PRs
6
closed PRs
25
merged PRs
10
total issues
2
open issues
8
closed issues
0
commits

RequirementsExperimental

  • Access to an OpenAI-compatible API provider

Latest Version

3 months ago

Changelog

  • feat: add cancellation when clicking on a loader (#38) (9605fea)
  • feat: add global options settings (#39) (6b46131)
  • docs: simplify README (#37) (d5390e3)
  • fix: preserve selection direction when trimming (3212dc5)

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
  • 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)
  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.
Note Toolbar
2 years ago by Chris Gurney
Flexible, context-aware toolbars for your notes in Obsidian.
Footnote Shortcut
5 years ago by Alexis Rondeau, Micha Brugger
Makes creating footnotes in Obsidian more fun!
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
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.
Better Command Palette
4 years ago by Alex Bieg
A better command palette for obsidian
YOLO
4 months ago by Lapis0x0
Smart, snappy, and multilingual AI assistant for your vault.
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
Shortcut Launcher
4 years ago by MacStories
Trigger shortcuts in Apple's Shortcuts app from Obsidian with custom commands.
Key Promoter
5 years ago by Johannes Theiner
Learn keyboard shortcuts by showing them when using the mouse
Text Expander JS
4 years ago by Jonathan Heard
Obsidian plugin: Type text shortcuts that expand into javascript generated text.
Leader Hotkeys
5 years ago by Tony Grosinger
Use a leader-key (tmux style) for hotkeys in Obsidian.md
Wrap with shortcuts
4 years ago by Manic Chuang
Wrap selected text in custom tags with shortcuts.
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.
Ollama Chat
2 years ago by Brumik
A plugin for chatting with you obsidian notes trough local Ollama LLM instead of Chat GTP.
Hotkeys for Bookmarks
5 years ago by Vinzent
Large Language Models
a year ago by eharris128, r-mahoney, & jsmorabito
The LLM plugin gives Obsidian users access to local and web-based, large language models via several chat interfaces: modal, widget, FAB window, and commands.
Lumberjack
5 years ago by ryanjamurphy
Log your thoughts! Lumberjack adds URL commands to help you axe inefficiency and get right to writing.
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
Caret
2 years ago by Jake Colling
Caret, an Obsidian Plugin
Flashcards LLM
3 years ago by Marco Pampaloni
Use Large Language Models (such as ChatGPT) to automatically generate flashcards from obsidian notes
Marjdown shortcuts
4 years ago by Jules Guesnon
🪨 Obsidian plugin that allows to write markdown from commands
Vimium
2 years ago by Karsten Finderup Pedersen
Interact with elements using keyboard shortcuts in the spirit of Vim.
Format Hotkeys
5 years ago by Ansel Santosa
Google Docs style formatting hotkeys for Obsidian
LLM Summary
2 years ago by QSun
wip
Sequence Hotkeys
4 years ago by Ruan Moolman
Obsidian plugin to support a sequenced of keyboard shortcuts to run commands.
Local LLM Helper
2 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).
AI Editor
3 years ago by Zekun Shen
Prompt
5 years ago by Hung-Su Nguyen
Obsidian plugin to show text prompts, for a quick kick of writing inspiration!
Quick Links
3 years ago by Ian Fisher
Obsidian plugin to create quick link shortcuts
Harpoon
3 years ago by mask(developermask)
LLM Test Generator
a year ago by Aldo E George
Quickly
3 years ago by Sparsh Yadav
Quick capture to obsidian note
Steward
6 months 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.
Smart Export
2 months ago by Iván Sotillo
Plugin that follows wikilinks to a configurable depth, joining the notes into a single export.
Next Link
3 years ago by Juan Luque
LLM workspace
a year ago by Olivér Falvai
LLM Tagger
a year ago by David Jayatillake
Canvas LLM
7 months ago by Mike Farlenkov
A canvas-like UI to talk with LLMs in Obsidian.
Pure Chat LLM
a year ago by Justice Vellacott
Turn notes into conversations with chatGPT or better yet Ollama
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.
Note Codes
8 months ago by Ezhik
Reference your Obsidian notes from anywhere with simple 4-character codes.
Daily Prompt
2 years ago by Erl-koenig
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
a month ago by Alex Tait
Expands the editor selection to lines, sections, or the entire note for convenience on mobile.
LLM docs
a year ago by Shane Lamb
Chat with LLM in regular markdown files in Obsidian
Heading Helper
10 months ago by Siddhartha Khuntia
Hotstrings
a year ago by wakywayne
PromptCrafter
2 years ago by Fabrice Hong
Create reusable, modular prompts in Obsidian
Custom Comments
8 months ago by Jack Chronicle
Adds a method to create custom methods to enclose comments
Code Blocks commands
8 months ago by dragonish
Provide commands to insert code blocks with markup, and support triggering commands with backticks.
Three Noun Prompts
a year ago by jamespeachh
Use TOPT algorithm to get daily writing prompts!
Backtick text selector
2 years ago by Ram Rachum
Obsidian plugin for selecting text in backticks
FastForwardLink
a year ago by Idan Liberman
FastForwardLink Obsidian.md Plugin
Ghost Text
8 months ago by lawrencefeng17
Quick Nav
a year ago by exoticknight
Enhance your editing experience by unleashing the hidden power of shortcuts.
Hanko
a year ago by Telehakke
Obsidian plugin.