Read and edit Markdown notes on your personal computer via SSH tunnel. Use when the user asks to read, create, or append to notes in their vault.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install headless-vault-cli或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install headless-vault-cli⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/headless-vault-cli/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: headless-vault-cli description: Read and edit Markdown notes on your personal computer via SSH tunnel. Use when the user asks to read, create, or append to notes in their vault. homepage: https://github.com/logancyang/headless-vault-cli metadata: {"openclaw":{"emoji":"🗄️","requires":{"bins":["ssh"],"env":["VAULT_SSH_USER"],"optional_env":["VAULT_SSH_PORT","VAULT_SSH_HOST"],"config_paths":["~/.config/headless-vault-cli/mac-user"]}}} ---
Access Markdown notes on your personal computer from this VPS-hosted bot via SSH tunnel.
Terminology: "Local machine" = your personal computer (macOS or Linux) where your notes live. This skill runs on the VPS and connects to your machine via a reverse SSH tunnel.
This is an instruction-only skill. Before using it, the user must complete a one-time setup on their local machine:
~/.ssh/authorized_keys to restrict the VPS key to only run vaultctl (see Security Model below)localhost:2222VAULT_SSH_USER to the local machine's usernameThis skill connects to the local machine over a pre-configured reverse SSH tunnel. Access is restricted by design:
~/.ssh/authorized_keys with a forced-command wrapper, so the VPS can ONLY execute vaultctl — no interactive shell, no arbitrary commands (rm, curl, etc.)vaultctl validates all file paths are inside VAULT_ROOT and rejects path traversal attempts (.., symlinks outside vault)create (new files) and append (existing files) are supported — no delete, rename, move, or overwriteExample authorized_keys entry on the local machine:
command="/usr/local/bin/vaultctl-wrapper",no-port-forwarding,no-X11-forwarding,no-agent-forwarding ssh-ed25519 AAAA... vps-key
This ensures the VPS can only run vaultctl commands, even if the tunnel is compromised.
You have access to these commands ONLY. Do not attempt commands not listed here (no rename, delete, move, or edit commands exist).
| Command | Description | |---------|-------------| | tree | List vault directory structure | | resolve | Find note by path or title | | info | Get file metadata (lines, bytes, sha256, mtime) | | read | Read note content | | create | Create a NEW note (fails if file exists) | | append | Append content to EXISTING note |
All commands are executed via SSH:
ssh -4 -p ${VAULT_SSH_PORT:-2222} ${VAULT_SSH_USER}@${VAULT_SSH_HOST:-localhost} vaultctl <command> [args]
Always use -4 to force IPv4 (avoids IPv6 timeout issues).
These must be set in the skill's runtime environment on the VPS:
| Variable | Required | Default | Description | |----------|----------|---------|-------------| | VAULT_SSH_USER | Yes | — | Local machine username for SSH tunnel | | VAULT_SSH_PORT | No | 2222 | SSH tunnel port on localhost | | VAULT_SSH_HOST | No | localhost | SSH tunnel host |
ssh -4 -p 2222 ${VAULT_SSH_USER}@localhost vaultctl tree
ssh -4 -p 2222 ${VAULT_SSH_USER}@localhost vaultctl tree --depth 2
ssh -4 -p 2222 ${VAULT_SSH_USER}@localhost vaultctl tree --all
Options:
--depth N - Maximum depth to traverse--all - Include all files, not just .mdALWAYS use --base64 for path and title arguments to prevent shell injection:
# echo -n "Projects/Plan.md" | base64 → UHJvamVjdHMvUGxhbi5tZA==
ssh -4 -p 2222 ${VAULT_SSH_USER}@localhost vaultctl resolve --path UHJvamVjdHMvUGxhbi5tZA== --base64
# echo -n "Meeting Notes" | base64 → TWVldGluZyBOb3Rlcw==
ssh -4 -p 2222 ${VAULT_SSH_USER}@localhost vaultctl resolve --title TWVldGluZyBOb3Rlcw== --base64
ALWAYS use --base64 for the path argument:
# echo -n "Projects/Plan.md" | base64 → UHJvamVjdHMvUGxhbi5tZA==
ssh -4 -p 2222 ${VAULT_SSH_USER}@localhost vaultctl info UHJvamVjdHMvUGxhbi5tZA== --base64
Returns JSON: {"path": "...", "lines": N, "bytes": N, "sha256": "...", "mtime": N}
ALWAYS use --base64 for the path argument:
# echo -n "Projects/Plan.md" | base64 → UHJvamVjdHMvUGxhbi5tZA==
ssh -4 -p 2222 ${VAULT_SSH_USER}@localhost vaultctl read UHJvamVjdHMvUGxhbi5tZA== --base64
Returns JSON: {"path": "...", "content": "..."}
IMPORTANT: Use --base64 flag with BOTH path AND content base64 encoded. This is required for paths/content with spaces or special characters.
ssh -4 -p 2222 ${VAULT_SSH_USER}@localhost vaultctl create <base64_path> <base64_content> --base64
Example to create "Notes/Morning Brief.md" with content "# Hello\n\nWorld":
# Encode path: echo -n "Notes/Morning Brief.md" | base64 → Tm90ZXMvTW9ybmluZyBCcmllZi5tZA==
# Encode content: echo -n "# Hello\n\nWorld" | base64 → IyBIZWxsbwoKV29ybGQ=
ssh -4 -p 2222 ${VAULT_SSH_USER}@localhost vaultctl create Tm90ZXMvTW9ybmluZyBCcmllZi5tZA== IyBIZWxsbwoKV29ybGQ= --base64
append to add to existing files).md extensionssh -4 -p 2222 ${VAULT_SSH_USER}@localhost vaultctl append <base64_path> <base64_content> --base64
create for new files)These operations are NOT supported:
create)vaultctl tree first to see what notes existvaultctl resolve --title --base64 to find a note by name--base64 for ALL path and content arguments — this is mandatory for security, not optionalImportant: Always run tree first if you're unsure what notes exist. This prevents errors from wrong paths or duplicate names.
User: "Show me my project plan"
Step 1 - Check what exists:
ssh -4 -p 2222 ${VAULT_SSH_USER}@localhost vaultctl tree
Output:
{"tree": [{"path": "Projects", "type": "dir"}, {"path": "Projects/Plan.md", "type": "file"}]}
Step 2 - Now read the correct path (always base64 encode):
# echo -n "Projects/Plan.md" | base64 → UHJvamVjdHMvUGxhbi5tZA==
ssh -4 -p 2222 ${VAULT_SSH_USER}@localhost vaultctl read UHJvamVjdHMvUGxhbi5tZA== --base64
Output:
{"path": "Projects/Plan.md", "content": "# Project Plan\n\n## Goals\n..."}
User: "Create a meeting notes file"
Step 1 - Check what already exists:
ssh -4 -p 2222 ${VAULT_SSH_USER}@localhost vaultctl tree
Output:
{"tree": [{"path": "Projects", "type": "dir"}, {"path": "Projects/Plan.md", "type": "file"}]}
...
安装 Headless Vault CLI 后,可以对 AI 说这些话来触发它
Help me get started with Headless Vault CLI
Explains what Headless Vault CLI does, walks through the setup, and runs a quick demo based on your current project
Use Headless Vault CLI to read and edit Markdown notes on your personal computer via SSH tunnel
Invokes Headless Vault CLI with the right parameters and returns the result directly in the conversation
What can I do with Headless Vault CLI in my documents & notes workflow?
Lists the top use cases for Headless Vault CLI, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/headless-vault-cli/ 目录(个人级,所有项目可用),或 .claude/skills/headless-vault-cli/(项目级)。重启 AI 客户端后,用 /headless-vault-cli 主动调用,或让 AI 根据上下文自动发现并使用。
Headless Vault CLI 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Headless Vault CLI 可免费安装使用。请查阅仓库了解许可证信息。
Read and edit Markdown notes on your personal computer via SSH tunnel. Use when the user asks to read, create, or append to notes in their vault.
Headless Vault CLI 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using Headless Vault CLI
Identifies repetitive steps in your workflow and sets up Headless Vault CLI to handle them automatically