Skip to content

Installation

One-Command Installer

The fastest way to install leash-secrets. Detects every agent on your machine and installs for each.

curl -fsSL https://raw.githubusercontent.com/FasterApiWeb/leash-secrets/main/scripts/install.sh | bash
irm https://raw.githubusercontent.com/FasterApiWeb/leash-secrets/main/scripts/install.ps1 | iex

~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

# Global
cp AGENTS.md ~/.codex/AGENTS.md

# Project-level
cp AGENTS.md your-project/AGENTS.md

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

gemini extensions install https://github.com/FasterApiWeb/leash-secrets

Windsurf

mkdir -p .windsurf/rules
cp skills/leash-secrets.md your-project/.windsurf/rules/leash-secrets.md

Cline

mkdir -p .clinerules
cp skills/leash-secrets.md your-project/.clinerules/leash-secrets.md

Kiro

mkdir -p .kiro/steering
cp skills/leash-secrets.md your-project/.kiro/steering/leash-secrets.md

Any Agent That Reads AGENTS.md

cp AGENTS.md your-project/AGENTS.md

Works with: Aider, CodeWhale, Swival, VS Code + Codex extension, and many others.


Via npm

npm install -g leash-secrets

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:

/leash-secrets

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