SDK v0.5.2 — Live on PyPI

The payment layer for
autonomous AI agents

Three rails, one SDK, zero custody. The only hybrid crypto + fiat payment network your agents can use today.

Start Building Free → Read the Docs
Features
Everything agents need to transact

Built from the ground up for machine-to-machine payments.

🤖
A2A Billing

Provider invoices consumer. Auto-approval rules pay instantly — zero human involvement.

🌐
Accountless Payments NEW

Any external agent pays your invoices without an account. Signed access token as proof.

📅
Partial & Installments NEW

Pay what you can. Auto-retry collects remainder daily. Email + webhook notifications.

🔔
Real-time Webhooks

HMAC-signed events: invoice.paid, invoice.partial_paid, payment.completed.

👥
Multi-Agent Support

Create named sub-agents, each with its own API key. Rotate without downtime.

🔐
100% Non-Custodial

Router contract on-chain. Stripe Connect for card and ACH. We never hold funds.

🔒
Enterprise Security

API key auth, rate limiting, audit logging, email verification, JWT support.

Smart Billing Rules

Set spend limits per provider. Auto-pay respects rail preference and max amount.

🤖
A2A Billing

Provider invoices consumer. Auto-approval rules pay instantly — zero human involvement.

🌐
Accountless Payments NEW

Any external agent pays your invoices without an account. Signed access token as proof.

📅
Partial & Installments NEW

Pay what you can. Auto-retry collects remainder daily. Email + webhook notifications.

🔔
Real-time Webhooks

HMAC-signed events: invoice.paid, invoice.partial_paid, payment.completed.

👥
Multi-Agent Support

Create named sub-agents, each with its own API key. Rotate without downtime.

🔐
100% Non-Custodial

Router contract on-chain. Stripe Connect for card and ACH. We never hold funds.

🔒
Enterprise Security

API key auth, rate limiting, audit logging, email verification, JWT support.

Smart Billing Rules

Set spend limits per provider. Auto-pay respects rail preference and max amount.

The Gap
Agent payments exist.
Hybrid ones don't.

Crypto-only networks won't touch your Stripe account. Fiat rails weren't built for machines. Every solution picks one lane — none ship all three in a single SDK you can install today.

Scroll to reveal
🧩
Nobody ships all three

The infrastructure exists — just not in one place. Crypto rails that stop at the chain edge. Fiat systems that need someone to click approve. Open protocols nobody has actually shipped yet.

We solve this ✓
🧑‍💻
Fiat rails assume a human

Stripe is excellent infrastructure — designed around someone clicking a button. Autonomous invoice-and-settle wasn't the use case.

Human-in-the-loop
⛓️
Crypto networks stay on-chain

Great for stablecoin settlement. Hit a wall the moment your provider wants payment to their Stripe account or bank.

Crypto-only silo
Payment Rails
Three ways to move money.
All non-custodial.

Pick one or all three. Funds route directly between agents — we never hold your money on any rail.

⛓ Crypto
💳 Card
🏦 ACH
🤖
Consumer Agent
Payer
Base Mainnet
Router contract splits fee on-chain
🤖
Provider Agent
Receiver
✓ Non-custodial · Agents sign their own transactions
3
Payment rails
~2s
Settlement
Zero
Platform custody
1
SDK to install
Core Features
How AgentPayment works

Four capabilities that make autonomous agent payments possible.

01
A2A Billing
Autonomous invoice & pay
02
Accountless Payments
No account required to pay
03
Partial & Installments
Pay in parts, auto-retry
04
Billing Rules
Set once, pay forever
Core Feature
🤖
Agent-to-Agent Billing

Provider agents autonomously invoice consumer agents. Set an auto-approval rule once — every future invoice from that provider pays itself instantly. Zero human involvement.

Provider Agent
Creates Invoice
Billing Rule Matches
✓ Auto-Paid
Supports all 3 rails — crypto, card, or ACH depending on the billing rule preference
Partial payments — if rule max is below invoice amount, pays partial and queues the rest
Real-time webhooks — invoice.paid fires the moment settlement completes
New Feature
🌐
Accountless Payments

Any AI agent — even one with no AgentPayment account — can pay your invoices. The payer gets a signed access token as cryptographic proof of payment to present to your service.

Unregistered Agent
Get Invoice Info
Discover amount, rails & receiver — no auth needed
Submit Payment
tx hash (crypto) or payment method (card/ACH)
Receive Access Token
Present to provider to unlock the service
New Feature
📅
Partial & Installment Payments

Agents pay what their billing rule allows now. The platform automatically retries the remaining balance every 24 hours — no manual intervention needed. Both parties get notified on every installment.

Invoice total $100.00
✓ Paid so far $40.00
↻ Auto-retry tomorrow $60.00 remaining
Consumer and provider both receive email on each installment
Webhooks fire on invoice.partial_paid with amount_paid and amount_remaining
Consumer can pay remaining manually anytime via client.pay_remaining(invoice_id)
Automation
⚙️
Billing Rules

Set spending controls per provider once. Every future invoice from that provider is evaluated against your rule — auto-approved if it fits, queued for review if it doesn't.

🤖 Consumer Agent
⚙️ Billing Rule
max $100 · crypto
New invoice arrives
≤ $100?
Yes
✓ Auto-Paid
No
⏸ Queued
Per-provider limits — different max amounts per service
Rail preference — specify crypto, card, or ACH per provider
Deactivate anytime — DELETE Billing Rule
Architecture
🔐
100% Non-Custodial

We never hold your funds on any rail. Funds flow directly between agents — your money never touches our platform wallet.

⛓️
Crypto
Agents sign transactions locally. Router contract splits fees atomically on Base Mainnet. Verifiable on BaseScan.
💳
Card
Stripe Connect routes directly to provider's account via transfer_data. Our fee taken via application_fee_amount.
🏦
ACH
Plaid links the bank. Stripe Connect bridges to provider's connected account. We never see the funds.
Developer Tools
🔔
Real-time Webhooks

HMAC-signed webhook notifications for every payment event. Your agents react instantly — no polling required.

Paid Invoice Webhook invoice.paid
Fires when an invoice is fully settled on any rail
Partial Paid Invoice Webhook invoice.partial_paid
Fires on each installment — includes amount_paid and amount_remaining
Completed Payment Webhook payment.completed
Fires when a direct payment clears — includes tx_hash for crypto
Failed Payment Webhook payment.failed
Fires on failure with error code — trigger retry logic in your agent
Multi-Agent
👥
Worker Agents

Run fleets of specialized agents under one account. Each gets its own isolated API key and identity.

🔑
Isolated API keys
Each worker agent has its own key. Compromise one — rotate it without touching the rest.
📊
Per-agent billing
Invoice and bill at the agent level. Track spend per worker independently.
Unlimited agents
No agent limits. Create as many as your use case needs. Volume-based pricing scales with your usage.
Security
🔒
Enterprise Ready

Production-grade security built in from day one — not bolted on after.

🛡️
API key authentication
Every request authenticated. Keys scoped to agent. Rotate anytime from dashboard.
⏱️
Rate limiting
Redis-backed rate limits per endpoint. Protects against runaway agents.
📋
Audit logging
Every payment, invoice, and key rotation logged with timestamps and agent ID.
✉️
Email verification
Two-level verification. Disposable domains blocked. Live keys require verified email.
Built for every builder

Whether you're a solo dev, a startup,
or an enterprise — AgentPayment grows with you.

Full platform access from day one. Crypto, card, and ACH. Autonomous billing, webhooks, multi-agent splits. No feature gates, no tiers — just volume-based pricing that scales as your agents do.

pip install agent-payment-sdk
Start Building Free →
All 3 payment rails
Unlimited agents
No feature gates
Volume-based pricing
Free sandbox

Give your AI agents
the ability to pay.

Free tier available now. No credit card required.

Get Your API Keys → View Pricing