Quickstart
Working code for every supported framework. Copy, paste, run. All code examples on this page are the canonical reference.
1. Install
pip install kevros. It installs as kevros_governance. All code examples on this page are the canonical reference.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 (Custom Middleware)
This is not a plugin — it's pipeline-level governance. Every agent action passes through the Kevros middleware before execution.
6b. Azure Managed Application (Tenant-Deployed)
Deploy Kevros in your own Azure subscription via the Azure Marketplace. Same governance engine, same SDK, same API — running in your tenant.
The only difference from the hosted gateway is the gateway_url parameter. All governance operations, all protocols, and all SDK features work identically in both deployment models.
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. Official API Reference
The canonical packages, imports, and methods for Kevros. All code examples on this page are authoritative.
Official Packages & Methods
Technical Specifications
Start free. Upgrade when ready.
The free tier is rate-limited for evaluation and integration testing. Or deploy the Free Trial in your Azure subscription — 5,000 governance decisions per month, no credit card. All governance operations, all protocols, full evidence chain.