Skip to main content

AgentWarden SDK

Security and permission management for AI Agents.

Installation

pip install agentwarden

Quick Start

from agentwarden import AgentWarden

# Initialize with your API key
guard = AgentWarden(api_key="your-api-key")

# Check if agent can execute an action
result = guard.check(
    agent_id="agent-001",
    action="stripe.refund",
    context={"amount": 50}
)

if result.allowed:
    # Execute your action
    stripe.refund.create(amount=50)
    
    # Log the action
    guard.log("agent-001", "stripe.refund", "success")
else:
    print(f"Action blocked: {result.reason}")

Helper Method

def refund_payment():
    return stripe.refund.create(amount=50)

# Check, execute, and log automatically
result = guard.execute(
    "agent-001",
    "stripe.refund",
    refund_payment,
    context={"amount": 50}
)

Documentation

Visit https://agentwarden.io for full documentation.

License

MIT License

Release files for agentwarden 0.1.2

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

Source distribution (sdist)

Source distribution for agentwarden 0.1.2
File Size Uploaded
agentwarden-0.1.2.tar.gz 3.9 kB Details

Built distribution (wheel)

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

Total release size: 8.8 kB

Release files / agentwarden-0.1.2.tar.gz

Download URL agentwarden-0.1.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ef86adef21d72501710dc4ef89e042578357b45e53d9ec944e8f9c5adae62968
BLAKE2b-256 checksum
How to use checksums
5421d4b57d8964fb1e26023219ae245f29ac158a13df6aeb5a7773256d528fb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / agentwarden-0.1.2-py3-none-any.whl

Download URL agentwarden-0.1.2-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
337df80ae9031b053140dc9352f68f0a6ee0eb027435e90472049ad71ee407ee
BLAKE2b-256 checksum
How to use checksums
0f2ac5e830265f8d719910044366d35874c388f9b8a28ac007a3ccf93e7de11c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

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