Payment Rail for AI Agents.
Like Stripe — but for autonomous agents.
aifinpay.company · docs · SDK · contracts
A live x402 payment infrastructure for autonomous AI agents. Agents pay per call on Polygon or Solana mainnet, non-custodial, with a single line of code:
from aifinpay import Agent
agent = Agent.new()
resp = agent.pay("https://bridge.aifinpay.company/io-net/chat/completions",
body={"model": "meta-llama/Llama-3.3-70B-Instruct",
"messages": [{"role": "user", "content": "Hello"}]})Same agent, drop into Claude Desktop / Cursor / Windsurf as an MCP server — the LLM gets five payment tools and can autonomously buy any x402-gated service.
{
"mcpServers": {
"aifinpay": { "command": "npx", "args": ["@aifinpay/mcp"] }
}
}| What | Asset | Tx |
|---|---|---|
| First Exa search via SDK | POL | 0xeb13c5ed…59c8700 |
| Llama-3.3-70B inference via io.net, $0.025 | POL | 0x7c6ca0ff…129f0a |
| Repo | What |
|---|---|
AiFinPay/sdk |
Python + Node SDKs, MCP server, framework adapters (OpenAI Agents, LangChain, CrewAI, Flowise, AutoGPT), live bridges |
AiFinPay/contracts |
Smart contracts — Polygon (Solidity: AiFinPayCore, AgentPassport, MSECCOToken, AiFinPaySplitter) + Solana (Anchor) |
# Python
pip install aifinpay-agent --pre
# Node / TypeScript
npm install @aifinpay/agent@alpha
# MCP server (Claude Desktop / Cursor / Windsurf / Continue / Cline / LobeChat)
npx @aifinpay/mcp ┌───────────────────────────────────┐
Agent ─pay()─▶ │ x402 server (or AiFinPay bridge) │
│ 402 + accepts[] + nonce │
└───────────────────────────────────┘
│
on-chain settlement (single tx, atomic)
│
┌───────────────────────────────────┐
│ Polygon: AiFinPaySplitter.payMatic │
│ or .payStable (USDC/T) │
│ Solana: b2b_pay_with_split │
│ 98.99 % merchant / 1 % treasury │
│ / 0.01 % IP-creator (verifiable │
│ in contract source) │
└───────────────────────────────────┘
│
┌───────────────────────────────────┐
│ Retry → 200 + upstream payload │
└───────────────────────────────────┘
- Splitter (Polygon mainnet):
0xE34Fc0E6…8440 - Solana program:
5g9zWHF1Vv6GiGpA2ZbJQbSCDZd5hAk9AyvabRJvKFx2 - Treasury (multisig):
0xD31d82c4…3c8e(Gnosis Safe) - API:
api.aifinpay.company(manifesto, registry, x402 discovery) - Bridges:
bridge.aifinpay.company/{io-net,exa,venice}/...— live x402-gated proxies in front of three providers
- x402 — HTTP 402 payment protocol
- Model Context Protocol — Anthropic's tool-call standard
- ERC-8004 — A2A agent-card discovery
(via
/.well-known/agent.json)
Operated by CoinSecurities (SECCO), Singapore. MAS Sandbox
compliance ref AiFinPay-DON-2026-001. mSECCO is a non-transferable
internal accounting unit — not an asset.
MIT across all public packages and contracts.