Skip to main content

Sentinel AI — client SDK for AI agent governance & identity. Sign agent actions with Ed25519 and enforce them through the Sentinel authorization gateway. Private beta: cosimo@plannest.net

Project description

sentinel-agent-trust

Python client SDK for Sentinel AI — the identity & governance layer for AI agents: control, authorize, and audit autonomous agents before they touch your production APIs.

Sentinel is in private beta. For source access, a hosted sandbox organization key, or to collaborate: cosimo@plannest.net

Install

pip install sentinel-agent-trust

Usage

import os
from agent_trust_sdk import AgentTrustClient, AgentPermissionDeniedException

client = AgentTrustClient(
    agent_id="agt_...",
    private_key=os.environ["SENTINEL_AGENT_PRIVATE_KEY"],  # base64 Ed25519 seed
    gateway_url="https://your-gateway.example.com",
)

try:
    client.enforce_action("crm.refund.create", "crm://refunds", {"amount": 90})
    crm.create_refund(amount=90)          # authorized → do the real thing
except AgentPermissionDeniedException as exc:
    # final denial: do NOT retry — branch (degrade, escalate to a human, give up)
    escalate_to_human(exc.reason, exc.request_id)

Every request is signed with the agent's private Ed25519 key (never sent to the server) and carries a timestamp + nonce, so requests cannot be replayed. Denials carry a machine-readable code (permission_denied, behavioral_limit_exceeded, rate_limited, …) so your agent can branch instead of looping.

Generate a keypair

python -m agent_trust_sdk.keygen

Register the public key with your Sentinel gateway (POST /v1/agents); keep the private seed in a secret store.

License

Apache 2.0 — see LICENSE and NOTICE.

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

sentinel_agent_trust-0.2.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

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

sentinel_agent_trust-0.2.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file sentinel_agent_trust-0.2.0.tar.gz.

File metadata

  • Download URL: sentinel_agent_trust-0.2.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for sentinel_agent_trust-0.2.0.tar.gz
Algorithm Hash digest
SHA256 496ebdff5a68a7273f1580e88f26228f8b1330fac1988ceacc96021bda3631b8
MD5 e737d487e8c72c7d0c7dd779546787e8
BLAKE2b-256 71f51c0397f23196b171cfa7b23432c2280f074a792cd9a0a4f0f221a23e1d00

See more details on using hashes here.

File details

Details for the file sentinel_agent_trust-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sentinel_agent_trust-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5c062b64379c3ffeb8c9563a1236338a5e705cea240ee1674060c4b0e63a7ea
MD5 a1ea51265f2ffedd2eed11e9f869ece6
BLAKE2b-256 833f89900456aa71b36af6a8eb9250fca938e5187e9c28912e666230896644a9

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