Obsidian SDK

Introduction

The official developer documentation for the Obsidian SDK — a type-safe wrapper around the Obsidian CLI.

Obsidian SDK Documentation

Welcome to the Obsidian SDK documentation. This SDK provides a comprehensive, type-safe interface to Obsidian's CLI, enabling you to programmatically manage vaults, notes, files, search, linking, and more.

Modules

ModuleDescription
Quick StartGet up and running in 2 minutes.
NotesFull CRUD for markdown notes.
FilesEnumerate and filter vault files.
DailyDaily notes and task management.
LinkingBacklinks, orphans, graph queries.
SearchFull-text and contextual search.
VaultsList and switch vaults.
FileOpsMove, copy, trash file operations.
TemplatesInsert and manage templates.
PluginsEnable, disable, query plugins.
DevDeveloper/debug utilities.
HistoryFile version history.
WorkspaceWorkspace layout management.
SyncObsidian Sync integration.
RandomRandom note utilities.
MetricsVault metrics and stats.
SystemInfoSystem and environment info.

Each module follows the same pattern: instantiate via the Obsidian class and call async methods.

import { Obsidian } from "obsidian-sdk";

const obsidian = new Obsidian({ vault: "myVault" });
const files = await obsidian.files.list();

For the full CLI reference, visit the Obsidian CLI docs.

On this page