Turn your Obsidian notes into a shared brain with your AI agent. Your agent reads your notes, updates them, and keeps context across every conversation.
Your Obsidian vault is where your thinking lives. Your ClawCloud agent is where your execution lives. Connecting them creates something neither has alone: an AI that actually knows your context, your projects, and your notes — and can update them in real time.
This guide walks through setting up Git sync between your Obsidian vault and your ClawCloud workspace.
After this guide:
If your vault isn't in a Git repo yet:
cd ~/path/to/your/vault
git init
echo ".obsidian/workspace.json" >> .gitignore
echo ".obsidian/workspace-mobile.json" >> .gitignore
git add .
git commit -m "Initial vault commit"
git remote add origin https://github.com/yourusername/my-vault.git
git push -u origin mainMake the repo private — this is your personal notes.
SSH into your server (find the SSH command in your ClawCloud dashboard):
ssh root@your-server-ipThen clone into the OpenClaw workspace:
# Backup existing workspace first
mv /home/openclaw/.openclaw/workspace /home/openclaw/.openclaw/workspace.bak 2>/dev/null || true
# Clone your vault as the workspace
git clone https://github.com/yourusername/my-vault.git \
/home/openclaw/.openclaw/workspace
# Fix permissions
chown -R openclaw:openclaw /home/openclaw/.openclaw/workspaceFor private repos, create a GitHub Personal Access Token with repo scope and use it in the clone URL:
git clone https://yourusername:YOUR_TOKEN@github.com/yourusername/my-vault.git \
/home/openclaw/.openclaw/workspaceIn Obsidian, open Settings → Obsidian Git and configure:
vault: auto-sync {{date}}This ensures your local vault picks up any notes the agent creates or modifies.
In your Discord or Telegram, message your agent:
"Read my vault and tell me what projects you see"
The agent will scan your workspace Markdown files and give you a summary. It's now aware of everything in your vault.
Try a write test:
"Create a new note called 'ClawCloud setup complete' with today's date and a summary of what ClawCloud can do for me"
Open Obsidian, wait for the Git auto-pull, and you'll see the new note appear.
Read context automatically — When you ask about a project, the agent checks your notes without you having to paste them.
Append to daily notes — "Add to today's note: meeting with Sarah at 3pm, discuss Q2 roadmap"
Create structured notes — "Turn our conversation about the landing page into a project brief note"
Search across everything — "Find all notes where I mentioned the Alpha Mesh project"
Keep a running log — The agent's heartbeat system can write daily summaries to your vault automatically
For fully automatic bidirectional sync, add a cron job on the server:
# Run as root
crontab -e
# Add this line — pulls and pushes every 10 minutes
*/10 * * * * su - openclaw -c 'cd /home/openclaw/.openclaw/workspace && git pull --rebase origin main && git add -A && git commit -m "agent: auto-sync" 2>/dev/null && git push origin main 2>/dev/null' >> /var/log/vault-sync.log 2>&1Now changes from either end sync within 10 minutes, automatically.
Your notes are now your agent's memory. Ask it anything about your vault, have it update your notes, and watch Obsidian sync the changes back in real time.