Get up and running in 5 minutes
This guide walks you through installing Warden, running your first analysis, and setting up automated PR reviews.Initialize Warden
Run the init command to create a This creates a basic configuration with example skills:
warden.toml configuration file:warden.toml
The
init command also creates a .github/workflows/warden.yml GitHub Actions workflow file.Set up authentication
Warden needs a Claude API key or Claude Code CLI to run. Choose one:Option A: Use Claude Code CLI (recommended for local development)If you have Claude Code CLI installed and logged in:Warden automatically uses your Claude Code subscription.Option B: Use an API keySet the Or use the
ANTHROPIC_API_KEY environment variable:WARDEN_ANTHROPIC_API_KEY variable:Run your first analysis
Make some changes to your code, then run Warden:Warden will:
- Load skills from
warden.toml - Match triggers (e.g.,
type = "local") - Run matched skills with Claude
- Display findings in your terminal
Apply auto-fixes
Many findings include suggested fixes. Apply them with Warden applies unified diff patches directly to your files.
--fix:Set up GitHub Action
Enable automated PR reviews by adding your API key to GitHub Secrets:Now Warden will comment on every PR with findings!
- Go to your repository Settings β Secrets and variables β Actions
- Create a new secret named
ANTHROPIC_API_KEY - Paste your API key
warden init is ready to use:.github/workflows/warden.yml
Whatβs next?
Configure skills
Customize skill behavior, triggers, and severity thresholds
Create custom skills
Write your own skills for project-specific analysis
CLI reference
Explore all CLI commands and options
GitHub Action setup
Advanced GitHub Action configuration
Example workflows
Analyze before commit
Add Warden to your pre-commit hook:.husky/pre-commit
Weekly scheduled scans
Run comprehensive scans on a schedule:warden.toml
.github/workflows/warden-scheduled.yml
Strict enforcement
Fail CI on high-severity findings:warden.toml
.github/workflows/warden.yml
Questions? Check the troubleshooting guide or open an issue.