Remote OpenClaw

Remote OpenClaw Blog

Obsidian + OpenClaw: Using Your Notes as Agent Memory

8 min read ·

Why Obsidian as Agent Memory

Obsidian is a Markdown-based note-taking app used by millions of people for personal knowledge management. If you're already using it, your vault is a rich, structured knowledge base — project notes, meeting records, research, SOPs, client details, and everything else you've documented over time.

Using that vault as agent memory means your OpenClaw agent instantly has access to everything you know, organized the way you think about it. Instead of manually re-typing context or copying information into the agent's memory system, the agent reads your notes directly.

The integration is particularly powerful because Obsidian's file format is plain Markdown. There's no proprietary format, no database to query, no API to authenticate against. OpenClaw just reads .md files — something it's already good at.

For the full context on how memory works in OpenClaw, see the memory configuration guide. For Obsidian-specific troubleshooting, check our Obsidian integration guide.


How the Integration Works

The architecture is straightforward:

  1. Your Obsidian vault lives on your local machine (laptop, desktop, phone).
  2. A sync mechanism copies the vault to your OpenClaw server in near-real-time.
  3. OpenClaw reads the vault from a Docker volume mount, using the Markdown files as a knowledge source.
  4. Optionally, OpenClaw writes back to the vault — creating new notes, appending to existing ones, or updating frontmatter.

The sync mechanism is the only moving part. Once the vault is on the server, OpenClaw treats it like any other file-based memory source. The agent can be configured to read specific folders, watch for changes, and index new content automatically.


Sync Methods Compared

MethodCostSync SpeedSetup DifficultyBest For
SyncthingFreeSecondsMediumMost operators
Obsidian Sync$4/moSecondsEasyExisting subscribers
GitFreeManual/cronEasyDev-oriented users
rsync (cron)FreeMinutesEasySimple, reliable
Dropbox/Google DriveVariesSecondsMediumExisting cloud users

Syncthing is the recommended approach for most operators. It's free, open source, peer-to-peer (no cloud middleman), and syncs changes in seconds. It runs as a lightweight service on both your local machine and your server.

Git is a good alternative if your vault is already in a repository. Set up a cron job on the server that runs git pull every few minutes, or use a webhook to trigger pulls on push.


Step-by-Step Setup

This guide uses Syncthing as the sync method and assumes you're running OpenClaw via Docker Compose on a Linux VPS.

Step 1: Install Syncthing on your local machine

Download Syncthing from syncthing.net and install it. On macOS, you can use Homebrew: brew install syncthing. On Windows, download the installer. Configure it to share your Obsidian vault folder.

Step 2: Install Syncthing on your server

sudo apt install syncthing
sudo systemctl enable syncthing@$(whoami)
sudo systemctl start syncthing@$(whoami)

Access the Syncthing web UI on your server (default: http://localhost:8384) and add your local machine as a remote device. Accept the vault folder share.

Step 3: Mount the vault in Docker Compose

Add the synced vault directory as a volume in your OpenClaw Docker Compose file:

services:
  openclaw:
    image: openclaw/openclaw:latest
    volumes:
      - openclaw_data:/app/data
      - /home/user/Sync/obsidian-vault:/app/knowledge/obsidian:ro
    restart: unless-stopped

The :ro flag makes the mount read-only, which is appropriate if you only want the agent to read your notes. Remove it if you want two-way sync (agent writing back to vault).

Step 4: Configure OpenClaw to use the vault

Add the knowledge source in your config.yaml:

knowledge:
  sources:
    - name: obsidian
      type: filesystem
      path: /app/knowledge/obsidian
      watch: true
      include:
        - "**/*.md"
      exclude:
        - ".obsidian/**"
        - ".trash/**"

The watch: true setting tells OpenClaw to monitor the directory for changes and re-index new or modified notes automatically. The exclude patterns skip Obsidian's internal configuration and trash folders.

Step 5: Verify the connection

Restart OpenClaw: docker compose up -d. Then ask your agent a question that can only be answered from your Obsidian notes. If it responds with information from your vault, the integration is working.

Read Workflows: Agent Reads Your Notes

The simplest integration pattern: the agent reads your notes for context when answering questions or performing tasks. Some practical read workflows:

Project context

Keep project notes in Obsidian with consistent structure (status, stakeholders, deadlines, decisions). When you ask the agent about a project, it pulls the relevant notes and has full context without you explaining anything.

SOPs and procedures

Document your standard operating procedures in the vault. The agent can follow them when executing tasks, ensuring consistency. "Process this invoice using the SOP in my vault" becomes a reliable instruction.

Client details

Client notes — contact info, preferences, communication history, project history — become instantly available to the agent. "Draft an email to Sarah at Acme about the Q2 deliverables" works because the agent knows who Sarah is, what Acme's project involves, and what Q2 deliverables were planned.

Research and reference

If you clip articles, save research, or maintain reference notes, the agent can use them as sources when generating content or answering questions. Your curated knowledge becomes the agent's knowledge.

Marketplace

Free skills and AI personas for OpenClaw — browse the marketplace.

Browse the Marketplace →

Write Workflows: Agent Writes to Your Vault

Two-way integration lets the agent create and modify notes in your Obsidian vault. This is more complex but enables powerful workflows:

Meeting summaries

After processing meeting transcripts, the agent writes structured summaries to a designated folder in your vault. Each summary includes attendees, key decisions, action items, and follow-ups — formatted in your preferred template.

Daily briefings

Configure a scheduled task that generates a daily briefing note each morning. The agent reviews your calendar, pending tasks, and recent communications, then writes a note summarizing what you need to know and do today.

Research outputs

When the agent performs research (competitor analysis, market data, technical investigation), it writes the results as structured notes in your vault. You review and refine them in Obsidian, keeping your knowledge base up to date.

Configuring write access

To enable write workflows, remove the :ro flag from the Docker volume mount and configure the output directory in config.yaml:

knowledge:
  output:
    path: /app/knowledge/obsidian/Agent-Output
    format: markdown
    template: default
    frontmatter: true

All agent-generated notes will appear in the Agent-Output folder of your vault. Syncthing will sync them back to your local Obsidian within seconds. If any sync issues arise, check our Obsidian memory fix guide.


If your vault has fewer than 200 notes, direct file reading works fine — OpenClaw can scan the relevant files quickly. For larger vaults (1,000+ notes), you'll want to add vector search so the agent can find relevant notes without scanning everything.

The setup combines the Obsidian file mount with ChromaDB embeddings:

knowledge:
  sources:
    - name: obsidian
      type: filesystem
      path: /app/knowledge/obsidian
      watch: true
      vector:
        enabled: true
        backend: chromadb
        collection: obsidian_notes
        chunk_size: 800
        re_embed_on_change: true

With this configuration, OpenClaw embeds every note in your vault into ChromaDB. When the agent needs information, it performs a semantic search across all embeddings and retrieves the most relevant notes. The re_embed_on_change: true setting automatically re-embeds notes that Syncthing updates.

For more on vector databases and embeddings, see the memory configuration guide and our dedicated article on vector databases and embeddings in OpenClaw.


Practical Workflow Examples

Here are three real workflows that operators are running with the Obsidian + OpenClaw integration:

Freelancer project management

A freelance consultant keeps client notes, project briefs, and deliverable tracking in Obsidian. Their OpenClaw agent reads these notes to answer client questions, draft status updates, and flag approaching deadlines. When the agent processes a new client communication, it appends key points to the relevant project note.

Content creation pipeline

A content creator maintains a vault of research, outlines, and published pieces. They tell their agent "write a draft based on the outline in Projects/Blog/AI-Agents-2026." The agent reads the outline, pulls supporting research from other notes in the vault, and writes a complete first draft — saved back to the vault for editing in Obsidian.

Team knowledge base

A small team shares an Obsidian vault via Git. Their OpenClaw agent serves as a team assistant that can answer questions about internal processes, find documentation, and draft responses using the team's collective knowledge. New team members ask the agent about procedures instead of interrupting colleagues.


Frequently Asked Questions

Can OpenClaw read my Obsidian vault directly?

Yes, if your Obsidian vault is accessible from the server running OpenClaw. The most common approach is syncing the vault to the server using Syncthing, Obsidian Sync, or Git, then mounting the vault directory as a Docker volume. OpenClaw can then read the Markdown files directly as a knowledge source, either loading them into context on demand or embedding them into a vector database for semantic search. See the memory configuration guide for all memory options.

Which sync method works best for Obsidian to OpenClaw?

For most operators, Syncthing is the best option — it's free, open source, peer-to-peer, and works across platforms. Obsidian Sync also works but requires a paid subscription. Git-based sync is ideal if your vault is already in a repository. The key requirement is that changes on your local Obsidian app appear on the server within a reasonable time. Check our Obsidian integration guide for detailed setup instructions per method.

Does OpenClaw write back to my Obsidian vault?

It can, if you configure it to. OpenClaw can create new notes, append to existing notes, and update frontmatter in your Obsidian vault. This enables two-way workflows: you write notes that the agent reads, and the agent writes notes that you read. Common use cases include meeting summaries, research outputs, daily briefings, and task tracking. The write-back feature is opt-in and configurable per workflow. If you run into issues, see our Obsidian memory fix guide.

Will this slow down my Obsidian app?

No. OpenClaw accesses the vault files on the server side. Your local Obsidian app continues to work normally. The only potential impact is if the sync method creates a large number of files quickly (e.g., the agent generating dozens of notes at once), which could trigger Obsidian's file watcher to re-index. In practice, this is rarely noticeable. Browse the marketplace for pre-built personas optimized for knowledge management workflows.