Menu

Explorer & Settings

Tempo Explorer Submit Project
SDKs · Python

Python x402 Libraries & Tools

Add a pay-per-request paywall to FastAPI, Flask & Python clients.

230
Python libraries
1.3k
most-starred

Python is the lingua franca of AI, so paying for APIs from Python — and charging agents that call your Python service — is a common need. These libraries wrap the HTTP 402 handshake for servers (FastAPI, Flask) and clients (httpx, requests).

Below are the Python-focused x402 and agent-payment libraries in the directory.

Read the x402 Python guide →

Python libraries

Real projects from the directory · stars live from GitHub · sorted by popularity. Showing the top 60 of 230.

The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.

⭐ 1.3kPython

Self-healing infrastructure for AI agent payments. 90.3% auto-recovery.

⭐ 822TypeScript

The first agentic payment network: policy-controlled, gasless, and real money-ready. OmniClaw CLI + Financial Policy Engine let autonomous agents pay and earn safely at machine speed.

⭐ 573Python

The A2A x402 Extension brings cryptocurrency payments to the Agent-to-Agent (A2A) protocol, enabling agents to monetize their services through on-chain payments. This extension revives the spirit of HTTP 402 "Payment Required" for the decentralized agent ecosystem.

⭐ 536Python

Aser is a lightweight, self-assembling AI Agent frame.

⭐ 469Python

DePIN for Vintage Hardware — Proof-of-Antiquity blockchain where old machines outmine new ones. AI-powered hardware fingerprinting, 15+ CPU architectures, Solana bridge (wRTC). $0 VC.

⭐ 467Python

AI-native video platform powered by Proof of Physical AI — agents and humans create, curate, and engage on hardware verified by physics. Part of the RustChain DePIN ecosystem.

⭐ 293Python

Drop-in OpenAI Python client with transparent x402 payment support.

⭐ 260Python

A small, powerful, open-source CLI coding agent that works with open models.

⭐ 229Python

Beacon - agent-to-agent pings with optional RTC value attached (BoTTube/Moltbook/RustChain + UDP bus)

⭐ 211Python

AI agents platform that gives you a workspace with an integrated team of personal assistants that can work behind the scenes to handle daily monotonous tasks.

⭐ 206Python

MCP server for RustChain blockchain and BoTTube video platform — AI agent tools for earning RTC tokens. Built on createkr's RustChain SDK.

⭐ 98Python

Specifications for the Machine Payments Protocol - powered by the "Payment" HTTP authentication scheme

⭐ 85Python

Drop-in x402 payment middleware for Flask APIs. Machine-to-machine payments on Base chain.

⭐ 68Python

Building blocks for Agentic payments (x402, MPP, AP2) for TypeScript, Rust, Go, Python, Ruby, PHP, Lua, Kotlin and Swift.

⭐ 67Rust

Building blocks for Agentic payments (x402, MPP, AP2) for TypeScript, Rust, Go, Python, Ruby, PHP, Lua, Kotlin and Swift.

⭐ 67Rust

An x402 / agent-payment project in the Python category.

⭐ 51Python

Autonomous AI Agent Swarm framework with x402 self-executing wallets. Empowers LLM-driven agents to trade, bridge, and manage crypto treasuries without human intervention. The ultimate Agentic DeFi toolkit for 2026.

⭐ 43Python

Autonomous AI Agent Swarm framework with x402 self-executing wallets. Empowers LLM-driven agents to trade, bridge, and manage crypto treasuries without human intervention. The ultimate Agentic DeFi toolkit for 2026.

⭐ 40Python

ChaosChain Genesis Studio: The first end-to-end commercial prototype for ERC-8004. Demonstrating on-chain agent identity, verifiable work, direct USDC payments, and the foundation for IP monetization.

⭐ 40Python

Python SDK for the Machine Payments Protocol

⭐ 38Python

Autonomous AI Agent Swarm framework with x402 self-executing wallets. Empowers LLM-driven agents to trade, bridge, and manage crypto treasuries without human intervention. The ultimate Agentic DeFi toolkit for 2026.

⭐ 36Python

Transmits signed USDC payments over sound using a custom OOK audio modem with Goertzel detection. Compresses x402 handshakes to 138 bytes, settling on Base through 36 seconds of 2400 Hz beeping.

⭐ 35Python

Verifiable and free cloud compute for AI agents. webMCP + MCP native. Check out our sandboxed Beta + research in the README

⭐ 34Python

Skills & plugins for agentic commerce : UCP, ACP, AP2, A2A, WebMCP, Magento 2, BigCommerce, WooCommerce

⭐ 34Python

Autonomous AI Agent Swarm framework with x402 self-executing wallets. Empowers LLM-driven agents to trade, bridge, and manage crypto treasuries without human intervention. The ultimate Agentic DeFi toolkit for 2026.

⭐ 33Python

Autonomous AI Agent Swarm framework with x402 self-executing wallets. Empowers LLM-driven agents to trade, bridge, and manage crypto treasuries without human intervention. The ultimate Agentic DeFi toolkit for 2026.

⭐ 31Python

The neutral micropayment router for autonomous agents. A single HTTP client that intercepts '402 Payment Required', routes across x402, L402, and MPP, persists credentials as recoverable assets, enforces per-envelope budgets, and emits a structured trace.

⭐ 31Python

Autonomous AI Agent Swarm framework with x402 self-executing wallets. Empowers LLM-driven agents to trade, bridge, and manage crypto treasuries without human intervention. The ultimate Agentic DeFi toolkit for 2026.

⭐ 30Python

Autonomous AI Agent Swarm framework with x402 self-executing wallets. Empowers LLM-driven agents to trade, bridge, and manage crypto treasuries without human intervention. The ultimate Agentic DeFi toolkit for 2026.

⭐ 30Python

Agent skills for building, shipping, and growing software products

⭐ 29Python

A collection of Summoner clients and agents featuring example implementations and reusable templates

⭐ 24Python

AWS payment demo of x402 using Bedrock AgentCore, Strands SDK, and CloudFront.

⭐ 24Python

Encrypted vault, ZK settlement archiving, x402 payment receipts, Agent Passport binding, and Solana anchoring for OpenClaw and agent runtimes. Drop-in stack — compression, privacy, payments, identity.

⭐ 23Python

Encrypted vault, ZK settlement archiving, x402 payment receipts, Agent Passport binding, and Solana anchoring for OpenClaw and agent runtimes. Drop-in stack — compression, privacy, payments, identity.

⭐ 23Python

Tooling for building applications with x402 payment capabilities. Supports buyer and seller roles.

⭐ 23TypeScript

Drop-in adapters connecting 50+ agent frameworks (LangChain, CrewAI, AutoGen, OpenAI Agents, MCP, A2A, x402) to the Agoragentic marketplace: route a task with execute(), get a receipt, settle in USDC on Base. Monorepo + npm packages for MCP, Micro ECF, and local readiness tooling.

⭐ 23JavaScript

Demo agents showcasing CapiscIO Agent Guard and MCP Guard — trust badges, identity verification, and tool-level authorization for A2A and MCP protocols

⭐ 23Python

A wallet for agents. Make payments via x402, use stablecoins, swap assets, earn yield with defi and buy tokenized stocks across the most popular chains.

⭐ 22Python

540 security tests for AI agent systems — MCP, A2A, x402/L402, decision governance, benchmark integrity, skill supply chain. AIUC-1 pre-cert, NIST AI 800-2 aligned, MCP tool-poisoning reproduction. v4.9.1

⭐ 20Python

ClawRouter for Hermes — 55+ LLMs, x402 USDC micropayments on Base & Solana. Python plugin wrapping the ClawRouter proxy for NousResearch/hermes-agent.

⭐ 17Python

Demo with multiple AI agents using A2A (agent-to-agent) with the Strands Agents SDK.

⭐ 17Python

Train nanoGPT on Modal GPUs, paid with stablecoins via MPP. No API keys. No signup. Just HTTP 402.

⭐ 14Python

Security middleware for x402 agentic payments — PII redaction, spending policy, and replay detection before blockchain commit

⭐ 13Python

kbs_agent_a2a 智能体协议适配中间件

⭐ 13Python

A ROS 1 (Noetic) package that turns robot capabilities into paid API endpoints - using Solana’s x402 protocol for pay-to-access control — and includes tools for making and verifying payments to external services.

⭐ 11Python

Safe-by-design USDC and x402 payment plugin for Hermes Agent

⭐ 11Python

nexus bureau is an agentic AI platform where AI agents have their own Stellar wallet and can autonomously pay for data and services via x402 micro-transactions, no credit cards, no API keys, just on-chain payments.

⭐ 10Python

Autonomous multi-agent system built using LangChain and LangGraph that orchestrates collaborative agents—Supervisor, Researcher, Writer, and Critiquer—to automatically gather information, generate detailed research reports, refine output, and visualise the workflow as a graph. Includes a Streamlit web UI and optional Graphviz visualisation.

⭐ 10Python

Agent-first Remote MCP for X (Twitter) batch crawling with x402 USDC top-up (Base/Solana). Includes OpenAPI + copy-paste ADK/curl E2E examples.

⭐ 9Python

Zero latency! Zero code change! Empower your AI agent with payment ability via x402 protocol! (Openclaw, Claude code, Cursor, Langchain, CrewAI, AutoGen...)

⭐ 9Python

An x402 / agent-payment project in the Python category.

⭐ 9Python

ARCHIVED (read-only). Canonical source moved to github.com/mapleleaflatte03/meridian

⭐ 8Python

OnIt is an AI agent framework for automation.

⭐ 8Python

🤖 Trustless AI agent economy: Autonomous agents buy/sell data using ERC-8004 identity, x402 gasless micropayments, and CrewAI orchestration on Avalanche Fuji testnet.

⭐ 8Python

23 open-source Agent Skills for Claude Code and Codex: multi-agent orchestration, A-F code review, AI evals, CI ship-gates, design, copy, SEO, and creator workflows.

⭐ 7Python

The open authority layer + SDKs for AI-agent payments. Thin Python/TS clients, an MCP server, framework adapters (LangChain/CrewAI/Hermes/OpenClaw/…), and @sardis/reference — a pure policy simulator + AP2/TAP/x402 verifiers showing exactly how Sardis decides if an agent may spend. The hosted engine that moves money is private.

⭐ 7TypeScript

63 deterministic quant computation tools for autonomous financial agents. Options, derivatives, risk, portfolio, statistics, crypto/DeFi, macro/FX, TVM. 1,000 free calls/day — no signup.

⭐ 7TypeScript

MCP server to purchase VPS and blockchain nodes on EasyNode with USDC via x402 payments

⭐ 7Python

Multi-agent swarm with semantic memory, parallel consensus reasoning, autonomous orchestration, and hyperbolic kernel topology. LoreVault + vector persistence. CLI, Web UI, Telegram.

⭐ 7Python

More sdks categories

TypeScriptRustGo All categories →

Frequently asked questions

What are the best Python libraries for AI payments?

We currently track 230 Python libraries in the directory, drawn from open-source repositories building on x402 and agent payments. The list above is sorted by GitHub stars and updates as new projects are submitted and crawled.

What is x402, and how does it relate to Python?

x402 is an open standard for paying for an HTTP resource: a server replies with HTTP 402 and payment terms, the client pays (usually USDC), and the request is fulfilled. The Python libraries above implement or build on this flow.

How do I get a project listed here?

Submit it from the Submit page. We crawl the repository, classify it, and it appears in the relevant category pages — including this one if it matches.