tenuo
Cryptographic authorization primitive for AI agents.
Status: v0.2 — Production/Stable. Core semantics are stable. See CHANGELOG.
Overview
Tenuo implements capability tokens (Warrants) for AI agent authorization:
- Offline verification in under 50 μs - no network calls
- Monotonic attenuation - delegated tokens can only shrink in scope
- Proof-of-possession - stolen tokens are useless without the private key
- Constraint types -
Exact,Pattern,Range,OneOf,Regex,Wildcard,CEL,UrlPattern,Cidr - Multi-sig approvals - M-of-N cryptographic approval requirements
Quick Start
use ;
// Generate keys
let issuer_key = generate;
let holder_key = generate;
// Issue a warrant
let warrant = builder
.capability
.holder
.ttl_secs
.build?;
// Verify and authorize
let authorizer = new;
authorizer.verify_and_authorize?;
Rust SDK (sdk feature)
Default-off. Guard enforces; ObservingGuard only assesses and is not a substitute.
use ;
use Duration;
let = local
.trusted_root
.chain
.signer
.revocation
.build?;
let args = args! ;
let call = borrowed;
guard.guard?;
An enforcement point uses Tenuo::enforcement() and Guard::guard_received on a ReceivedAuthorization decoded from _meta.tenuo or HTTP headers. The holder path always signs; the received path never does.
| Feature | Description |
|---|---|
sdk |
Guard, Call, delegation, observe |
mcp-transport |
params._meta.tenuo encode/decode |
http-transport |
Signed header binding |
receipts |
Authorization receipts (draft receipt-v1) |
async |
Async Guard methods and AttemptControl |
otel |
OpenTelemetry API spans only; no exporter |
test-utils |
FixedClock and sdk::test_utils scaffolding — not for production |
Run the MCP hop demo:
&&
Features
| Feature | Description |
|---|---|
control-plane |
Warrant issuance (default) |
data-plane |
Warrant verification (default) |
python |
PyO3 bindings |
server |
HTTP server dependencies |
Use Cases
- Sidecar authorizer - Verify warrants at the edge
- Gateway integration - Envoy/Istio external authorization
- Embedded verification - In-process authorization checks
Documentation
- tenuo.ai - Full documentation
- docs.rs/tenuo - API reference
- GitHub - Source code
License
Apache-2.0. See LICENSE for details.