URI format
All Obsidian URIs follow this pattern:Available actions
open — open a note
open — open a note
Opens an Obsidian vault or a specific file within a vault.Parameters:
Examples:
new — create a note
new — create a note
Creates a new note in a vault, optionally with content.Parameters:
Examples:
daily — create or open daily note
daily — create or open daily note
Creates or opens today’s daily note. The Daily notes core plugin must be enabled.Parameters:Accepts the same parameters as the
new action.Example:unique — create a unique note
unique — create a unique note
Creates a new unique note. The Unique note creator plugin must be enabled.Parameters:
Examples:
search — open search
search — open search
Opens the Search panel in the specified vault, optionally pre-filling a search query.Parameters:
Examples:
choose-vault — open the vault manager
choose-vault — open the vault manager
Opens the vault manager so the user can switch vaults.
hook-get-address — integrate with Hook
hook-get-address — integrate with Hook
Used with the Hook productivity app. Returns the address of the currently focused note.Parameters:
Example:
x-callback-url parameters
Certain actions support thex-callback-url protocol via the x-success and x-error parameters. When Obsidian receives a URI with x-success, it appends the following to the callback URL upon success:
Example callback:
Shorthand URI formats
Two shorthand formats are available as alternatives to the full query-string syntax:Vault ID
Thevault parameter accepts either the vault name or its ID. The vault ID is a random 16-character code assigned when the vault is created, for example ef6ca3e3b524d22f. To find a vault’s ID, open the vault switcher, right-click the vault, and select Copy vault ID.
Register the Obsidian URI on Linux
On Windows and macOS, running Obsidian once is sufficient to register theobsidian:// protocol. On Linux, registration requires additional steps:
1
Create a desktop entry file
Create an
obsidian.desktop file following the GNOME desktop file guidelines.2
Set the Exec field
Set the
Exec field to Exec=executable %u. The %u passes obsidian:// URIs to the app.3
AppImage installs
If you’re using the AppImage installer, unpack it first:Then point the
Exec directive at the unpacked executable.