Skip to main content

auditail (Python SDK)

The security layer for autonomous AI agents. Guardrails that block risky actions, and a tamper-evident audit trail of everything your agents do.

📖 Full Documentation · 🚀 Join the Private Beta


Install

pip install auditail

Quickstart

from auditail import Auditail, rules

aegis = Auditail(api_key="your_key")

aegis.add_rules([
    rules.no_external_email(internal_domains=["acme.com"]),
    rules.no_data_deletion(),
])

result = aegis.guard(
    action="send_email",
    payload={"to": "client@example.com", "body": "Report attached."},
    agent_id="financial-bot-01",
)

if result.approved:
    send_email(...)
else:
    print(f"Blocked: {result.reason}")

LangChain Integration

from langchain.agents import tool
from auditail import Auditail, rules

aegis = Auditail(api_key="your_key")
aegis.add_rule(rules.no_external_email(internal_domains=["acme.com"]))

@tool
def send_email(to: str, body: str) -> str:
    """Send an email to a recipient."""
    result = aegis.guard(
        action="send_email",
        payload={"to": to, "body": body},
        agent_id="langchain-agent",
    )
    if not result.approved:
        return f"Action blocked by Auditail: {result.reason}"
    # ... actual send logic
    return "Email sent."

Private beta

The SDK, API and dashboard are live. Guardrail rules run locally in your process; every decision is delivered in the background to a hash-chained audit log you can browse and verify at app.auditail.io.

  • Batched, retried, idempotent delivery. guard() never waits on the network, and a delivery failure never reaches your agent.
  • Secrets are redacted before an event leaves your process (password, token, apiKey, ... plus your own redact_keys).
  • Call aegis.flush() before a serverless function returns or the process exits.

Request an API key: keys are issued to design partners personally.

Roadmap (not available yet): Slack/PagerDuty alerts, human-in-the-loop approval (require_approval currently behaves like block), compliance export, private-cloud deployment.

License

MIT

Metadata

Release files for auditail 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for auditail 0.2.0
File Size Uploaded Provenance Actions
auditail-0.2.0.tar.gz 8.7 kB Without provenance Details for auditail-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for auditail 0.2.0
File Interpreter ABI Platform Actions
auditail-0.2.0-py3-none-any.whl Python 3 none any Details for auditail-0.2.0-py3-none-any.whl

Total release size: 18.2 kB

Release files / auditail-0.2.0.tar.gz

Download URL auditail-0.2.0.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8f8cbd16da96959fe7b75a968c8e6d7b4f790cb3f3beb716749f08816547992e
BLAKE2b-256 checksum
How to use checksums
9138aa6cf388d51cc35a1fa1436718149b51b7e8b620cc9e4b97a3700ad3c6a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / auditail-0.2.0-py3-none-any.whl

Download URL auditail-0.2.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa9074af2bfba415ffd3f71cb8bb5ac0c281af69d3590875547b1f7e501273c1
BLAKE2b-256 checksum
How to use checksums
0180f06f2b14c3eaff4600400ec15fc3a6ff7f997507e0278be2b011a6b8f43e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Security for auditail 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page