Security and access control for AI Agents
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
agentwarden-0.1.2.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentwarden-0.1.2.tar.gz.
File metadata
- Download URL: agentwarden-0.1.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef86adef21d72501710dc4ef89e042578357b45e53d9ec944e8f9c5adae62968
|
|
| MD5 |
634b05edd209f7bb840c7c0f69435e98
|
|
| BLAKE2b-256 |
5421d4b57d8964fb1e26023219ae245f29ac158a13df6aeb5a7773256d528fb3
|
File details
Details for the file agentwarden-0.1.2-py3-none-any.whl.
File metadata
- Download URL: agentwarden-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
337df80ae9031b053140dc9352f68f0a6ee0eb027435e90472049ad71ee407ee
|
|
| MD5 |
0a828465a571d43960812ad55c894dd8
|
|
| BLAKE2b-256 |
0f2ac5e830265f8d719910044366d35874c388f9b8a28ac007a3ccf93e7de11c
|