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.
Capabilities
REPL Mode
Vault
Vault file management commands
Search
Vault search commands
Command
Obsidian command palette commands
Getting started
Full instructionsExample command
Installation
pip install cli-anything-obsidianInstructions: SKILL.mdv1.0.0
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
For AI Agents
When using this CLI programmatically:
- Always use
--jsonflag for parseable output - Check return codes - 0 for success, non-zero for errors
- Parse stderr for error messages on failure
- Set
OBSIDIAN_API_KEYenvironment variable to avoid passing--api-keyon every call - Verify Obsidian is running with
server statusbefore other commands
More Information
- Full documentation: See README.md in the package
- Test coverage: See TEST.md in the package
- Methodology: See HARNESS.md in the cli-anything-plugin
Version
1.1.0
Explore more skills
Browse all- CLI Hub Matrix Game DevelopmentCapability-based multi-tool matrix for game development: engine, 3D/2D/audio assets, AI-generated assets, agent…
- CLI Anything RekordboxCommand-line interface for Pioneer Rekordbox 6/7 - DJ library and live-deck control via guarded SQLCipher master.db…
- CLI Anything Live2dInspect, validate, edit, lint, diff, batch-manage, and deploy Live2D Cubism models (.model3.json) from the command line.
- CLI Anything AdguardhomeCommand-line interface for AdGuard Home - Network-wide ad blocking and DNS management via AdGuard Home REST API.…
- CLI Anything InkscapeCommand-line interface for Inkscape - A stateful command-line interface for vector graphics editing, following the same…
- CLI Anything ShotcutCommand-line interface for Shotcut - A stateful command-line interface for video editing, built on the MLT XML format.…
Security
Reviews (0)
More from CLI-Anything
View source →Frequently asked questions about cli-anything-obsidian
What does the cli-anything-obsidian skill do?
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. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the cli-anything-obsidian skill?
Run `npx @skills-hub-ai/cli install cli-anything-obsidian` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/cli-anything-obsidian/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does cli-anything-obsidian work with?
cli-anything-obsidian runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the cli-anything-obsidian skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use cli-anything-obsidian after installing it?
In Claude Code, type `/cli-anything-obsidian` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the cli-anything-obsidian skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/cli-anything-obsidian)<a href="https://skills-hub.ai/skills/cli-anything-obsidian"><img src="https://skills-hub.ai/api/badges/skill/cli-anything-obsidian" alt="Install on Skills Hub"></a>More options in the badge docs.