A production-grade middleware for AI agents to perform on-chain payments and verifiable consent.
Project description
AgentGuard SDK
AgentGuard is a production-grade middleware that enables AI agents to perform on-chain payments and generate verifiable consent proofs in compliance with DPDP (Digital Personal Data Protection) standards.
By isolating private keys in a hardened MCP Server (Vault) and using the AgentGuard Backend (Dispatcher) as a secure proxy, the SDK allows developers to add monetization and compliance to their agents with zero blockchain complexity.
Installation
pip install agentguard
Quick Start (3-Line Usage)
import asyncio
from agentguard import AgentGuardClient
async def main():
# 1. Initialize the client
async with AgentGuardClient(wallet_address="YOUR_WALLET_ADDRESS") as client:
# 2. Perform a secure payment (includes automatic DPDP consent hashing)
receipt = await client.pay_and_fetch(
resource_url="https://api.stock.com/reliance",
amount_algo=0.05,
purpose="Financial Analysis"
)
print(f"Payment Successful! TX ID: {receipt.tx_id}")
# 3. Verify compliance audit trail
proof = await client.verify(receipt.tx_id)
print(f"On-Chain Verified: {proof.verified}")
if __name__ == "__main__":
asyncio.run(main())
Architecture
- SDK: Generates UUID nonces and SHA256 consent hashes.
- Backend: Proxies requests to the internal vault and maintains audit records.
- MCP Server (Vault): A hardened, isolated environment that signs transactions using Algorand.
- Algorand Blockchain: Provides the irrefutable proof-of-consent and payment settlement.
Features
- Async First: Built on
httpxfor high-performance agentic loops. - Zero-Trust: Private keys never leave the vault.
- DPDP Compliant: Automatic cryptographic logging of purpose-bound consent.
- Simple Audit: Direct links to blockchain explorers for every transaction.
© 2026 AgentGuard Team. Built for the Algorand Ecosystem.
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
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 agentguard_python_sdk-0.1.0.tar.gz.
File metadata
- Download URL: agentguard_python_sdk-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa9d726430c3f5c511c6716acd9c7763775703456dc74b05fd312b72aa2e6888
|
|
| MD5 |
8c46d21462c0a56fdd6ccda22bd2f414
|
|
| BLAKE2b-256 |
a9339a9c3a60d0c44cef874a9983838984f96378d6929bf6b3e52bda9963b752
|
File details
Details for the file agentguard_python_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agentguard_python_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41307985321f7c709f54f1e6a37fcd0d95dfdc0a81d0fd06cac6850803ed8eef
|
|
| MD5 |
3ff2bc935707b30d4ebc643276024918
|
|
| BLAKE2b-256 |
c0759aa617d4fae90163bb81a0ae85be8122cdcaaecab45a3a52ecf3ff510e72
|