Aller au contenu
Skillpedia
Tâches et projets58k · #3233

cli-anything-obsidian

Ce qu’il fait

Cette compétence permet à un agent d'IA de travailler avec vos notes Obsidian, qui sont stockées sous forme de fichiers dans un coffre. Elle s'adresse aux personnes qui gardent leurs connaissances et leurs écrits dans Obsidian.

Quand l’utiliser

  • ✓Quand vous voulez que votre agent ajoute un résumé ou une nouvelle section à une note existante.
  • ✓Quand vous devez rechercher dans votre coffre les notes sur un sujet.
  • ✓Quand vous voulez créer une nouvelle note à partir d'un brouillon écrit avec votre agent.

Lien du skill

https://github.com/HKUDS/CLI-Anything/blob/main/obsidian/agent-harness/cli_anything/obsidian/skills/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/HKUDS/CLI-Anything/blob/main/obsidian/agent-harness/cli_anything/obsidian/skills/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Je veux chercher dans mon coffre Obsidian les notes sur le budget et ajouter un résumé à ma revue mensuelle.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent envoie des requêtes à l'API REST locale d'Obsidian sur votre ordinateur, afin de lire, écrire et rechercher des notes. Obsidian doit être ouvert et le plugin activé.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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:

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-key or OBSIDIAN_API_KEY environment 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 (--json flag): Structured JSON for agent consumption
# Human output
cli-anything-obsidian vault list

# JSON output for agents
cli-anything-obsidian --json vault list

Fo

Questions fréquentes

Qu'est-ce qui doit tourner pour que cela fonctionne ?

Obsidian doit être ouvert, et le plugin Local REST API doit être activé.

Peut-elle supprimer des notes ?

Oui. Une commande de suppression retire une note du coffre, donc utilisez-la avec précaution.

Peut-elle exécuter des commandes Obsidian ?

Oui. La description indique que l'outil peut exécuter des commandes sans l'application visuelle.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
58k
Position au classement
#3233
Licence
Apache-2.0
Mis à jour
21/09/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires