Overview

Lightweight automations for Obsidian using JavaScript or shell commands.

Obsidian Actions lets you automate common vault workflows without building a full plugin. Each action has three parts:

  • a trigger
  • an execution type
  • a code body

Use it to run commands, call scripts, show notices, or respond to Obsidian events.

How It Works

  1. Create an action in Settings -> Actions.
  2. Choose a trigger.
  3. Choose js or shell.
  4. Write the code.
  5. Restart Obsidian to register commands and hooks.

Shell Actions Are Desktop-Focused

shell actions are best suited to desktop environments with access to local scripts, binaries, and a usable shell environment. If you need broader compatibility, prefer js actions.

On this page