Configuration
Every setting in .env, the three ways to run Kavach, and what each run parameter changes.
Kavach reads its settings from .env at the repo root. pnpm bootstrap writes it for you; to do it by hand, copy .env.example to .env. Both .env and agent_config.yaml (the Band identities) are gitignored, so keys never reach the repository.
Three ways to run
pnpm dev:offlineScripted agents, a scripted bot running in the same process and no Band. It sets BRAIN_PROVIDER=fake, TARGET_MODEL=fake, TARGET_URL=inprocess, BAND_ENABLED=false and FAKE_DELAY_S=1 so the run is slow enough to watch. The detectors, guard policy and utility suite are the real ones. No keys needed.
Agent brains
Prop
Type
The bot under test
Prop
Type
Band
Prop
Type
Run parameters
Prop
Type
API and dashboard
Prop
Type
Commands
| Command | What it does |
|---|---|
pnpm bootstrap | Installs everything, asks for keys, creates the Lyzr and Band agents, writes .env and checks every connection |
pnpm dev | API, bot, dashboard and this site, live |
pnpm dev:offline | The same with scripted agents and bot, no keys |
pnpm demo | Records live runs until one passes the story check (round 1 breached, a patch vetoed, utility held), then saves runs/demo_run.jsonl. The committed one was promoted with kavach.promote_demo from a run whose first patch was approved |
make -C backend check-setup | Re-runs only the connection checks |
make -C backend probe | Is v1 breakable by your TARGET_MODEL? Needs at least 50% |
make -C backend band | Checks the seven Band identities and posts a test message |
make -C backend smoke | A full three-round offline run in the terminal |
make -C backend test | The backend unit tests, offline |
pnpm deploy:site | Builds this site, the docs and the dashboard demo and deploys them to Cloudflare. See Deploy |