Free · Open source · No platform fees

The crypto payments SDK that charges nothing

Add crypto payments to your website or service. Customers pay in USDC or USDT — for one-off services and for subscriptions — and the money settles directly to your wallet. No platform fee, no percentage cut, no intermediary holding funds. The open-source alternative to Coinbase Pay and Binance Pay, and the same stack AgentPod runs in production.

curl -X POST https://crypto-payments.agentpod.agentlabs.cc/v1/checkout/sessions \
-H "x-api-key: $AGENTLABS_PAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 25,
"success_url": "https://your-site.com/paid",
"cancel_url": "https://your-site.com/pricing",
"callback_url": "https://your-site.com/hooks/agentlabs-pay"
}'

Create a checkout session from your server; the customer pays on the hosted checkout and the funds settle to your wallet.

Platform fee
0%
Chains — Base, Ethereum, Solana, TON
4
Stablecoins accepted
USDC · USDT
Open-source license
MIT

How it works

From signup to settled in three steps

01

Get an API key and checkout secret

Keys are issued on request today (self-serve onboarding is in development). Your wallet addresses are yours — configure them once, and every payment settles to them directly.

02

Create a checkout from your server

Call the REST API to create a customer, an invoice, or a checkout session — or sign a payment link yourself with your checkout secret. Send the customer to the hosted checkout at pay.agentlabs.cc/pay.

03

Get paid, get a signed callback

The customer pays with WalletConnect, MetaMask, Phantom, Tonkeeper, or by QR code. The payment is verified on-chain and your server receives an HMAC-signed callback. No intermediary ever holds the funds.

Wallets

Every way a customer can pay

The hosted checkout meets customers in the wallet they already use. However they pay, the amount and destination come from your backend — the customer approves the exact transaction, and the payment settles to your wallet.

WalletConnect

Connect a WalletConnect-compatible wallet — mobile or desktop — by scanning a QR code, and pay the backend-issued transaction from the connected wallet. One connection flow covers hundreds of wallets on the EVM chains (Base and Ethereum).

WalletConnect connect-and-pay is being integrated into the hosted checkout (AgentPod #6438). Until it lands, every checkout still offers QR code and copied-address payment as the fallback.

WalletConnect documentation ↗

MetaMask

Browser-extension and mobile wallet for the EVM chains — Base and Ethereum.

Phantom

Solana wallet for USDC and USDT payments on Solana.

Tonkeeper

TON wallet for payments on the TON network.

QR code / address

No wallet connection needed. The checkout shows a payment address and a QR code; the customer sends the exact amount from any wallet or exchange, and the payment is verified on-chain.

Quickstart

Integrate in an afternoon

Two ways in. The hosted checkout needs no frontend code at all; the embed snippet adds a one-line button to any page. Server calls use your API key in the x-api-key header against https://crypto-payments.agentpod.agentlabs.cc.

Step 1

Embed the button

Drop the script on any page and point the button at a signed checkout URL created by your server. The checkout secret never goes in browser code.

HTML
<script src="https://pay.agentlabs.cc/agentlabs-pay.js"></script>
<button onclick="AgentLabsPay.checkout({ url: SIGNED_CHECKOUT_URL })">
Pay with crypto
</button>

Step 2

Create a checkout session

One call from your server returns a hosted checkout URL. Or skip the API and sign a payment link directly: the checkout intent is an HMAC-SHA256 signature over the sorted payment parameters (uid, plan or amountUsd, exp) keyed by your checkout secret, passed as sig on https://pay.agentlabs.cc/pay. The exact canonical format is in the open-source backend (verifyCheckoutIntent).

https://pay.agentlabs.cc/pay?uid=<user id>&plan=<plan id>&exp=<unix expiry>&sig=<hmac>

curl -X POST https://crypto-payments.agentpod.agentlabs.cc/v1/checkout/sessions \
-H "x-api-key: $AGENTLABS_PAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 25,
"success_url": "https://your-site.com/paid",
"cancel_url": "https://your-site.com/pricing",
"callback_url": "https://your-site.com/hooks/agentlabs-pay"
}'

Step 3

Confirm the payment

Your callback_url receives an HMAC-signed POST when a payment verifies on-chain. You can also poll GET /v1/events or the payment intent. Verification is on-chain — a payment counts when the transaction confirms, not when a customer clicks pay.

cURL
curl https://crypto-payments.agentpod.agentlabs.cc/v1/events \
-H "x-api-key: $AGENTLABS_PAY_API_KEY"

API reference

A small, complete REST API

Customers, invoices, payment intents, and checkout sessions — the building blocks of one-off payments and subscription billing, behind one API key.

MethodEndpointDescription
POSTGET/v1/customersCreate and list your customers
POSTGET/v1/invoicesInvoices for services and subscription billing, with line items, finalize and void
POSTGET/v1/payment_intentsPayment intents for a customer or invoice; confirm with a transaction hash
POSTGET/v1/checkout/sessionsHosted checkout sessions with success / cancel / callback URLs
GET/v1/eventsWebhook event log — poll what happened instead of guessing
GET/api/configPublic configuration: chains, tokens, prices, settlement wallets
POST/api/paymentSubmit a payment transaction for on-chain verification

Chains: Base, Ethereum, Solana, TON. Tokens: USDC, USDT. Full machine-readable summary for agents: pay.agentlabs.cc/llms.txt.

For agents

Built for agents, too

Services that onboard this SDK become payable by AI agents through the same API and hosted checkout — an agent creates a payment intent, pays it, and confirms the result programmatically.

Until the dedicated server ships, llms.txt is the contract an agent needs: endpoints, parameters, and the payment flow in plain text.

MCP server — in development

llms.txt
# Pay by AgentLabs
> Free open-source SDK to accept crypto payments (USDC, USDT).
> No platform fees and no intermediary: payments settle directly
> from the payer's wallet to the merchant's wallet.

API base: https://crypto-payments.agentpod.agentlabs.cc
Auth: header `x-api-key: <key>` on all /v1 endpoints.

- POST /v1/checkout/sessions -> returns a session with a hosted checkout `url`
- GET  /v1/events — webhook event log (type filter supported)
- GET  /api/config — public: chains, tokens, settlement wallets

FAQ

Questions, answered

What does Pay by AgentLabs charge?

Nothing. There is no platform fee and no percentage cut: the processor takes no fee in code, and payments settle directly from the customer's wallet to yours. The only cost is the blockchain network fee (gas), paid to the network, which is lowest on Base.

How is this different from Coinbase Pay or Binance Pay?

Pay by AgentLabs is open source and non-custodial. You run on open code, your customers pay your own wallet addresses, and no intermediary holds funds or takes a platform fee. It is a free, open-source alternative to hosted processors like Coinbase Pay and Binance Pay.

Which chains and tokens are supported?

USDC and USDT on Base, Ethereum, Solana, and TON (Base Sepolia and Ethereum Sepolia for testing). Customers can pay with WalletConnect, MetaMask, Phantom, or Tonkeeper, or by scanning a QR code.

Can I bill subscriptions with it?

Yes. The API models customers, invoices with line items, and payment intents — the building blocks of subscription billing. Your server creates an invoice per billing period and sends the customer a checkout link; signed callbacks tell you when it is paid.

How do AI agents pay through it?

Agents use the same REST API and hosted checkout: create a payment intent or open a signed checkout link, pay, and confirm status via the API. A dedicated MCP server for agent payments is in development; the machine-readable integration summary lives at pay.agentlabs.cc/llms.txt.

Is it really open source?

Yes. The full processor — backend, hosted checkout, and this SDK — is MIT-licensed at github.com/dzianisv/CryptoPayments. It is the same code AgentPod itself runs in production to take crypto payments.

Start accepting crypto payments

Open source, non-custodial, and free — the only cost is the blockchain network fee, and it goes to the network, not to us.