cli-anything-obsidian
What it does
This skill lets an AI agent work with your Obsidian notes, which are stored as files in a vault. It is for people who keep their knowledge and writing in Obsidian.
When to use it
- ✓When you want your agent to add a summary or a new section to an existing note.
- ✓When you need to search your vault for notes about a topic.
- ✓When you want to create a new note from a draft you and your agent wrote.
Skill link
https://github.com/HKUDS/CLI-Anything/blob/main/obsidian/agent-harness/cli_anything/obsidian/skills/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“I want to search my Obsidian vault for notes about budgeting and add a summary to my monthly review note.”
5 new skills a week. 1 minute to read.
How it works
The agent sends requests to Obsidian's Local REST API on your computer, so it can read, write, and search notes. Obsidian must be open with the plugin turned on.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
cli-anything-obsidian
Knowledge management and note-taking via the Obsidian Local REST API. Designed for AI agents and power users who need to manage notes, search the vault, and execute commands without the GUI.
Installation
This CLI is installed as part of the cli-anything-obsidian package:
pip install cli-anything-obsidian
Prerequisites:
- Python 3.10+
- Obsidian must be installed and running with the Local REST API plugin enabled
Usage
Basic Commands
# Show help
cli-anything-obsidian --help
# Start interactive REPL mode
cli-anything-obsidian
# List vault files
cli-anything-obsidian vault list
# Run with JSON output (for agent consumption)
cli-anything-obsidian --json vault list
REPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL session:
cli-anything-obsidian
# Enter commands interactively with tab-completion and history
Command Groups
Vault
Vault file management commands.
| Command | Description |
|---|---|
list |
List files in the vault or a subdirectory |
read |
Read the content of a note |
create |
Create a new note |
update |
Overwrite an existing note |
delete |
Delete a note from the vault |
append |
Append content to an existing note |
Search
Vault search commands.
| Command | Description |
|---|---|
query |
Search using Obsidian query syntax |
simple |
Plain text search across the vault |
Note
Active note commands.
| Command | Description |
|---|---|
active |
Get the currently active note in Obsidian |
open |
Open a note in the Obsidian editor |
Command
Obsidian command palette commands.
| Command | Description |
|---|---|
list |
List all available Obsidian commands |
execute |
Execute a command by its ID |
Server
Server status and info commands.
| Command | Description |
|---|---|
status |
Check if the Obsidian Local REST API is running |
Session
Session state commands.
| Command | Description |
|---|---|
status |
Show current session state |
Examples
List and Read Notes
# List all vault files
cli-anything-obsidian vault list
# List files in a subdirectory
cli-anything-obsidian vault list "Daily Notes"
# Read a note
cli-anything-obsidian vault read "Projects/my-project.md"
Create and Update Notes
# Create a new note
cli-anything-obsidian vault create "Projects/new-project.md" --content "# New Project"
# Update (overwrite) a note
cli-anything-obsidian vault update "Projects/new-project.md" --content "# Updated Content"
# Append to a note
cli-anything-obsidian vault append "Projects/new-project.md" --content "\n## New Section"
Search
# Plain text search (GET /search/simple/)
cli-anything-obsidian search simple "meeting notes"
# Dataview DQL query — default --type dql, sent as
# application/vnd.olrapi.dataview.dql+txt
cli-anything-obsidian search query 'TABLE file.link FROM "Projects"'
# JsonLogic query — application/vnd.olrapi.jsonlogic+json
cli-anything-obsidian search query --type jsonlogic \
'{"==":[{"var":"frontmatter.status"},"active"]}'
Commands
# List available commands
cli-anything-obsidian command list
# Execute a command by ID
cli-anything-obsidian command execute "editor:toggle-bold"
Interactive REPL Session
Start an interactive session for exploratory use.
cli-anything-obsidian
# Enter commands interactively
# Use 'help' to see available commands
API Key Configuration
# Via flag
cli-anything-obsidian --api-key YOUR_KEY vault list
# Via environment variable (recommended for agents)
export OBSIDIAN_API_KEY=YOUR_KEY
cli-anything-obsidian vault list
State Management
The CLI maintains lightweight session state:
- API key: Configurable via
--api-keyorOBSIDIAN_API_KEYenvironment variable - Host URL: Defaults to
https://localhost:27124; configurable via--host
Output Formats
All commands support dual output modes:
- Human-readable (default): Tables, colors, formatted text
- Machine-readable (
--jsonflag): Structured JSON for agent consumption
# Human output
cli-anything-obsidian vault list
# JSON output for agents
cli-anything-obsidian --json vault list
Fo
FAQ
What has to be running for it to work?
Obsidian must be open, and the Local REST API plugin must be enabled.
Can it delete notes?
Yes. A delete command removes a note from the vault, so use it with care.
Can it run Obsidian commands?
Yes. The description says the tool can run commands without the visual app.
Details
Original description by the author
Command-line interface for Obsidian — Knowledge management and note-taking via Obsidian Local REST API. Designed for AI agents and power users who need to manage notes, search the vault, and execute commands without the GUI.
repo: HKUDS/CLI-Anything
Popularity
- GitHub stars
- 58k
- Ranking position
- #3233
- License
- Apache-2.0
- Updated
- 9/21/2026
Comments
- …
More skills from this repository
cli-anything-3mf
58kLets your agent inspect and fix 3D printing files, including finding round holes, resizing them, repairing meshes, and comparing two files.
cli-anything-qgis
58kLets your agent open, edit, and export QGIS map projects from the terminal, including layers, features, print layouts, and processing tools.
cli-anything-adguardhome
58kLets your agent manage AdGuard Home, a network-wide ad blocker, including filters, DNS rewrites, clients, and query logs.
cli-anything-anygen
58kLets your agent generate slides, documents, websites, and diagrams from a written prompt using the AnyGen service.
Similar skills
knowledge-capture
394kTeaches your agent to save decisions, preferences, and key facts to your Knowledge vault as short notes with source attribution.
knowledge-claim-consolidation
394kHelps your agent tidy a Knowledge vault by merging duplicate claims, moving them to the right subject pages, and retiring outdated ones.
knowledge-correct
394kLets your agent fix or withdraw a specific saved Knowledge claim or page at your request, keeping a record of what changed.