Install
openclaw skills install obsidian-rest-apiOperate Obsidian via Local REST API plugin from remote/WSL environments. Use when: (1) user asks to operate Obsidian, read/write notes, or manage vault remotely; (2) working with Obsidian vault files from WSL/remote where direct filesystem access is blocked; (3) creating, editing, or searching notes through API instead of file edits.
openclaw skills install obsidian-rest-apiOperate Obsidian via Local REST API plugin from WSL or remote environments.
On first use, automatically detect and save configuration:
OBSIDIAN_API_URL and OBSIDIAN_API_KEYcat /etc/resolv.conf | grep nameserver | awk '{print $2}'### Obsidian REST API (WSL → Windows)
**API 端点**: https://<detected-ip>:27124
**API Key**: <user-provided-key>
Saved in TOOLS.md:
### Obsidian REST API (WSL → Windows)
**API 端点**: https://<windows-host-ip>:27124
**API Key**: <your-api-key>
# Get URL and KEY from TOOLS.md
URL=$(grep 'API 端点' ~/.openclaw/workspace/TOOLS.md | awk -F': ' '{print $2}')
KEY=$(grep 'API Key' ~/.openclaw/workspace/TOOLS.md | awk -F': ' '{print $2}')
# Test connection
curl -k -H "Authorization: Bearer $KEY" "$URL/"
# List vault files
curl -k -H "Authorization: Bearer $KEY" "$URL/vault/"
# Create note
curl -k -X PUT -H "Authorization: Bearer $KEY" -H "Content-Type: text/markdown" \
-d "# Title\nContent" "$URL/vault/note.md"
curl -k -X PUT -H "Authorization: Bearer $KEY" -H "Content-Type: text/markdown" \
--data "<content>" "$URL/vault/<filename>.md"
curl -k -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: text/markdown" \
--data "<content-to-append>" "$URL/vault/<filename>.md"
curl -k -H "Authorization: Bearer $KEY" "$URL/periodic/daily/"
# Or specific date:
curl -k -H "Authorization: Bearer $KEY" "$URL/periodic/daily/2026/05/11/"
# Simple text search
curl -k -X POST -H "Authorization: Bearer $KEY" \
"$URL/search/simple/?query=keyword"
# Advanced search (Dataview-style)
curl -k -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"query":"tag:#work"}' "$URL/search/"
curl -k -H "Authorization: Bearer $KEY" "$URL/active/"
curl -k -X POST -H "Authorization: Bearer $KEY" "$URL/open/note.md"
# List available commands
curl -k -H "Authorization: Bearer $KEY" "$URL/commands/"
# Execute command
curl -k -X POST -H "Authorization: Bearer $KEY" "$URL/commands/daily-notes"
curl -k -H "Authorization: Bearer $KEY" "$URL/tags/"
See references/api.md for complete endpoint documentation.
Connection refused: Windows firewall blocking port.
# PowerShell (admin)
New-NetFirewallRule -DisplayName "Obsidian REST API" -Direction Inbound -LocalPort 27124 -Protocol TCP -Action Allow
SSL error: Use -k flag (self-signed cert).
Vault not found: Ensure vault is open in Obsidian.
Local REST API plugin in Obsidian