Skip to main content

Liceat — the authority control plane for AI agents. Attenuable, offline-verifiable, revocable capability tokens (CW1 warrants) for delegating scoped authority to agents.

Project description

liceat (Python SDK)

Liceat"let it be permitted." The authority control plane for AI agents.

Issue verifiable, attenuable, revocable warrants; verify them offline; delegate safely between agents (authority provably only narrows). Wire-compatible with the TypeScript reference — both verify the same frozen vectors in spec/vectors.json.

from liceat import generate_keypair, issue, attenuate, verify_warrant, encode

sec, pub = generate_keypair()
warrant, atk = issue(sec, "root-1", "org:acme", "agent:booker", [
    {"type": "resource", "patterns": ["pay:*"]},
    {"type": "action", "actions": ["pay", "read"]},
    {"type": "spend_limit", "currency": "USD", "max": 5000},
])

# hand a narrower warrant to a sub-agent — it provably cannot escalate
sub, _ = attenuate(warrant, atk, [{"type": "action", "actions": ["read"]}])

result = verify_warrant(sub, {"resource": "pay:x", "action": "pay",
                              "amount": 100, "currency": "USD"},
                        resolve_root_key=lambda kid: pub)
assert not result.ok  # narrowed away

token = encode(sub)   # CW1~... — present to any Liceat gateway or verifier

Full protocol specification: docs/SPEC.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

liceat-0.4.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

liceat-0.4.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file liceat-0.4.0.tar.gz.

File metadata

  • Download URL: liceat-0.4.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for liceat-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9136be74032ff11f46c19eaba77ba7c82b0d3efc2af2327f37c46176e7b5fb31
MD5 ee73b0e4d1d0ec34e6f66707f47952c2
BLAKE2b-256 190c797ea38b954a0d8170f3e8c6355515ee35f1f9ba3fd77fa5d8680b771e3b

See more details on using hashes here.

File details

Details for the file liceat-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: liceat-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for liceat-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82048b7099b964aba9d8be9e831f4083aca2d37044831b57a98f682daddb5b72
MD5 0403c5167de7c3dda6f86adc0291d33a
BLAKE2b-256 cef0b70d5e6155119da9bae9356b0320f32f4666423a5a2b9b1ea0e9ff8afa2e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page