@huangyihe
Free to read

Obsidian CLI

The core significance of Obsidian CLI is that AI tools like Claude Code, Cursor, Claude Desktop, and n8n can directly invoke all of Obsidian’s functions through pure command line calls—for example, reading and writing notes, searching, task management, property edits, plugin control, and even running JS.

It turns Obsidian into a programmable knowledge operating system, letting agents operate your second brain like an API. Compared with the previous way of operating on the file system, directly operating Obsidian is a qualitative leap in performance. For example

But there is one key limitation here: Obsidian CLI still requires the Obsidian desktop app to be running in the background. If Obsidian is not open, the first CLI command will automatically launch Obsidian (and a window will pop up). After it starts, you can minimize Obsidian to the Dock. So in essence, it is “remote control of a running Obsidian” (through an IPC connection).


I can paste the Obsidian CLI commands into newtype CLI, and then let it operate directly. Chief (the main agent) thinks the two biggest improvements are search and writing: it goes from “blindly traversing the file system” to “operating a knowledge base with an index and a graph of relationships.”