traia-iatp
Inter-Agent Transfer Protocol (IATP) - Enable AI Agents to utilize other AI Agents as tools
Decision gist · record as of 2026-08-14
Yes, with conditions. Install if you need to monetize AI agent services or APIs using blockchain payments and are comfortable with the Web3 stack. The low install friction and active maintenance are positive signals. However, verify the license terms before production use, confirm that Python 3.12+ is available in your environment, and understand that the 25 runtime dependencies mean you're adopting a fairly opinionated ecosystem—use it when the D402 protocol and agent-payment model align with your architecture, not as a general payment library.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.12 or later.
- Blockchain integration requires a valid Ethereum account key and wallet address; testnet setup (Sepolia) is documented but requires initial wallet funding.
- Low friction install with a pure-Python wheel.
License · maintenance · safety
(unclear) — License status is unclear—no SPDX identifier or raw license text is available in the package metadata. Before adopting this in production or proprietary code, verify the actual license terms in the repository.
last release 2026-05-05 (101 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 230,050 downloads/mo, #9,117 on PyPI
Alternatives
Verify before relying
# Install
pip install traia-iatp
# Add D402 to FastAPI
from fastapi import FastAPI
from traia_iatp.d402.servers.fastapi import D402FastAPIMiddleware
from traia_iatp.d402.price_builder import D402PriceBuilder
app = FastAPI()
price_builder = D402PriceBuilder(network="sepolia")
d402 = D402FastAPIMiddleware(server_address="0x...", facilitator_url="https://test-facilitator.d402.net")
price = price_builder.create_price(0.01)
d402.register_endpoint("/api/analyze", price_wei=price.amount, token_address=price.asset.address, network="sepolia")
d402.add_to_app(app)- Whether all 25 declared runtime dependencies are truly required for basic usage, or if they are optional for specific integrations
- Actual license terms and any restrictions on commercial use or redistribution
- Production readiness and stability guarantees for mainnet (Arbitrum) facilitator
- Performance characteristics and cost implications of on-chain settlement
What it is and what it does
IATP-D402 is a framework that layers HTTP 402 Payment Required protocol support onto web services, MCP servers, and AI agents, allowing them to charge for API calls using blockchain payments. It provides middleware for FastAPI, Starlette, and ASGI frameworks, plus client libraries for making authenticated payments automatically. The package integrates with CrewAI, MCP (Model Context Protocol), and A2A (agent-to-agent) protocols, enabling AI agents to monetize their services and pay for other agents' services within a single framework.
The core workflow is: define a price in USD using the price builder, register endpoints or tools with that price, then clients authenticate requests with EIP-712 signatures and blockchain payments. Settlement happens on-chain via smart contracts. The package includes templates for building payment-enabled MCP servers and utility agents, and it abstracts away most of the blockchain complexity—you specify prices in USD and let the framework handle conversion and payment routing.
Use it for
- Monetize a REST API by adding D402 middleware to FastAPI or Starlette endpoints with minimal code changes
- Build a payment-enabled MCP server that Claude or other AI clients can call while automatically handling micropayments
- Create a CrewAI agent that uses paid tools from other agents, with payment orchestration handled transparently
- Set up an A2A utility agent that other agents can invoke as a service, with per-call billing
- Integrate blockchain-based payments into existing web services without rewriting core business logic
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
Install if you need to monetize AI agent services or APIs using blockchain payments and are comfortable with the Web3 stack. The low install friction and active maintenance are positive signals. However, verify the license terms before production use, confirm that Python 3.12+ is available in your environment, and understand that the 25 runtime dependencies mean you're adopting a fairly opinionated ecosystem—use it when the D402 protocol and agent-payment model align with your architecture, not as a general payment library.
Install
traia-iatp on PyPI
Before you install
Low friction install with a pure-Python wheel. Active maintenance as of the latest release. However, the package declares 25 runtime dependencies including heavy frameworks (FastAPI, CrewAI, Docker, Web3) and async utilities—most projects will only use a subset, so actual runtime footprint depends on which integrations you enable.
Requires Python 3.12 or later. Blockchain integration requires a valid Ethereum account key and wallet address; testnet setup (Sepolia) is documented but requires initial wallet funding.
License in practice
License status is unclear—no SPDX identifier or raw license text is available in the package metadata. Before adopting this in production or proprietary code, verify the actual license terms in the repository.
Quickstart
# Install
pip install traia-iatp
# Add D402 to FastAPI
from fastapi import FastAPI
from traia_iatp.d402.servers.fastapi import D402FastAPIMiddleware
from traia_iatp.d402.price_builder import D402PriceBuilder
app = FastAPI()
price_builder = D402PriceBuilder(network="sepolia")
d402 = D402FastAPIMiddleware(server_address="0x...", facilitator_url="https://test-facilitator.d402.net")
price = price_builder.create_price(0.01)
d402.register_endpoint("/api/analyze", price_wei=price.amount, token_address=price.asset.address, network="sepolia")
d402.add_to_app(app)
Verify before relying
- Whether all 25 declared runtime dependencies are truly required for basic usage, or if they are optional for specific integrations
- Actual license terms and any restrictions on commercial use or redistribution
- Production readiness and stability guarantees for mainnet (Arbitrum) facilitator
- Performance characteristics and cost implications of on-chain settlement
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.12 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 25 packagesa2a-sdkaiohttpanyiocrewaicrewai-toolsdockerfastapihttpxjinja2mcpnest-asyncioopenaipydanticpymongopython-dotenvpytzrequestsrichstarlettetomlityperuvicorndnspythoneth-accountweb3 |
| Maintenance | Actively maintained 101 days since the last release |
| First released | |
| Downloads | 230,050 / month, #9,117 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Operating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: traia_iatp-0.1.112-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “agent payment middleware”
- traia-iatpAdds HTTP 402 Payment Required protocol support to AI agents and…
- django-permissions-policySets the Permissions-Policy HTTP header on Django responses to…
- x402Implements the x402 payment protocol with transport-agnostic client,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.
Install it if you're developing CLI tools, dashboards, or interactive terminal applications.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.
Install it if you need to build or connect to servers.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
See also x402 · mcpadapt · fast-agent-mcp · bedrock-agentcore · ocpp · PraisonAI · a2a-sdk · ag_ui_adk · praisonaiagents · nvidia-nat