Logo de Obsidian Cli

Obsidian Cli

Communauté
zerone-agent
obsidian-cli

Use this skill whenever the user wants Claude to directly interact with their Obsidian vault — reading a note or daily note, writing or appending content, searching vault contents, counting or listing notes, managing tasks, moving or renaming files, finding orphaned notes or broken links. Without this skill, Claude has no way to access vault data or execute vault operations. Treat any request that implies "go into my vault and do X" as a trigger — the user is asking Claude to act, not to explain. Also trigger for vault automation, CLI scripting, or cron-based workflows involving Obsidian, managing sync history, querying Bases, restoring file versions via history, managing bookmarks, or running JavaScript against the Obsidian API. Skip for pure conceptual questions: how Obsidian's GUI works, navigating settings menus, theme or plugin installation via the UI, iCloud/third-party sync conflicts, general Dataview query syntax, keyboard shortcuts, or parsing vault files with external scripts — anything where the user needs an explanation rather than Claude performing a vault operation.

Présentation

Éditeurzerone-agent
Dépôtagent-use-skills
Nom de la compétenceobsidian-cli
Étoiles
27
Forks
9
Fichiers inclus
1
LicenceGPL-3.0
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont en simple Markdown, et non en code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • 1 fichiers inclus

    Des scripts, des modèles de documents et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par zerone-agent sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Obsidian Cli dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Collez l’URL du dossier de la compétence indiquée ci-dessous, puis confirmez.
    https://github.com/zerone-agent/agent-use-skills/tree/main/awesome-skills/skills/obsidian-cli
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter → Via URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zerone-agent/agent-use-skills.git /tmp/agent-use-skills
mkdir -p .claude/skills
cp -r /tmp/agent-use-skills/awesome-skills/skills/obsidian-cli .claude/skills/obsidian-cli
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Obsidian Cli dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Obsidian Cli dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, Obsidian Cli n’est pas lié au modèle pour lequel cette compétence a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

Obsidian CLI

The official Obsidian CLI (released in v1.12, February 2026) lets you control every aspect of Obsidian from the terminal. It communicates with a running Obsidian desktop instance via IPC.

Read references/command-reference.md when you need specific flags, output formats, or subcommands for any command group. It covers all 130+ commands with full parameter tables and has a table of contents at the top.

Prerequisites

RequirementDetails
Obsidian Desktopv1.12.0+
CLI enabledSettings → Command line interface → Toggle ON
Obsidian runningThe desktop app must be running for CLI to work (IPC)

Platform Notes

  • macOS / Linux: The obsidian binary is registered in PATH automatically when you enable CLI in settings.
  • Windows: Requires an Obsidian.com redirector file placed alongside Obsidian.exe. Must run with normal user privileges — admin terminals produce silent failures.
    • If colon subcommands (property:set, daily:append, etc.) with parameters return exit 127, check that Obsidian.com exists alongside Obsidian.exe. If missing, you have an outdated installer — download the latest from obsidian.md/download and reinstall.
    • Git Bash / MSYS2 users: Bash resolves obsidian to Obsidian.exe (GUI) instead of Obsidian.com (CLI), causing colon+params to fail with exit 127 even when Obsidian.com is present. Create a wrapper script — see Troubleshooting.
  • Headless Linux: Use the .deb package (not snap). Run under xvfb. Prefix commands with DISPLAY=:5 (or your xvfb display number). Ensure PrivateTmp=false if running as a service.

Syntax

All parameters use key=value syntax. Quote values containing spaces.

bash
obsidian <command> [subcommand] [key=value ...] [flags]

Multi-Vault

Target a specific vault by making it the first argument:

bash
obsidian "My Vault" daily:read
obsidian "Work Notes" search query="meeting"

If omitted, the CLI targets the most recently active vault.

Command Overview

The CLI provides 130+ commands across these groups:

GroupKey CommandsPurpose
filesread, create, append, prepend, move, rename, delete, files, folders, file, randomNote CRUD and file discovery
dailydaily, daily:read, daily:append, daily:prepend, daily:pathDaily note operations
searchsearch, search:contextFull-text search; search:context returns matching lines
propertiesproperties, property:read, property:set, property:remove, aliasesFrontmatter/metadata management
tagstags, tagTag listing, counts, and filtering
taskstasks, taskTask querying, filtering, and toggling
linksbacklinks, links, unresolved, orphans, deadendsGraph and link analysis
bookmarksbookmarks, bookmarkList and add bookmarks
templatestemplates, template:read, template:insertTemplate listing, rendering, insertion
pluginsplugins, plugin, plugin:enable, plugin:disable, plugin:install, plugin:uninstall, plugins:restrictPlugin management
syncsync, sync:status, sync:history, sync:read, sync:restore, sync:deletedObsidian Sync operations
themesthemes, theme, theme:set, theme:install, theme:uninstallTheme management
snippetssnippets, snippets:enabled, snippet:enable, snippet:disableCSS snippet management
commandscommands, command, hotkeys, hotkeyExecute Obsidian commands by ID; inspect hotkeys
basesbases, base:query, base:views, base:createObsidian Bases (v1.12+ database feature)
historyhistory, history:list, history:read, history:restoreFile version recovery (File Recovery plugin)
workspaceworkspace, tabs, tab:openWorkspace layout and tab management
diffdiffCompare local vs sync file versions
deveval, dev:screenshot, dev:debug, dev:console, dev:errors, dev:css, dev:dom, devtoolsDeveloper/debugging tools
vaultvault, vaults, version, reload, restartVault info and app control
otheroutline, wordcount, recentsUtility commands

Quick Reference — Most Common Commands

Reading & Writing Notes

bash
obsidian read path="folder/note.md"
obsidian create path="folder/note" content="# New Note"
obsidian create path="folder/note" template="meeting-notes"
obsidian append path="folder/note.md" content="New paragraph"
obsidian prepend path="folder/note.md" content="Top content"
obsidian move path="old/note.md" to="new/note.md"
obsidian delete path="folder/note.md"
obsidian delete path="folder/note.md" permanent

Daily Notes

bash
obsidian daily                          # Open today's daily note
obsidian daily:read                     # Print content of today's note
obsidian daily:append content="- [ ] New task"
obsidian daily:prepend content="## Morning Notes"

Search

bash
obsidian search query="project alpha"
obsidian search query="TODO" path="projects" limit=10
obsidian search query="meeting" format=json   # Returns JSON array of file paths
obsidian search query="urgent" case

Properties & Tags

bash
obsidian properties path="note.md"
obsidian property:set path="note.md" name="status" value="active"
obsidian property:read path="note.md" name="status"
obsidian property:remove path="note.md" name="draft"
obsidian tags counts sort=count
obsidian tag name="project/alpha"

Tasks

bash
obsidian tasks                          # All tasks (done + todo) — same as tasks all in v1.12
obsidian tasks all                      # All tasks (done + todo)
obsidian tasks done                     # Completed only
obsidian tasks daily                    # Tasks in today's daily note
obsidian task path="note.md" line=12 toggle
obsidian tasks | grep "\[ \]"           # Workaround: filter to incomplete only

Developer & Automation

bash
obsidian eval code="app.vault.getFiles().length"
obsidian dev:screenshot path="folder/screenshot.png"  # Path must be vault-relative
obsidian dev:debug on                                 # Required before dev:console
obsidian dev:console limit=20
obsidian dev:errors

TUI Mode

Running obsidian with no arguments launches an interactive TUI (Terminal User Interface):

KeyAction
↑↓Navigate files
EnterOpen file
/Search
nCreate new file
dDelete file
rRename file
qQuit

Common Agent Patterns

Daily Journal Automation

bash
# Append a timestamped entry
obsidian daily:append content="## $(date '+%H:%M') — Status Update
- Completed: feature branch merge
- Next: code review for PR #42
- Blocked: waiting on API credentials"

Create Note from Template with Metadata

bash
obsidian create path="projects/new-feature" template="project-template"
obsidian property:set path="projects/new-feature.md" name="status" value="planning"
obsidian property:set path="projects/new-feature.md" name="created" value="$(date -I)"
obsidian daily:append content="- Started [[projects/new-feature|New Feature]]"

Vault Analytics Script

bash
obsidian files total                    # Total file count
obsidian tags counts sort=count         # Most used tags
obsidian tasks | grep "\[ \]"          # Incomplete tasks across vault
obsidian orphans                        # Notes needing integration
obsidian unresolved                     # Broken links to fix

Search and Extract for AI Processing

bash
obsidian search query="meeting notes" format=json | jq '.[]'
obsidian read path="meetings/standup.md" | grep "Action item"

Sync Management

bash
obsidian sync:status                    # Check sync health
obsidian sync:history path="important.md"  # Version history
obsidian sync:restore path="important.md" version=3  # Rollback

Execute Obsidian Commands

bash
# Find a command ID, then execute it
obsidian commands | grep "graph"
obsidian command id="graph:open"

# Open settings, trigger a plugin action
obsidian command id="app:open-settings"
obsidian command id="dataview:dataview-force-refresh-views"

Tips

  1. Paths are vault-relative — use folder/note.md, not absolute filesystem paths.
  2. create paths omit .md — the extension is added automatically.
  3. move requires full target path including .md extension.
  4. Pipe-friendly — plain text output works with grep, awk, sed, jq.
  5. JSON output — use format=json on search for a JSON array of file paths. The files command does not support JSON output.
  6. Stderr noise — GPU/Electron warnings on headless are harmless; filter with 2>/dev/null.
  7. daily:prepend inserts content after frontmatter, not at byte 0.
  8. Use eval to run arbitrary JavaScript against the Obsidian API (app.*).
  9. template:insert inserts into the currently active file in the Obsidian UI — it does not accept a path= parameter. If no file is open, it returns Error: No active editor. Open a file first. To create a file from a template via CLI, use obsidian create path="..." template="..." instead.
  10. property:set stores list values as strings — value="tag1, tag2" writes a literal comma-separated string, not a YAML array. For proper array fields, edit the note's frontmatter directly (e.g. via read → modify → create --force) or use eval to call the Obsidian API.
  11. eval requires single-line JavaScript — multiline JS passed inline fails with a token error. Write the script to a temp file instead:
    bash
    cat > /tmp/obs.js << 'JS'
    var files = app.vault.getMarkdownFiles();
    files.length;
    JS
    obsidian eval code="$(cat /tmp/obs.js)"
  12. Multi-vault targeting may not work in all environments — obsidian "My Vault" command can return Error: Command "My Vault" not found on some setups. If this happens, omit the vault name (CLI targets the most recently active vault) and switch vaults manually in the Obsidian UI.
  13. When colon subcommands are unavailable (e.g. Windows Git Bash without wrapper), prefer non-colon alternatives: use properties instead of property:read, and obsidian daily:path + append instead of daily:append.

Troubleshooting

ProblemCauseFix
Empty output / hangsObsidian not running, or admin terminal (Windows)Start Obsidian; use normal-privilege terminal
Command not foundCLI not registered in PATHRe-enable CLI in Settings; restart terminal
Unicode errorsFixed in v1.12.2+Update Obsidian
Wrong vault targetedMulti-vault ambiguityPass vault name as first arg
IPC socket not found (Linux)PrivateTmp=true in systemdSet PrivateTmp=false
Snap confinement issuesSnap restricts IPCUse .deb package instead
Multi-vault "Name" command failsVault name matching issueOmit vault name; target most recent vault
property:set list value is a stringCLI stores value as-isEdit frontmatter directly or use eval
Colon+params exit 127 (missing .com)Outdated installer — Obsidian.com absentReinstall from obsidian.md/download
Colon+params exit 127 (Git Bash / MSYS2)Bash resolves obsidian to .exe not .comCreate ~/bin/obsidian wrapper: #!/bin/bash / /c/path/to/Obsidian.com "$@" and add export PATH="$HOME/bin:$PATH" to ~/.bashrc

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Obsidian Cli ?

Use this skill whenever the user wants Claude to directly interact with their Obsidian vault — reading a note or daily note, writing or appending content, searching vault contents, counting or listing notes, managing tasks, moving or renaming files, finding orphaned notes or broken links. Without this skill, Claude has no way to access vault data or execute vault operations. Treat any request that implies "go into my vault and do X" as a trigger — the user is asking Claude to act, not to explain. Also trigger for vault automation, CLI scripting, or cron-based workflows involving Obsidian, m...

Pourquoi utiliser Obsidian Cli sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Obsidian Cli se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Obsidian Cli dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/zerone-agent/agent-use-skills/tree/main/awesome-skills/skills/obsidian-cli. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Obsidian Cli ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Obsidian Cli ?

Autant que vous le souhaitez. Tant qu’un modèle prend en charge les compétences, vous pouvez utiliser Obsidian Cli avec lui : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Obsidian Cli est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par zerone-agent sous licence GPL-3.0. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, modèles de documents ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇