Skip to main content

AgentWall Python Client SDK

Python client for the Vexa AgentWall AI Security Gateway & Firewall.

Routes AI agent tool calls and LLM egress through the out-of-process AgentWall proxy, enforcing default-deny policies, DLP secret redaction, prompt injection scanning, spend caps, and Human-in-the-Loop approvals without running governance logic in-process.

Installation

pip install vexaagentwall

Quick Start

Make sure agentwall is running locally (agentwall dev or via Docker / Kubernetes):

from agentwall import AgentWallClient, AgentWallDenied, AgentWallApprovalPending

# Auto-discovers local proxy at http://127.0.0.1:8080 or AGENTWALL_PROXY_URL env var
client = AgentWallClient()

# Method 1: Decorator for transparent governance
@client.governed
def read_project_file(path: str) -> str:
    with open(path, "r") as f:
        return f.read()

# Safe call
try:
    content = read_project_file("/home/user/project/src/main.rs")
    print(content)
except AgentWallDenied as e:
    print(f"Blocked by policy: {e.rule_name} — {e.reason}")
except AgentWallApprovalPending as e:
    print(f"Action requires human approval: {e.approval_url}")

# Method 2: Direct tool call routing
result = client.call_tool("read_file", {"path": "/home/user/project/README.md"})
print(result.data)

Async Support

import asyncio
from agentwall import AsyncAgentWallClient

async def main():
    client = AsyncAgentWallClient()
    
    @client.governed
    async def async_fetch(url: str):
        # Your tool logic
        return "data"

    res = await async_fetch("https://api.internal.corp/data")
    print(res)

asyncio.run(main())

LangChain Integration

from langchain.tools import tool
from agentwall import AgentWallClient

client = AgentWallClient()

@tool
@client.governed
def query_customer_db(query: str) -> str:
    """Run read-only database query."""
    return db.execute(query)

License

MIT License.

Metadata

Release files for vexaagentwall 1.0.27

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

Source distribution (sdist)

Source distribution for vexaagentwall 1.0.27
File Size Uploaded
vexaagentwall-1.0.27.tar.gz 5.3 kB Details

Built distribution (wheel)

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

Total release size: 7.5 kB

Release files / vexaagentwall-1.0.27.tar.gz

Download URL vexaagentwall-1.0.27.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
83e6c9ee7dc28f34799ed7bec628fd78a34bf364ef657e85cdc93d55877b4fc4
BLAKE2b-256 checksum
How to use checksums
10002d5767a615c8a6e43c39f90c89660ff57582e7430d38360884898c8130f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Release files / vexaagentwall-1.0.27-py3-none-any.whl

Download URL vexaagentwall-1.0.27-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af939dee9c1e454f5bbc4cc8caa94365ecb60de19587a8b0fc38bb7070c20246
BLAKE2b-256 checksum
How to use checksums
72929eb9c885174a12f6f0e4401f1c5b9fb51a39d289c12e78243fd9ec3bb760
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.27 This release

2 release files

1.0.26

2 release files

1.0.0

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