obsidian-cli

Operate Obsidian vaults via terminal with the official Obsidian CLI.

Updated Feb 12, 2026
One-click install
npx skills add https://github.com/mynameistito/opencode-config --skill obsidian-cli-mynameistito
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: obsidian-cli
Source: https://github.com/mynameistito/opencode-config/tree/main/skills/obsidian-cli
Command: npx skills add https://github.com/mynameistito/opencode-config --skill obsidian-cli-mynameistito

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the barrier between Claude and your Obsidian vault, enabling direct terminal control of all vault operations without requiring manual GUI interaction.

Core Features & Use Cases

  • Full Vault CRUD & Data Management: Read, create, append, prepend, move, rename, and delete notes, plus query and toggle tasks, edit frontmatter properties and tags, and analyze backlinks, orphaned notes, and broken links.
  • Automation & Workflow Tools: Automate daily note logging, manage Obsidian Sync version history, run JavaScript against the Obsidian API, and execute built-in Obsidian commands programmatically.
  • Use Case: If you need to identify all orphaned notes in your vault and move them to a dedicated "to-integrate" folder, this Skill handles the full identification and relocation process automatically.

Quick Start

Use the obsidian-cli skill to retrieve all broken links across your Obsidian vault and save the list to a file named broken-links.txt for review.

Frequently Asked Questions about obsidian-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Obsidian vault operations from the terminal?

Obsidian vault operations can be automated from the terminal by using the official CLI tool to perform note CRUD, daily note logging, and task management without manual GUI interaction.

Can I run JavaScript against the Obsidian API via command line?

Yes, JavaScript can be executed against the Obsidian API via command line, enabling programmatic control of vault data and the ability to run built-in Obsidian commands directly.

Does the Obsidian CLI support headless Linux server deployments?

Headless Linux server deployments are supported by the Obsidian CLI, provided a running Obsidian Desktop v1.12+ instance with CLI enabled is accessible and multi-vault targeting is configured.

What is the best way to find and move orphaned notes in an Obsidian vault?

The best way to find and move orphaned notes in an Obsidian vault is using terminal CLI operations to automatically identify them and relocate the files to a dedicated integration folder.

How do I manage Obsidian Sync version history from the command line?

Obsidian Sync version history can be managed from the command line by executing terminal operations to recover past vault states and automate daily note logging workflows.

Can I edit frontmatter properties and tags in Obsidian notes without opening the app?

Frontmatter properties and tags in Obsidian notes can be edited without opening the app by sending direct terminal commands to the running Obsidian instance to modify metadata programmatically.