This page is open straight from disk, so its scripts cannot load and nothing here is interactive. Run make site and open http://localhost:4173.
What this installation is running, and how to change it. Nothing here can be edited from the browser — see below for why that is deliberate.
Keys are off on this deployment (a demo). A key pasted here is still sent, and matters only if KAVACH_AUTH is turned on. Mint one with python -m kavach keys create --name you --scope operator. It is kept in this browser only.
Caps, thresholds, the gate’s economics and per-agent tiers come from the TOML file KAVACH_POLICY names (see kavach.example.toml), or the compiled defaults. A limit an operator can raise from the screen where it is failing them is not a limit — changing one is an edit with a diff, a review and a deploy, which is the audit trail a financial control needs. The backend has no endpoint that would accept the edit.
Razorpay keys and the webhook secret are read from the server environment (RAZORPAY_KEY_ID, RAZORPAY_KEY_SECRET, RAZORPAY_WEBHOOK_SECRET) and are never sent to the browser. There is no API that returns them, so there is nothing here to show or edit.
| Command | What it does |
|---|---|
| make run | seed the ledger, build the UI, and serve everything on one port |
| make seed | re-seed the reference ledger deterministically |
| make api | run the API alone against the current database |
| make bench | train the duplicate-risk estimator and write evals/risk_report.json |
| make gate-bench | train the entailment estimator and write evals/gate_report.json |
| make test | the full Python suite |
| python apps/webhook_server.py | receive Razorpay webhooks with HMAC verification, standalone |
| python apps/mcp_server.py | the MCP tool surface an agent connects to |
| python -m kavach keys create --name ops --scope operator | mint an API key; printed once |
| python -m kavach issuers add --key-id … --public-key … | trust a principal’s signing key |
| python -m kavach principal keygen | a keypair for a principal; sign mandates with `principal sign` |
| python -m kavach reconcile --once | settle or execute intents left APPROVED, against the provider |
| python -m kavach backup DEST | a consistent copy of a SQLite ledger while the API keeps serving |
| python -m kavach migrate | create or upgrade the schema; safe to repeat |
Switching to live mode is KAVACH_MODE=live with real credentials present. The badge in the sidebar turns red, because at that point every decision on these screens can move real money.