Tamper-proof audit trails for AI agents. Every action your agent takes is cryptographically chained and verifiable.
pip install agentseal-sdkfrom agentseal import Seal
seal = Seal(api_key="as_sk_...")
# Record an action
seal.record(
agent="my-bot",
action="email:send",
params={"to": "user@example.com"},
reasoning="User requested password reset",
)
# Query the audit trail
entries = seal.query(agent="my-bot")
# Verify chain integrity
result = seal.verify(agent="my-bot")
print(result) # {"valid": True, "entries_verified": 1}Create a client. Supports with Seal(...) as seal: context manager.
Record an agent action to the hash chain. Returns {id, sequence, entry_hash, parent_hash}.
Query recorded entries with optional filters. Returns a list of entry dicts.
Verify hash chain integrity. Returns {"valid": True, "entries_verified": N} or {"valid": False, "broken_at_sequence": N, "reason": "..."}.
Decorator to auto-record function calls.
@seal.track(agent="my-bot")
def send_email(to, subject, body):
... # function runs, then the call is recorded automaticallySign up at agentseal.io
MIT