Skip to Content
कवच

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:offline

Scripted 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

CommandWhat it does
pnpm bootstrapInstalls everything, asks for keys, creates the Lyzr and Band agents, writes .env and checks every connection
pnpm devAPI, bot, dashboard and this site, live
pnpm dev:offlineThe same with scripted agents and bot, no keys
pnpm demoRecords 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-setupRe-runs only the connection checks
make -C backend probeIs v1 breakable by your TARGET_MODEL? Needs at least 50%
make -C backend bandChecks the seven Band identities and posts a test message
make -C backend smokeA full three-round offline run in the terminal
make -C backend testThe backend unit tests, offline
pnpm deploy:siteBuilds this site, the docs and the dashboard demo and deploys them to Cloudflare. See Deploy

On this page