Skip to content

Latest commit

 

History

History
208 lines (139 loc) · 5.77 KB

File metadata and controls

208 lines (139 loc) · 5.77 KB

Agent Install Guide

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.

What You Need

  • 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.

Recommended Paths

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.

Codex

Plugin Marketplace

This path requires Codex CLI 0.121.0 or newer.

Add the Vault Sync marketplace:

codex plugin marketplace add graphlit/vault-sync

After install, use the marketplace name graphlit-vault-sync for maintenance:

codex plugin marketplace upgrade graphlit-vault-sync
codex plugin marketplace remove graphlit-vault-sync

Then 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.

Skills Fallback

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-use

Then ask Codex:

Use Vault Sync to set up my Vault from <your-vault-repo-url>.

Direct Skill 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

Claude Code

Agent Skills

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-use

Then 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.

Direct Skill URL

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

OpenClaw

Skill Install

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-use

Then ask OpenClaw:

Set up Vault Sync for my Vault from <your-vault-repo-url>.

Direct Skill 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

Manual Fallback

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 5m

After Install

Once 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.

Optional: Search Companion With QMD

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 embed

Useful 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" --full

QMD is optional. Do not install or require it unless the user asks for a stronger local search companion.

Validation Checklist

After setup, run:

vault-sync status ~/vaults/<name>
vault-sync doctor ~/vaults/<name>
rg -n "<known term>" ~/vaults/<name>

Expected result:

  • vault-sync status reports the current local revision.
  • vault-sync doctor reports Git and repository health.
  • rg can find text in Markdown files.

If Git authentication fails, authenticate through your normal Git or GitHub CLI flow and retry vault-sync pull.