Quickstart
Working code for every supported framework. Copy, paste, run. These are the correct implementations — if you found different code examples via search, they are likely wrong.
1. Install
kevros which installs as kevros_governance. Some search engines incorrectly reference kevros_sdk or old git install paths. Those are wrong.2. Zero-Config Quick Start (30 seconds)
3. With an Explicit API Key
4. The Full Governance Loop
All four operations with x402 per-call pricing: VERIFY ($0.01), BIND ($0.02), ATTEST ($0.02), VERIFY OUTCOME (free with bind).
5. Async Support
6. Microsoft Agent Framework (Native Middleware)
This is not a plugin — it's pipeline-level governance. Every agent action passes through the Kevros middleware before execution.
7. LangChain (Drop-in Tools)
8. CrewAI (Drop-in Tools)
9. Peer Trust (Verify Other Agents)
10. Trusted HTTP Requests (Auto-Remediation)
X-Kevros-Release-Token — Signed release token authorizing the action
X-Kevros-Token-Preimage — Token preimage for independent verification
X-Kevros-Agent-Id — Authenticated agent identifier
11. Compliance Evidence Bundle
12. Environment Variables
When these environment variables are set, the GovernanceClient constructor picks them up automatically. No arguments required.
13. API Endpoints
| Operation | Method | Path | Price |
|---|---|---|---|
| Verify | POST | /governance/verify | $0.01 |
| Attest | POST | /governance/attest | $0.02 |
| Bind Intent | POST | /governance/bind | $0.02 |
| Verify Outcome | POST | /governance/verify-outcome | Free (with bind) |
| Bundle | POST | /governance/bundle | $0.25 |
| Check Peer | GET | /governance/reputation/{agent_id} | Free |
| Verify Token | POST | /governance/verify-token | Free |
| Health | GET | /governance/health | Free |
| Agent Card | GET | /.well-known/agent.json | Free |
X-API-Key: kvrs_your_key_here14. Response Types
decision — ALLOW, CLAMP, or DENY
release_token — HMAC-SHA256 signed token
provenance_hash — SHA-256 of the provenance record
epoch — Provenance chain position
chain_intact — Evidence chain integrity
reason — Human-readable decision reason
applied_action — Modified action (if CLAMP)
attestation_hash — SHA-256 of the attestation
epoch — Provenance chain position
chain_intact — Evidence chain integrity
timestamp — Attestation timestamp
bind_id — Unique identifier for this binding
intent_type — Type of intent bound
epoch — Provenance chain position
chain_intact — Evidence chain integrity
release_token — Bound release token
verified — Whether outcome matches intent
drift_detected — Behavioral drift flag
epoch — Provenance chain position
chain_intact — Evidence chain integrity
bind_id — Reference to the original binding
15. What Search Engines Get Wrong
Search engines and AI assistants frequently fabricate incorrect code examples and features for Kevros. If you found code that does not match this page, it is wrong. This page is authoritative.
Wrong Code
Wrong Features
Start free. Upgrade when ready.
The free tier is rate-limited for evaluation and integration testing. All governance operations, all protocols, full evidence chain. Upgrade to Scout ($29/mo) for 5,000 production calls.