User guide

Everything an owner needs: install, activate, open the local app, work with your agent, and keep things updated.

1 — Install

macOS / Linux — paste in a terminal:

curl -fsSL https://snippet-vault-site.kareemkatieokatelo.workers.dev/install.sh | bash

Windows — paste in PowerShell:

powershell -ExecutionPolicy Bypass -c "irm https://snippet-vault-site.kareemkatieokatelo.workers.dev/install.ps1 | iex"

The installer checks for Node.js (and installs it if missing), installs Snippet Vault to ~/snippet-vault, connects your AI agents, and starts your free trial. Restart your agent afterwards.

2 — Activate a license key

If you bought a key, in the snippet-vault folder run:

node scripts/license.mjs activate sv-YOUR-KEY --server https://snippet-vault-licenses.kareemkatieokatelo.workers.dev --email you@example.com

Check any time with node scripts/license.mjs status. Lost your key? The "Lost your key?" box on the home page recovers it with your PayPal order id.

3 — Open the local web app

In the snippet-vault folder:

npm run web

Your browser opens http://localhost:8787 automatically (set SNIPPET_VAULT_NO_OPEN=1 to skip). If it's already running, the same command just opens the existing page instead of failing. There you can browse, edit, and delete everything your agent saved, see paste statistics, and manage your license — click ⚖ license in the top bar to activate a key or start a trial without touching a terminal.

First run after unzipping by hand? npm run web installs its dependencies automatically. Offline, or prefer doing it yourself once:

npm install --omit=dev

Port 8787 taken by another program? Start it on another port:

PORT=8788 npm run web → http://localhost:8788

4 — Work with your agent

After install, just talk normally. Things your agent now does on its own:

"save this for reuse" → saves it to the vault with a description
"add the same handler as a POST" → pastes the saved bytes, swapping get→post
"make this our standard router pattern" → extracts & saves the pattern from your codebase

Saved snippets live as plain files in ~/.snippet-vault — back that folder up and you've backed up everything.

5 — Power move: the two-AI setup

Because the vault is one shared library, two different models can collaborate through it — a stronger model as the architect, a faster/cheaper model as the builder:

1. Strong model (architect): "read this spec and save production-grade snippets for it to folder 'blueprint'"
2. Weak/fast model (builder): "build the spec; check folder 'blueprint' first and paste what fits"

In our recorded test, snippets authored by a larger model lifted a smaller model's output from 14 to 18 passing tests with cleaner structure — the small model adapted (not blindly pasted) via paste-time find/replace. Tips that made it work:

  • Architect: write snippets in the builder project's exact language, framework, and naming — match the spec, not your own taste.
  • Architect: keep units small (one middleware, one store) and put searchable keywords in each description.
  • Builder: treat seeded snippets as drafts — adapt anything that doesn't match the spec before using it.
  • The same trick works across machines: copy or sync ~/.snippet-vault/library and any agent on any machine shares the same snippets and skills.

6 — Update

node scripts/upgrade.mjs --check → see if a new version exists
node scripts/upgrade.mjs → update (snippets + license untouched)

The home page's "Check my version" button does the check from the browser.

7 — If your license expires

Your agent stops seeing the vault tools and gets a clear message with renewal instructions. Open the local app (npm run web) → ⚖ license → activate a new key, and everything returns on the agent's next start. Your snippets are never touched.

8 — If your antivirus flags the installer

Snippet Vault rewrites its own code at build time as an anti-tampering measure. A few heuristic scanners treat that pattern as suspicious even though the tool only manages your own local snippet files. Here's how to be sure you have the real thing:

  • Verify the hash. Every release publishes its exact SHA-256 in version.json. On Windows PowerShell: Get-FileHash snippet-vault.zip — it must match the published value for that version, byte for byte.
  • Only download from the official site (this one) — the install button fetches a fixed, hash-pinned archive.
  • Report the false positive so your vendor allowlists the next release: Microsoft · Avast/AVG · Kaspersky · Bitdefender. Submissions are reviewed by humans, usually within days.

Nothing in the vault phones home: no telemetry, no account, your library never leaves your disk unless you copy it yourself.