Security guard for Claude Code and Codex. Detect secrets, block dangerous operations, and keep a local audit trail.
VibeGuard installs managed hooks for Claude Code and Codex. Before supported prompts, shell commands, file writes, or edits proceed, VibeGuard scans for secrets and dangerous patterns, then allows, warns, asks for confirmation, or blocks based on the active policy preset.
- API keys and tokens for OpenAI, Anthropic, AWS, GitHub, GitLab, Stripe, Slack, SendGrid, NPM, PyPI, and more
- Private keys, database URLs with passwords, generic secret assignments, JWTs, and password URLs
- Sensitive files such as
.env, SSH keys, AWS credentials, Docker/Kubernetes configs, shell history, and.netrc - Dangerous commands such as
rm -rf /,mkfs,dd of=/dev/..., fork bombs, force push to main, pipe-to-shell, and destructive SQL
npm install -g @embodot/vibeguard
vibeguard install
vibeguard doctorBy default, vibeguard install configures Claude only. Use explicit targets for Codex or both hosts:
vibeguard install --target codex
vibeguard install --target allvibeguard install --target claude
vibeguard launch claude -- --helpClaude integration includes PreToolUse hooks for Bash|Write|Edit|Read, UserPromptSubmit secret scanning, optional MCP registration, and dashboard logging.
Codex support uses official Codex hooks. It does not use the old PTY/TUI proxy approach.
vibeguard install --target codex
vibeguard doctor --target codex
vibeguard launch codex -- --helpCodex integration includes UserPromptSubmit secret scanning, PreToolUse scanning for supported tool events such as Bash, apply_patch, Edit, and Write, and dashboard logging. Coverage follows the official Codex hook surface. If Codex asks you to review hooks, trust the VibeGuard entries from /hooks before relying on enforcement.
VibeGuard defaults to balanced.
vibeguard config preset
vibeguard config preset minimal
vibeguard config preset balanced
vibeguard config preset strictminimal: block critical findings onlybalanced: block critical and high findingsstrict: block critical, high, and medium findings
Policy is stored at ~/.vibeguard/policy.json.
vibeguard install [--target claude|codex|all]
vibeguard uninstall [--target claude|codex|all]
vibeguard doctor [--target claude|codex|all]
vibeguard launch claude -- <claude args...>
vibeguard launch codex -- <codex args...>
vibeguard config preset [minimal|balanced|strict]
vibeguard dashboard
vibeguard mcpvibeguard dashboardOpen http://localhost:7847. The dashboard shows overview statistics, daily trends, filterable event history, rule browsing, and custom pattern management.
vibeguard installupdates~/.claude/settings.jsonidempotently.vibeguard install --target codexupdates~/.codex/hooks.jsonidempotently.- Claude or Codex invokes the VibeGuard hook scripts before supported operations run.
- VibeGuard scans with built-in rules plus dashboard-managed overrides and custom patterns.
- Findings are logged to
~/.vibeguard/events.db.
VibeGuard checks for new npm versions automatically when you run CLI commands and attempts a global update when a newer version is found.
Disable this behavior if needed:
export VIBEGUARD_DISABLE_AUTO_UPDATE=1If vibeguard doctor reports a native module error or vibeguard dashboard returns 500 errors:
npm rebuild better-sqlite3
vibeguard doctorIf you switched Node versions, reinstall the global package in the active Node version:
npm install -g @embodot/vibeguard
vibeguard install
vibeguard doctorgit clone https://github.com/dadwadw233/VibeGuard.git
cd VibeGuard
npm install
npm run build
npm testRepo-local plugin loading is still available for Claude development and debugging, but it is not the recommended end-user install path.
claude --plugin-dir /path/to/VibeGuardBuilt entrypoints:
dist/hooks/pre-tool-use.jsdist/hooks/user-prompt-submit.jsdist/hooks/codex-pre-tool-use.jsdist/hooks/codex-user-prompt-submit.jsdist/mcp/server.js
MIT