| Crates.io | tenuo |
| lib.rs | tenuo |
| version | 0.1.0-beta.6 |
| created_at | 2025-12-18 10:18:54.351756+00 |
| updated_at | 2026-01-15 08:32:04.211003+00 |
| description | Agent Capability Flow Control - Rust core library |
| homepage | |
| repository | https://github.com/tenuo-ai/tenuo |
| max_upload_size | |
| id | 1992114 |
| size | 1,493,426 |
Cryptographic authorization primitive for AI agents.
Status: v0.1 Beta — Core semantics are stable. See CHANGELOG.
Tenuo implements capability tokens (Warrants) for AI agent authorization:
Exact, Pattern, Range, OneOf, Regex, Wildcard, CEL, UrlPattern, Cidruse tenuo::{SigningKey, Warrant, Constraint, ConstraintSet, Authorizer};
// Generate keys
let issuer_key = SigningKey::generate();
let holder_key = SigningKey::generate();
// Issue a warrant
let warrant = Warrant::builder()
.capability("read_file", ConstraintSet::new().insert("path", Constraint::pattern("/data/*")))
.holder(holder_key.public_key())
.ttl_secs(300)
.build(&issuer_key)?;
// Verify and authorize
let authorizer = Authorizer::new(vec![issuer_key.public_key()]);
authorizer.verify_and_authorize(
&warrant,
"read_file",
&[("path", "/data/report.txt")],
Some(&holder_key.create_pop(&warrant, "read_file", &args)?),
)?;
| Feature | Description |
|---|---|
control-plane |
Warrant issuance (default) |
data-plane |
Warrant verification (default) |
python |
PyO3 bindings |
server |
HTTP server dependencies |
MIT OR Apache-2.0