Назад към всички

obsidian-openclaw-sync

// Sync Obsidian OpenClaw config across multiple iCloud devices. Manages symlinks for seamless multi-device sync.

$ git log --oneline --stat
stars:1,933
forks:367
updated:March 4, 2026
SKILL.mdreadonly
SKILL.md Frontmatter
nameobsidian-openclaw-sync
descriptionSync Obsidian OpenClaw config across multiple iCloud devices. Manages symlinks for seamless multi-device sync.
compatibilitydarwin
metadata[object Object]

Obsidian OpenClaw Sync

Helper tool for syncing OpenClaw configuration between iCloud Drive and local Obsidian vaults.

Purpose

This skill solves the problem of syncing OpenClaw configuration across multiple devices via iCloud:

  • Automatically detects all iCloud vaults with OpenClaw configs
  • Creates symlinks from local to iCloud for seamless sync
  • Supports multi-agent workspace templates (workspace_, workspace-)
  • Manages openclaw.json sync with overwrite control

Dependencies

DependencyRequiredDescription
python3YesPython 3.x (macOS comes with Python pre-installed)
macOSYesThis skill only works on macOS (iCloud Drive integration)
obsidian-icloud-syncYesObsidian must be set up to sync vaults via iCloud Drive

Check Dependencies

# Check Python availability
python3 --version

# Check iCloud Obsidian path exists
ls -ld ~/Library/Mobile\ Documents/iCloud~md~obsidian/Documents

Usage

/obsidian-openclaw-sync [command] [options]

Commands

CommandDescription
statusShow all iCloud vaults with agents and skills, indicates sync status
setupInteractive setup to sync a vault to local
unsetList and remove local symlinks

Options

OptionShortDescription
--vault N-v NPre-select vault by index (default: interactive)
--overwrite-wOverwrite local openclaw.json with symlink to iCloud version
--no-confirm-ySkip confirmation prompt (auto-confirm)

Examples

# Check sync status (shows all iCloud vaults)
/obsidian-openclaw-sync

# Interactive setup (select vault, create symlinks)
/obsidian-openclaw-sync setup

# Setup with overwrite (replace local openclaw.json with iCloud symlink)
/obsidian-openclaw-sync setup --overwrite

# Setup without confirmation prompt (auto-confirm)
/obsidian-openclaw-sync setup --no-confirm

# Setup specific vault without prompts
/obsidian-openclaw-sync setup --vault 1 --no-confirm

# List and remove local symlinks
/obsidian-openclaw-sync unset

Output Format

✓ iCloud Obsidian: /Users/.../iCloud~md~obsidian/Documents

✓ Valid Vaults (N):
  ✓ <vault-name>
      Agents (N): <agent1>, <agent2>, ...
      Skills (N): <skill1>, <skill2>, ...
  ○ <vault-name> [openclaw.json not found (recommended)]

✗ Invalid Vaults (N):
  ✗ <vault-name> (missing: .obsidian/)

Local Config: .openclaw
  Agents (N): <agent1>, <agent2>, ...
  Skills (N): <skill1>, <skill2>, ...

Synced Directories

Source (iCloud)Target (Local)
media/./media/
projects/./projects/
team/./team/
skills/./skills/
workspace-*/./workspace-*/
.openclaw/*.json./.openclaw/*.json
openclaw.json./openclaw.json (with --overwrite)

Multi-Device Sync Flow

  1. Device 1: Run setup to create symlinks to iCloud vault
  2. Device 2: Run setup --overwrite to replace local config with iCloud symlink
  3. All devices: Changes sync via iCloud Drive automatically

References