Obsidian Sync
Sync files between Clawdbot workspace and Obsidian. Run the sync server to enable two-way file synchronization with the OpenClaw Obsidian plugin.
AndyBold
@andybold
What This Skill Does
Runs a sync server that enables two-way file synchronization between a Clawdbot agent workspace and an Obsidian vault. It provides REST API endpoints for listing, reading, and writing markdown files with conflict detection and path traversal protection.
Replaces manual file transfers or duplicate note management by automatically keeping Obsidian notes and agent workspace files in sync.
When to Use It
- Keep Obsidian notes synchronized with a Clawdbot agent's workspace
- Enable an Obsidian plugin to read and write notes from the agent's file system
- Set up automated note syncing between a local vault and a remote agent
- Use Tailscale to expose the sync server for remote Obsidian access
- Run the sync server as a systemd service for persistent background operation
Install
$ openclaw skills install @andybold/obsidian-syncObsidian Sync Server
A secure file sync server for two-way synchronization between Clawdbot and Obsidian.
๐ฆ This skill is part of obsidian-openclaw
An Obsidian plugin that lets you chat with your Clawdbot agent and sync notes between your vault and the agent's workspace.
Quick Start
SYNC_TOKEN="your-gateway-token" node scripts/sync-server.mjs
Configuration
| Environment Variable | Default | Description |
|---|---|---|
SYNC_PORT | 18790 | Server port |
SYNC_BIND | localhost | Bind address |
SYNC_WORKSPACE | /data/clawdbot | Root workspace path |
SYNC_TOKEN | (required) | Auth token (use Gateway token) |
SYNC_ALLOWED_PATHS | notes,memory | Comma-separated allowed subdirectories |
Security
- Only configured subdirectories are accessible
- Path traversal (
../) is blocked - All requests require
Authorization: Bearer <token> - Bind to localhost; expose via Tailscale serve for remote access
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /sync/status | Health check |
| GET | /sync/list?path=notes | List markdown files |
| GET | /sync/read?path=notes/x.md | Read file + metadata |
| POST | /sync/write?path=notes/x.md | Write file (conflict detection) |
Exposing via Tailscale
tailscale serve --bg --https=18790 http://localhost:18790
Running as a Service
User systemd service
mkdir -p ~/.config/systemd/user
cat > ~/.config/systemd/user/openclaw-sync.service << 'EOF'
[Unit]
Description=OpenClaw Sync Server
After=network.target
[Service]
Type=simple
Environment=SYNC_TOKEN=your-token-here
Environment=SYNC_WORKSPACE=/data/clawdbot
Environment=SYNC_ALLOWED_PATHS=notes,memory
ExecStart=/usr/bin/node /path/to/skills/obsidian-sync/scripts/sync-server.mjs
Restart=on-failure
RestartSec=5
[Install]
WantedBy=default.target
EOF
systemctl --user daemon-reload
systemctl --user enable --now openclaw-sync
loginctl enable-linger $USER # Start on boot
Obsidian Plugin
This skill provides the backend for the OpenClaw Obsidian plugin:
github.com/AndyBold/obsidian-openclaw
The plugin provides:
- ๐ฌ Chat sidebar โ Talk to your Clawdbot agent from Obsidian
- ๐ File actions โ Create, edit, delete notes via conversation
- ๐ Two-way sync โ Keep notes synchronized between vault and agent
- ๐ Secure storage โ OS keychain integration for tokens
- ๐ Audit logging โ Track all file operations
Install the plugin via BRAT using: AndyBold/obsidian-openclaw
Top skills in this category
self-improving agent
@pskoettCaptures and maintains learnings, errors, and corrections. Use when a command fails, the user corrects an assumption, a capability is missing, knowledge is outdated, or a better approach is found. Review relevant saved guidance before major tasks, reuse, and promotion; revalidate it according to wha
Self-Improving + Proactive Agent
@ivangdavilaSelf-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use when...
ontology
@oswalpalashTyped knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linkin...
Humanizer
@biostartechnologyRemove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
Obsidian
@steipeteWork with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.