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

11
stars
775
downloads
2
forks
309
days
38
days
116
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

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