cli-anything-obsidian
できること
このスキルは、ボールト内のファイルとして保存されたObsidianのメモを、AIエージェントが扱えるようにします。知識や文章をObsidianで管理している人向けです。
使う場面
- ✓既存のメモに要約や新しいセクションを追加したいとき。
- ✓ボールトからあるテーマに関するメモを検索したいとき。
- ✓あなたとエージェントが書いた下書きから、新しいメモを作りたいとき。
スキルのリンク
https://github.com/HKUDS/CLI-Anything/blob/main/obsidian/agent-harness/cli_anything/obsidian/skills/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Obsidianのボールトで予算に関するメモを検索し、月次レビューのメモに要約を追加してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、お使いのコンピューター上のObsidianのLocal REST APIにリクエストを送り、メモの読み取り、書き込み、検索を行います。Obsidianを開き、プラグインを有効にしておく必要があります。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
動いている必要があるものは何ですか?
Obsidianが開いていて、Local REST APIプラグインが有効になっている必要があります。
メモを削除できますか?
はい。削除コマンドでボールトからメモを削除できるため、注意して使ってください。
Obsidianのコマンドを実行できますか?
はい。説明によると、ツールは視覚的なアプリを使わずにコマンドを実行できます。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 58k
- ランキング
- #3233
- ライセンス
- Apache-2.0
- 更新日
- 2026/9/21
コメント
- …
このリポジトリの他のスキル
cli-anything-3mf
58kエージェントが3Dプリントのファイルを調べて直せるようにします。丸い穴を見つける、そのサイズを変える、メッシュを修復する、2つのファイルを比べることができます。
cli-anything-qgis
58kエージェントがターミナルからQGISのマッププロジェクトを開き、編集し、書き出せるようにします。レイヤー、フィーチャー、印刷レイアウト、処理ツールを含みます。
cli-anything-adguardhome
58kエージェントがAdGuard Homeを管理できるようにします。AdGuard Homeはネットワーク全体で広告を遮断するツールで、フィルター、DNSの書き換え、クライアント、クエリのログを扱います。
cli-anything-anygen
58kエージェントが、AnyGenのサービスを使って、書かれたプロンプトからスライド、文書、ウェブサイト、図を生成できるようにします。