The Universal AI Agent Banking Layer: x402, USDC, Safety Kernel, MCP, Multi-Chain
Project description
🤖💸 iAgentPay
La infraestructura bancaria estándar para Agentes de IA Autónomos.
iAgentPay permite a cualquier sistema de Inteligencia Artificial (CrewAI, LangChain, Claude, Cursor) poseer su propia billetera, manejar presupuestos, y realizar pagos tanto en Criptomonedas (USDC en Solana/Base) como en Dinero Fiat (Stripe/ACH), todo protegido por un Kernel de Seguridad atómico.
🌟 ¿Por qué iAgentPay? (vs La Competencia)
A diferencia de otras soluciones diseñadas para humanos y adaptadas a la fuerza para IA, iAgentPay nació nativamente para agentes autónomos.
| Característica | iAgentPay v5.0 | Coinbase AgentKit | Stripe Agent Toolkit | OmniAgentPay |
|---|---|---|---|---|
| Multi-Cadena Real | ✅ (Base, Solana, XRPL) | ❌ (Solo EVM) | ❌ (No Crypto) | ✅ |
| Fiat Bridge (Stripe/ACH) | ✅ (Smart Routing) | ❌ | ✅ | ❌ |
| Safety Kernel (Límites) | ✅ (Atómico / Hilos) | ⚠️ (Básico) | ❌ | ✅ |
| Sub-Agentes (Flotas) | ✅ (Límites aislados) | ❌ | ❌ | ❌ |
| Know Your Agent (KYA) | ✅ (DID + Reputación) | ❌ | ❌ | ❌ |
| HTTP 402 Autopay | ✅ (x402 Protocol) | ❌ | ❌ | ❌ |
⚡ Instalación Rápida
Instala el SDK completo o módulos específicos según tus necesidades:
pip install "iagent-pay" # Core SDK
pip install "iagent-pay[fastapi]" # Para montar servidores x402
pip install "iagent-pay[crewai]" # Para agentes de CrewAI
pip install "iagent-pay[fiat]" # Para usar Stripe/ACH
pip install "iagent-pay[all]" # Instalar todo
Inicia tu proyecto en segundos con nuestro CLI:
iagent-pay init mi-proyecto-ia
🚀 Quickstart (En 1 minuto)
1. El Safety Kernel (Límites de Gasto)
Nunca dejes a tu IA con una billetera sin límites. El Kernel bloquea gastos anómalos.
from iagent_pay.safety_kernel import SafetyKernel, SafetyConfig
kernel = SafetyKernel(SafetyConfig(
daily_limit_usd=50.0, # Máximo $50 al día
max_tx_usd=10.0, # Máximo $10 por transacción
enable_whitelist=True,
allowed_recipients=["0xTrustedVendor..."]
))
# El agente intenta gastar $5.0 (Aprobado ✅)
kernel.check(amount=5.0, recipient="0xTrustedVendor...")
# El agente es hackeado e intenta gastar $100 (Bloqueado ❌)
# Lanza: TransactionCapExceeded
kernel.check(amount=100.0, recipient="0xHacker...")
2. Smart Routing (Crypto vs Fiat)
Delega al SDK la decisión de qué riel de pago usar dependiendo del destinatario.
from iagent_pay.fiat_bridge import FiatBridge
bridge = FiatBridge(stripe_key="sk_live_...")
# Automáticamente usa USDC en Base/Solana (Es una wallet cripto)
bridge.smart_send(10.0, recipient="0xAliceWallet...")
# Automáticamente crea un Stripe Invoice (Es un email)
bridge.smart_send(10.0, recipient="freelancer@gmail.com", description="Pago de diseño")
3. Integración con CrewAI
Dale a tu agente el poder de pagar autónomamente.
from crewai import Agent
from iagent_pay.integrations.crewai import iAgentPayTool
agent = Agent(
role='Comprador de Datos',
goal='Comprar los mejores datasets de internet',
tools=[iAgentPayTool(daily_limit_usd=15.0)],
verbose=True
)
🛡️ Arquitectura Empresarial (v5.0)
iAgentPay está dividido en submódulos modulares listos para producción:
usdc_driver: Motor de transacciones nativas en Solana, Base y XRPL.x402_client / server: Implementación del estándar HTTP 402 para micro-pagos M2M (Machine to Machine).safety_kernel: Bloqueos atómicos conthreading.Lockpara evitar race-conditions en flotas de agentes.webhooks: Sistema de notificaciones HMAC-SHA256 con retries de backoff exponencial.kya: (Know Your Agent) Reputación descentralizada mediante DIDs y puntuación ART.observability: Dashboards en consola, logs en JSON y exportación a Prometheus/OpenTelemetry.
🌍 Open Source & Comunidad
iAgentPay es 100% Open Source (MIT). Construido para la próxima generación de la economía autónoma.
¿Quieres contribuir?
- Haz un Fork del proyecto.
- Crea tu rama (
git checkout -b feature/AmazingFeature). - Haz Commit (
git commit -m 'Add some AmazingFeature'). - Haz Push (
git push origin feature/AmazingFeature). - Abre un Pull Request.
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 iagent_pay-6.0.0.tar.gz.
File metadata
- Download URL: iagent_pay-6.0.0.tar.gz
- Upload date:
- Size: 69.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbe7c91bd81fd2ff30a1bf907f13634147f2824c0b92e6944b0b95ca109f5fb1
|
|
| MD5 |
91ab7955096facf4865e576a521efefd
|
|
| BLAKE2b-256 |
c726bfb0b091848dfc8d74d48c6c327f7b154a7ee6624b18122570fb6175612d
|
File details
Details for the file iagent_pay-6.0.0-py3-none-any.whl.
File metadata
- Download URL: iagent_pay-6.0.0-py3-none-any.whl
- Upload date:
- Size: 69.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c8e2495598c90ba9d05396bd40c4515904471186644ed7c0a7bf5b9b8b508b4
|
|
| MD5 |
cd13601b71fb7f6f23efafd8cee75d2c
|
|
| BLAKE2b-256 |
153c1891ea2471801be4fbb95f18e4090fa4c5eb3b64718362f9a7739cbf9566
|