Skip to main content Switch to mobile version wardenloop 0.1.0 Human oversight for AI agents — guard, approve, and audit agent actions.
pip install wardenloop Copy PIP instructions
Add human oversight to your AI agents in minutes.
pip install wardenloop Quickstart
from wardenloop import Warden warden = Warden(api_key="wl_...") # Your agent wants to delete files result = warden.guard( action="delete_files", payload={"path": "/user/documents/invoices/", "count": 47}, risk="critical", ) if result.approved: delete_files("/user/documents/invoices/") else: print(f"Action blocked: {result.reason}") When .guard() is called with risk="critical", WardenLoop:
Logs the action to your dashboard
Sends a Slack message to your operator: "Agent wants to delete 47 files — Approve / Deny"
Waits for the human response (up to 5 minutes by default)
Returns the result to your agent
Low-risk actions are auto-approved instantly with no waiting.
Send email (medium risk)
result = warden.guard( action="send_email", payload={"to": "ceo@acme.com", "subject": "Q4 Report"}, risk="medium", message="Agent wants to send the quarterly report to the CEO.", ) if result: # GuardResult is truthy when approved send_email(...) Execute payment (critical)
result = warden.guard( action="execute_payment", payload={"amount": 15000, "currency": "USD", "recipient": "vendor@example.com"}, risk="critical", ) if result.approved: process_payment(...) elif result.status == "timeout": print("No operator response — payment skipped.") else: print(f"Payment denied: {result.reason}") Fire-and-forget audit log
# Log what your agent did without waiting for approval action_id = warden.log( action="read_database", payload={"table": "users", "rows_read": 1200}, risk="low", ) Configuration
warden = Warden( api_key="wl_...", # or set WARDENLOOP_API_KEY env var timeout=600, # seconds to wait for approval (default: 300) poll_interval=5, # seconds between status checks (default: 3) raise_on_denied=True, # raise ActionDeniedError instead of returning False raise_on_timeout=True, # raise ActionTimeoutError instead of returning False fail_closed=True, # block actions if backend is unreachable (default) ) Environment variable
export WARDENLOOP_API_KEY=wl_your_key_here warden = Warden() # picks up key automatically Error handling
from wardenloop import ( ActionDeniedError, ActionTimeoutError, BackendUnavailableError, LimitExceededError, AuthenticationError, ) warden = Warden(api_key="wl_...", raise_on_denied=True, raise_on_timeout=True) try: result = warden.guard("delete_all_records", risk="critical") except ActionDeniedError as e: print(f"Denied: {e.reason}") except ActionTimeoutError as e: print(f"No response after {e.timeout}s") except BackendUnavailableError: print("WardenLoop is unreachable — action blocked") except LimitExceededError as e: print(f"Action budget exceeded: {e.used}/{e.limit}") except AuthenticationError: print("Invalid API key") Fail-closed by default
If the WardenLoop backend is unreachable, guard() raises BackendUnavailableError and the action is blocked — this is the safe default.
To allow actions when the backend is down (fail-open):
warden = Warden(api_key="wl_...", fail_closed=False) Dependencies
The SDK has zero required dependencies and works with Python's built-in urllib.
Install httpx for better performance and connection pooling:
pip install wardenloop[httpx] Get your API key
Sign up at app.wardenloopai.com
Released: Dec 1, 2026
agents ai guardrails llm oversight safety
Development Status 4 - Beta
Intended Audience Developers
License OSI Approved :: MIT License
Programming Language Python :: 3
Topic Scientific/Engineering :: Artificial Intelligence
Software Development :: Libraries :: Python Modules
Release files for wardenloop 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 17.0 kB
Release files / wardenloop-0.1.0.tar.gz
Release files / wardenloop-0.1.0-py3-none-any.whl
Security for wardenloop 0.1.0
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.
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.
Release history Release notifications | RSS feed
Dec 1, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from a8e35ed











