v0.3.0  ·  Early Access  ·  Free

Your AI coding agent should
never read your secrets in the clear.

Guard is an MCP server that sits between Claude Code CLI or Codex CLI and your filesystem. The agent reads and writes through Guard instead of directly — so a .env, an SSH key, or a customer export never reaches the agent's cloud LLM in real form.

// npm install -g vaultmorph-guard
claude mcp add vaultmorph-guard -- vaultmorph-guard
Install Guard — Free Read the Developer Guide →
No account, offline activation Claude Code CLI · Codex CLI Free to use
127+
detection patterns
0
raw secrets sent to the model
2
agents supported today
Free
no account, offline activation
// the gap this fills

Chat-box privacy tools don't help here

Browser extensions that scan what you paste into ChatGPT assume a human types or pastes something. Coding agents read files, run commands, and call the model's API on their own — there's no paste step to scan.

What existing tools catch

A human copies a config value into a chat box, and a browser extension scans the field before it's sent. Useful — but it only covers content a person deliberately typed or pasted.

What Guard catches

An agent debugging a deploy issue opens .env, greps a customer export, or catches an SSH key in a find output — mid-task, autonomously. Guard redacts it before the agent ever sees it.

Agent reads .env → Detect (127 rules) → <<VM_KEY_2_F1>> tokenized before it reaches the model
Agent reasons about token → Suggests a fix → Writes back through Guard
Write verified against session → Restore locally → Real values back on disk never touched the network
A write referencing a token the current session doesn't recognize is blocked, not warned about — a stale or forged token can't silently corrupt a file.
LayerWhat it catchesGuarantee
safe_read / safe_write Any file the agent chooses to read through Guard Real values never enter the agent's context — the redaction layer
Claude Code PreToolUse hook A raw Read/Edit/Write/Bash call bypassing Guard entirely Model can't reason around it — runs outside the model. Best-effort only for Bash
Codex CLI PreToolUse hook A raw shell/apply_patch/Edit/Write call bypassing Guard on the Codex CLI terminal Real enforcement once installed and trusted via /hooks — schema-tolerant rather than an exact-field guarantee like Claude Code's. Doesn't cover the desktop app's run-command feature
Git pre-commit scanner A secret that made it into a file anyway, about to be committed Courtesy layer — --no-verify bypasses it by design
Org policy (opt-in) A developer disabling the hook locally Centrally managed via managed-settings.json — a developer genuinely can't turn it off

// why teams adopt it

Built for both sides of the AI-agent rollout conversation

Security and compliance owners need a control they can point to. Developers need a tool that doesn't get in the way of the agent actually being useful.

Business & compliance benefits
For security leads, engineering managers, and org admins

Closes an unmonitored leak surface

AI coding agents already have filesystem and network access — Guard is the control that was missing between them.

An enforcement guarantee, not a policy on paper

On Claude Code, the hook can be centrally managed so no individual developer can disable it — "one policy, not per-developer configuration."

Audit evidence on demand

A locally-logged, AES-256-GCM encrypted event history (metadata only) an admin can review for compliance purposes.

Extends coverage to your own risk profile

Custom rule packs let you detect internal ticket formats, hostnames, or token shapes the bundled 127-rule set doesn't know about — without waiting on a vendor update.

Adopt AI coding tools without freezing them out

Instead of banning agent access to sensitive files, Guard makes it safe to allow — agents stay useful, sensitive data stays off the wire.

No new infrastructure to run

No server to host, no account required — it activates itself, fully offline, on the developer's machine, free to use.

Developer benefits
For the person actually running the agent

Doesn't break your workflow

The agent still reads and edits the file — it just sees tokens instead of raw values, and real values are restored automatically on write.

Two-minute setup, zero accounts

npm install plus one registration command; a Community license generates itself offline on first run.

Works with the tools you already use

Standard MCP server — attaches to Claude Code CLI and Codex CLI the same way any other MCP server does.

Free where it matters

The redact-on-read/restore-on-write round trip is free, indefinitely — no tier to navigate.

Honest about its own limits

The docs state plainly where the guarantee is strong (Claude Code's hook) versus best-effort (Bash coverage, and Codex CLI's schema-tolerant hook) — no surprises when you rely on it.

A safety net for your own mistakes, too

The git pre-commit scanner and audit log tail catch what slips through, without waiting for someone else to notice.


// developer guide

Install, administer, and use Guard

Guard is a small tool by design — installation, admin setup, and day-to-day usage are covered together here rather than split across separate manuals.

01 — Quick install

Per project

npm install -g vaultmorph-guard
claude mcp add vaultmorph-guard -- vaultmorph-guard

No account, no API key. A Community license generates itself automatically, fully offline, on first run.

02 — Global setup

Protect every project

npm install -g vaultmorph-guard
vaultmorph-guard-setup

Registers Guard at --scope user, installs the PreToolUse hook into ~/.claude/settings.json, and points git's global core.hooksPath at Guard's pre-commit scanner. Safe to re-run any time.

03 — Codex CLI

Attaching to Codex, with real enforcement

Guard is a standard MCP server (stdio transport): codex mcp add vaultmorph-guard -- node /path/to/server.mjs.

node scripts/install-codex-hook.mjs /path/to/your/project

That registers Codex's own PreToolUse hook and sets [features] hooks = true in config.toml — then run /hooks inside a Codex CLI session to trust it. Codex won't execute an untrusted hook at all.

Once trusted, it's real enforcement on shell/exec, apply_patch, and file-tool calls — but schema-tolerant rather than an exact-field match, so treat it as a solid backstop, not an identical guarantee to Claude Code's hook. It only covers the CLI terminal: the Codex desktop app's built-in run-command feature doesn't route through it, so for now Guard's publicized support stops at the Codex CLI terminal.

04 — Admin

Org-wide enforcement

Deploy via Claude Code's managed-settings.json with allowManagedHooksOnly: true — Claude Code then only runs hooks from the managed config; a developer's own project settings are silently ignored.

Rollback: delete or rename the managed-settings.json at the system path — the same host/admin access a developer doesn't have.

05 — Custom rule packs

Extend detection

{
  "pack_name": "acme-internal",
  "rules": [{
    "name": "Acme Ticket ID",
    "regex": "\\bACME-[0-9]{6}\\b",
    "type": "token",
    "severity": "Medium"
  }]
}

Default location: ~/.vaultmorph/guard/custom-rules.json, loaded automatically at startup if present. Always additive — never removes or weakens a bundled rule.

06 — Tools exposed

Day-to-day use

safe_read / safe_write — the core round trip. safe_search — grep with tokenized matches. guard_status — tier, rules version, session count. update_rules — signed rule updates. audit_log_tail — encrypted local event history.


// security model

Stated honestly, not oversold


// install
VaultMorph Guard icon

Protect your first project in under two minutes

No account, no API key, no infrastructure to stand up — free to use.

// npm install -g vaultmorph-guard
claude mcp add vaultmorph-guard -- vaultmorph-guard