Quickstart
Install the CLI globally:
pnpm add -g @sentry/wardenAuthenticate
Section titled “Authenticate”Warden runs model-backed work through Pi by default. Set the model selector and the matching provider credential:
# OpenAI exampleexport WARDEN_MODEL=openai/gpt-5.5export WARDEN_OPENAI_API_KEY=sk-...
# Anthropic exampleexport WARDEN_MODEL=anthropic/claude-sonnet-4-6export WARDEN_ANTHROPIC_API_KEY=sk-ant-...CI environments require the same provider credentials as repository or organization secrets. See Models and Runtimes for config defaults, per-skill overrides, and Claude runtime selection.
Initialize
Section titled “Initialize”Initialize Warden in a repository:
warden initwarden init creates:
| File | Purpose |
|---|---|
warden.toml | Skills, triggers, thresholds, and defaults. |
.github/workflows/warden.yml | Pull request workflow for GitHub Actions. |
Run Locally
Section titled “Run Locally”wardenWith no arguments, Warden reviews the current branch against the default branch. Use this before opening or updating a pull request.
Initial warden.toml
Section titled “Initial warden.toml”The default config starts with the built-in security and correctness reviews:
version = 1
[[skills]]name = "security-review"
[[skills.triggers]]type = "pull_request"actions = ["opened", "synchronize"]
[[skills]]name = "code-review"
[[skills.triggers]]type = "pull_request"actions = ["opened", "synchronize"]Add more skills when your codebase has specific review needs.