Installation¶
One-Command Installer¶
The fastest way to install leash-secrets. Detects every agent on your machine and installs for each.
~15 seconds. Skips agents you don't have. Safe to re-run.
Installer Options¶
# Install for a specific agent only
curl -fsSL .../install.sh | bash -s -- --only cursor
# Uninstall
curl -fsSL .../install.sh | bash -s -- --uninstall
Per-Agent Installation¶
Cursor¶
Copy the rule file to your project or global rules:
# Project-level (recommended)
mkdir -p .cursor/rules
cp .cursor/rules/leash-secrets.mdc your-project/.cursor/rules/
# Global (all projects)
cp .cursor/rules/leash-secrets.mdc ~/.cursor/rules/
Claude Code¶
# As a skill
mkdir -p ~/.claude/skills
cp skills/leash-secrets.md ~/.claude/skills/
# Or append to your project's CLAUDE.md
cat AGENTS.md >> your-project/CLAUDE.md
Codex¶
GitHub Copilot¶
# Project-level
mkdir -p .github
cp .github/copilot-instructions.md your-project/.github/
# Global
cp .github/copilot-instructions.md ~/.copilot/copilot-instructions.md
Gemini CLI¶
Windsurf¶
Cline¶
Kiro¶
Any Agent That Reads AGENTS.md¶
Works with: Aider, CodeWhale, Swival, VS Code + Codex extension, and many others.
Via npm¶
This installs the pattern validation tools and gives you access to npx leash-secrets commands.
Verify Installation¶
After installing, open your AI agent and type:
You should see the current mode (default: patrol). Try /leash-secrets-help for a quick reference.
Uninstall¶
| Agent | Command |
|---|---|
| Cursor | Delete .cursor/rules/leash-secrets.mdc |
| Claude Code | Delete ~/.claude/skills/leash-secrets.md |
| Codex | Remove leash-secrets section from AGENTS.md |
| Copilot | Delete .github/copilot-instructions.md |
| Gemini | gemini extensions uninstall leash-secrets |
| Windsurf / Cline / Kiro | Delete the copied rule file |
| Git hook | Delete .git/hooks/pre-commit-leash-secrets |