← Back to Skills Marketplace
jieszs

obsidian-rest-api

by Jieszs · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
68
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install obsidian-rest-api
Description
Operate Obsidian via Local REST API plugin from remote/WSL environments. Use when: (1) user asks to operate Obsidian, read/write notes, or manage vault remot...
README (SKILL.md)

Obsidian REST API

Operate Obsidian via Local REST API plugin from WSL or remote environments.

First-Time Setup

On first use, automatically detect and save configuration:

  1. Check TOOLS.md for existing OBSIDIAN_API_URL and OBSIDIAN_API_KEY
  2. If not found:
    • Get Windows host IP: cat /etc/resolv.conf | grep nameserver | awk '{print $2}'
    • Ask user for API Key
    • Save to TOOLS.md:
      ### Obsidian REST API (WSL → Windows)
      **API 端点**: https://\x3Cdetected-ip>:27124
      **API Key**: \x3Cuser-provided-key>
      
  3. Test connection with saved config

Configuration Format

Saved in TOOLS.md:

### Obsidian REST API (WSL → Windows)
**API 端点**: https://\x3Cwindows-host-ip>:27124
**API Key**: \x3Cyour-api-key>

Quick Start

# 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\
Content" "$URL/vault/note.md"

Common Tasks

Create/Update Note

curl -k -X PUT -H "Authorization: Bearer $KEY" -H "Content-Type: text/markdown" \
  --data "\x3Ccontent>" "$URL/vault/\x3Cfilename>.md"

Append to Note

curl -k -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: text/markdown" \
  --data "\x3Ccontent-to-append>" "$URL/vault/\x3Cfilename>.md"

Get Daily Note

curl -k -H "Authorization: Bearer $KEY" "$URL/periodic/daily/"
# Or specific date:
curl -k -H "Authorization: Bearer $KEY" "$URL/periodic/daily/2026/05/11/"

Search Notes

# 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/"

Get Active File

curl -k -H "Authorization: Bearer $KEY" "$URL/active/"

Open File in UI

curl -k -X POST -H "Authorization: Bearer $KEY" "$URL/open/note.md"

Execute Command

# 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"

Get All Tags

curl -k -H "Authorization: Bearer $KEY" "$URL/tags/"

API Reference

See references/api.md for complete endpoint documentation.

Troubleshooting

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.

Windows Setup

  1. Install Local REST API plugin in Obsidian
  2. Enable "Bind to all interfaces" in plugin settings
  3. Allow port in Windows firewall
  4. Generate API key
Usage Guidance
Install/use this only if you are comfortable letting the agent access and modify your Obsidian vault through the Local REST API. Keep the API key private, restrict the REST API to trusted network paths, and confirm any write, delete, or command-execution request before allowing it.
Capability Analysis
Type: OpenClaw Skill Name: obsidian-rest-api Version: 1.0.1 The skill facilitates interaction between an AI agent in a WSL/remote environment and the Obsidian Local REST API on a Windows host. It includes automated setup logic in SKILL.md to detect the host IP via /etc/resolv.conf and stores API credentials in a local workspace file (TOOLS.md). While it utilizes insecure curl flags (-k) to accommodate the plugin's default self-signed certificates, the behavior is transparent, well-documented in references/api.md, and strictly aligned with the stated purpose without any signs of malicious intent or data exfiltration.
Capability Tags
requires-sensitive-credentials
Capability Assessment
Purpose & Capability
The stated purpose matches the documented capabilities: reading, searching, creating, updating, opening, and commanding Obsidian notes through the Local REST API.
Instruction Scope
The instructions are mostly user-directed examples, but they include high-impact REST operations such as note updates, appends, command execution, and referenced delete endpoints.
Install Mechanism
There is no code or install script in the skill; setup relies on the user installing Obsidian's Local REST API plugin and adjusting firewall/plugin settings.
Credentials
For WSL/remote use, the skill instructs binding the API to all interfaces, opening a Windows firewall port, and using curl with certificate verification disabled; this is purpose-aligned but should be limited to trusted networks.
Persistence & Privilege
The skill persists the Obsidian API endpoint and API key in ~/.openclaw/workspace/TOOLS.md so future invocations can reuse them.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install obsidian-rest-api
  3. After installation, invoke the skill by name or use /obsidian-rest-api
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- No changes detected in this release. - Version number updated to 1.0.1.
v1.0.0
obsidian-rest-api 1.0.0 - Initial release. - Enables remote operation of Obsidian via its Local REST API plugin from WSL or remote environments when direct filesystem access is unavailable. - Provides step-by-step setup instructions for API connection, key storage, and firewall configuration. - Includes ready-to-use command examples for creating, editing, searching, and managing notes via API. - Offers troubleshooting tips for common connectivity and SSL issues. - Documents configuration format and quick start for seamless integration.
Metadata
Slug obsidian-rest-api
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is obsidian-rest-api?

Operate Obsidian via Local REST API plugin from remote/WSL environments. Use when: (1) user asks to operate Obsidian, read/write notes, or manage vault remot... It is an AI Agent Skill for Claude Code / OpenClaw, with 68 downloads so far.

How do I install obsidian-rest-api?

Run "/install obsidian-rest-api" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is obsidian-rest-api free?

Yes, obsidian-rest-api is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does obsidian-rest-api support?

obsidian-rest-api is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created obsidian-rest-api?

It is built and maintained by Jieszs (@jieszs); the current version is v1.0.1.

💬 Comments