๐ณ๐ค The payment layer for autonomous AI agents. Fund via Telegram Stars or crypto, set spending rules, let your agent operate independently.
agentpay is an early-stage Python project in the AI payments / x402 ecosystem, focused on ai-agents, ai-payments, autonomous-agents, crypto. It currently has 0 GitHub stars and 0 forks, and sits alongside related tools like sardis, moltpe-agent-payments, crewai-x402, mcp-dev-latam, agoragentic-integrations, tdm-integration-kit.
The payment layer for autonomous AI agents. Fund via Telegram Stars or crypto, set spending rules, let your agent operate independently.
AI agents can browse, code, deploy โ but can't spend money without a human in the loop. AgentPay fixes that.
| Problem | AgentPay Solution |
|---|---|
| Agent needs to pay for an API | Autonomous spending via REST API |
| No on-chain wallet for agents | Multi-chain USDC wallets (Base, Polygon, BNB, Solana) |
| Agents can't hold or transfer funds | Agent-to-agent transfers, refunds, webhooks |
| Payment UIs don't fit agent workflows | Pure API + Python SDK + MCP tools |
| Expensive/complex infrastructure | Self-hosted, open-source, 0% fees (beta) |
Open @FundmyAIbot in Telegram โ /newagent โ Copy your API key (shown once)
Send Telegram Stars through the bot, or deposit USDC to the agent's Base wallet.
from agentpay import AgentPayClient
client = AgentPayClient("ap_xxxx...")
# Check balance
balance = client.get_balance()
print(f"Balance: ${balance.balance_usd}")
# Spend
tx = client.spend(amount=5.00, description="GPT-4 batch")
print(f"Spent ${tx.amount}, remaining ${tx.remaining_balance}")
# Transfer between agents
client.transfer(to_agent_id="agent_456", amount=10.00)
# Webhook for real-time events
webhook = client.register_webhook(url="https://your-server.com/hook", events=["transaction.completed"])
Or use the REST API directly:
curl -X POST https://leofundmybot.dev/v1/spend \
-H "X-API-Key: ap_xxxx..." \
-H "Content-Type: application/json" \
-d '{"amount": 5.00, "description": "API usage"}'
Payments
Agent Identity (KYA โ Know Your Agent)
Security
Developer Experience
/docs and /redocControl
Telegram Bot (@FundmyAIbot)
โ creates agents, funds wallets
AgentPay API (FastAPI, 29 endpoints)
โ โ
Telegram Stars Multi-chain USDC
(internal ledger) (Base/Polygon/BNB/Solana)
โ โ
โ Webhooks push events to your agent in real-time
Stack: Python (aiogram + FastAPI), PostgreSQL, Alembic, Cloudflare Tunnel
| Category | Endpoints |
|---|---|
| Agent | Create, get, list, update, delete, rotate API key |
| Balance | Get balance, deposit, spend, transfer, refund |
| Identity | Create/update profile, get trust score, public directory |
| Dashboard | Aggregate stats, agent analytics, spending breakdown |
| Webhooks | Create, list, delete, test |
| Wallets | Get addresses (Base, Polygon, BNB, Solana) |
| Chains | List supported chains, chain status |
| Export | CSV transaction history |
| x402 | Probe, pay (HTTP 402 payment flow) |
| Health | Status, version |
Full interactive docs: leofundmybot.dev/docs
AgentPay ships with MCP (Model Context Protocol) tool definitions so any AI agent framework can use it natively:
{
"tools": [
"agentpay_get_balance",
"agentpay_spend",
"agentpay_transfer",
"agentpay_list_transactions",
"agentpay_create_webhook",
"agentpay_get_wallet_address",
"agentpay_check_approval",
"agentpay_x402_pay"
]
}
Works with LangChain, CrewAI, OpenClaw, and any MCP-compatible agent.
| Setup | Free |
| Transactions | 0% fees (beta) |
| Monthly | $0 |
| Self-hosted | Free forever |
pip install agentpay)sdk/agentpay/mcp/git clone https://github.com/lfp22092002-ops/agentpay.git
cd agentpay
cp .env.example .env # configure your tokens
docker compose up -d
See DEPLOYMENT.md for full setup guide.
PRs welcome. Open an issue first for big changes.
MIT โ see LICENSE
Built for the agent economy. Because autonomous agents deserve their own wallets.
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.
Payment infrastructure for AI agents. Reference implementation: x402 + MPP + fiat.
CrewAI integration for x402 payments - autonomous agent crews that pay for APIs with USDC
Open-source MCP servers for Latin American commerce โ Pix, NF-e, banking, fiscal, logistics, and messaging across Brazil, Mexico, Argentina, Colombia, Chile, and Peru. MIT, on npm.
Public adapters and discovery catalog for Triptych OS (Agent OS): agent frameworks, MCP/A2A/x402 protocols, workflows, wallets, SDKs, and examples for execute-first routing, governed handoffs, and receipt-aware agent commerce.
Developer integration tools for adding TDM payments to AI agents, apps, and workflows. CLI, MCP server, and copy-paste examples
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.
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.
The AI agent with a wallet โ spends USDC autonomously to get real work done. Apache-2.0, TypeScript.
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.
Multi-Agent AI Task Orchestrator 2026
Autonomous AI BD Agent for SolCex Exchange: 24/7 Cross-Chain Token Scoring & Payments 2026