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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agentwarden-0.1.2.tar.gz | 3.9 kB | Without provenance | Details for agentwarden-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentwarden-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for agentwarden-0.1.2-py3-none-any.whl |
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
|
Security for agentwarden 0.1.2
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.