Skip to main content

Security and permissions 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


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.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentwarden-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file agentwarden-0.1.1.tar.gz.

File metadata

  • Download URL: agentwarden-0.1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for agentwarden-0.1.1.tar.gz
Algorithm Hash digest
SHA256 04b683684f6a7b05c3317242b35be6263f0f7ddcd38f70d980ec29d1fb870567
MD5 f37d4c091907870a3898398f4f967fa5
BLAKE2b-256 0478e9ed79b0c28725a0e36e5d1522cf836c15b2b170e331ddda3685976ede04

See more details on using hashes here.

File details

Details for the file agentwarden-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: agentwarden-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for agentwarden-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b8786f27ddbbd7d32f133fe2c516aeacf3c72f09d644e01bf97aa4fa0dde64a
MD5 49839e971564f6c4a83365089d9a93e9
BLAKE2b-256 80d0a3a11aede8750790b4a372bd65e3c13f21e61b57b1c3eba3d8f65c881cb5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page