Skip to main content

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-python-sdk

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

  1. SDK: Generates UUID nonces and SHA256 consent hashes.
  2. Backend: Proxies requests to the internal vault and maintains audit records.
  3. MCP Server (Vault): A hardened, isolated environment that signs transactions using Algorand.
  4. Algorand Blockchain: Provides the irrefutable proof-of-consent and payment settlement.

Features

  • Async First: Built on httpx for 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentguard_python_sdk-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

agentguard_python_sdk-0.1.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentguard_python_sdk-0.1.1.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

Hashes for agentguard_python_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7cdc5b58b298a9ac47e5c59d78f540311fd64e4853cd9e65920742bb03575c37
MD5 81ce1bafe2505ff9c17e311b92780566
BLAKE2b-256 bbb2b11fa6b68be7b18adef7d7f134a3764e17c1cca967330c96a3fce557b116

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentguard_python_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a991a3e95e122e1a305186d3e4b98c13393765f777a678f02c11e11b1cbb2c10
MD5 e8fb03e12fcbb1fc24132d50e247314b
BLAKE2b-256 4741bb4c872d1bbf30e99884db8b495231573ee4e85dec3b2e0be844e7fd9799

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