This guide explains how to make Vault Sync available to Codex, Claude Code, and OpenClaw. Vault Sync is only for consuming an existing Vault Git repository as local files. Vault creation and management stay in the app that generated the Vault.
- A Vault Git repository URL.
- A local destination folder, such as
~/vaults/my-vault. - macOS, Linux, or WSL2.
- Git authentication already set up for the Vault repository.
Native Windows PowerShell and Command Prompt are not currently supported. On Windows, run the agent and Vault Sync inside WSL2, and keep the Vault under the WSL filesystem.
Use the most native install path your agent supports:
| Agent | Recommended path | Fallback |
|---|---|---|
| Codex | Plugin marketplace in Codex CLI 0.121.0 or newer |
Skills or manual CLI |
| Claude Code | Agent skills | Direct skill URL or manual CLI |
| OpenClaw | Agent skills or direct skill URL | Manual CLI |
The agent should set up the local mirror, then use normal filesystem tools to read it. It should not use Vault Sync as a search or query layer.
This path requires Codex CLI 0.121.0 or newer.
Add the Vault Sync marketplace:
codex plugin marketplace add graphlit/vault-syncAfter install, use the marketplace name graphlit-vault-sync for maintenance:
codex plugin marketplace upgrade graphlit-vault-sync
codex plugin marketplace remove graphlit-vault-syncThen ask Codex:
Use the Vault Sync plugin to set up my Vault from <your-vault-repo-url>.
Codex should install vault-sync, initialize the local folder, run vault-sync doctor, and ask before installing a recurring pull schedule.
If plugin marketplace support is not available in your Codex CLI version, install the skills directly:
npx skills add graphlit/vault-sync --skill vault-sync-setup
npx skills add graphlit/vault-sync --skill vault-sync-useThen ask Codex:
Use Vault Sync to set up my Vault from <your-vault-repo-url>.
If Codex supports reading a skill from a URL, use one of:
https://raw.githubusercontent.com/graphlit/vault-sync/main/skill.md
https://www.zine.ai/skill.md
https://www.dossium.ai/skill.md
Install the setup and usage skills:
npx skills add graphlit/vault-sync --skill vault-sync-setup
npx skills add graphlit/vault-sync --skill vault-sync-useThen ask Claude Code:
Set up Vault Sync for my Vault from <your-vault-repo-url>.
Claude Code should install vault-sync, initialize the local folder, run vault-sync doctor, and ask before installing a recurring pull schedule.
If your Claude Code environment supports direct skill URLs, use one of:
https://raw.githubusercontent.com/graphlit/vault-sync/main/skill.md
https://www.zine.ai/skill.md
https://www.dossium.ai/skill.md
If OpenClaw supports GitHub-based skill installation, install:
npx skills add graphlit/vault-sync --skill vault-sync-setup
npx skills add graphlit/vault-sync --skill vault-sync-useThen ask OpenClaw:
Set up Vault Sync for my Vault from <your-vault-repo-url>.
If OpenClaw supports direct skill URLs, use one of:
https://raw.githubusercontent.com/graphlit/vault-sync/main/skill.md
https://www.zine.ai/skill.md
https://www.dossium.ai/skill.md
Use this path when an agent cannot install skills or plugins directly:
git clone https://github.com/graphlit/vault-sync
cd vault-sync
install -m 0755 bin/vault-sync ~/.local/bin/vault-sync
vault-sync init <your-vault-repo-url> ~/vaults/<name>
vault-sync pull ~/vaults/<name>
vault-sync doctor ~/vaults/<name>To keep the Vault fresh:
vault-sync schedule install ~/vaults/<name> --every 5mOnce the Vault is local, point the agent at the folder and say:
Use the local Vault in ~/vaults/<name>. Read README.md first. Ignore hidden control folders like .git, .zine, .dossium, .graphlit, .claude, and .codex. Use normal file tools to search and read the Markdown files.
The agent can use ls, rg, sed, cat, and native file reads. Vault Sync should only be used to initialize, pull, check status, schedule pulls, or run diagnostics.
QMD can make a synced Vault folder easier to search. The roles are separate:
- Vault Sync handles Git clone, pull, status, schedule, and diagnostics.
- QMD searches the local Markdown files after they exist on disk.
- The agent should use QMD to find likely files, then open the files directly when it needs the full source.
If QMD is installed, add the Vault folder as a collection:
vault-sync pull ~/vaults/<name>
qmd collection add ~/vaults/<name> --name <name> --mask "**/*.md"
qmd context add qmd://<name> "Local Vault synced by Vault Sync"
qmd embedUseful QMD commands for agents:
qmd search "<keywords>" -c <name> --json -n 10
qmd vsearch "<natural-language question>" -c <name> --json -n 10
qmd query "<research question>" -c <name> --json -n 10
qmd get "path/from/result.md" --fullQMD is optional. Do not install or require it unless the user asks for a stronger local search companion.
After setup, run:
vault-sync status ~/vaults/<name>
vault-sync doctor ~/vaults/<name>
rg -n "<known term>" ~/vaults/<name>Expected result:
vault-sync statusreports the current local revision.vault-sync doctorreports Git and repository health.rgcan find text in Markdown files.
If Git authentication fails, authenticate through your normal Git or GitHub CLI flow and retry vault-sync pull.