Official Python SDK for the AgentPayy protocol. Enables AI agents to handle autonomous payments via x402.
- x402 Auto-Pay: Automatically detect 402 Payment Required headers and handle transactions.
- Base L2 Native: Optimized for USDC on Base for near-zero fees.
- Framework Ready: First-class support for LangChain and CrewAI.
fromagentpayyimportAgentPayyKit, X402Clientkit=AgentPayyKit(private_key="0x...")
client=X402Client(kit)
# Auto-pays if 402 is encounteredresponse=client.get("https://premium-api.com/data")