How to Use Crypto Payments for AI Agents
This is the practical companion to our overview of crypto payments for AI agents. That post covers what the category is and why it exists. This one is the how: the exact steps to get an agent creating real payments, start to finish, in a few minutes.
The whole idea is that there is almost nothing to set up. No account, no API key, no dashboard. An agent turns a wallet address into a working checkout by calling a tool. Funds settle straight to that wallet, keyless and non-custodial. Here is how to wire it up.
What you need
- A wallet address to get paid to. An EVM address (0x…) for stablecoins, or a Zcash address if you want shielded settlement.
- An MCP-capable agent or client (Claude, Cursor, Goose, and most modern harnesses qualify), or any environment that can make an HTTP request.
That is the entire list. There is no KYC to start and no secret for the agent to hold.
Step 1: Connect the MCP server
Point your agent at the Shieldz Model Context Protocol server. Remote, with no install:
{ "mcpServers": { "shieldz": { "url": "https://shieldz.cash/mcp" } } }
Or run it locally over stdio:
npx @shieldz/mcp
Once connected, the agent sees three tools: create_payment_link, create_tip_jar, and get_account_status. That is the whole surface.
Step 2: Create a payment link
For a one-time, fixed-amount charge, the agent calls create_payment_link with the amount and the wallet address it should settle to. In plain terms, the tool call looks like this:
{
"name": "create_payment_link",
"arguments": {
"amount_usd": 20,
"settlement_address": "0xYourWalletAddressHere",
"chain": "base",
"asset": "usdc",
"memo": "API access, monthly"
}
}
You get back a hosted checkout URL, an embeddable button, and a QR. Hand the link to the customer, or drop it straight into the agent’s output. When the buyer pays, the money lands in your wallet. Nothing is held in the middle.
create_payment_link. The buyer pays in any coin; it settles to your wallet.Step 3: Or open a tip jar
If you want a reusable, pay-what-you-want page instead of a one-time charge, use create_tip_jar. Same shape, no fixed amount (there is a dedicated walkthrough in crypto tip jars for AI agents):
{
"name": "create_tip_jar",
"arguments": {
"settlement_address": "0xYourWalletAddressHere",
"chain": "base",
"asset": "usdc",
"title": "Support this agent"
}
}
This is the right tool for a writing agent that publishes a post and opens a jar under it, or any case where the payer chooses the amount.
create_tip_jar: preset amounts, a custom field, and pay-what-you-want.Step 4: Read the results back
An agent that can check whether it got paid can close the loop. On its next run it calls get_account_status for the wallet and reads paid and pending totals:
{ "name": "get_account_status", "arguments": { "settlement_address": "0xYourWalletAddressHere" } }
Now the agent can report “you earned $60 across 3 payments this week” without a human ever opening a dashboard. Do the work, mint the link, check the total, all in the agent’s own loop.
No MCP? Use the HTTP API
If your framework does not speak MCP, call the endpoints directly. The flow is identical: create an invoice, send the buyer to the returned pay_url, and confirm settlement on a webhook or a status check. The crypto payment API quickstart walks it end to end in about ten minutes, and the official SDKs cover Node, Python, Rust, and PHP.
Keeping it safe
Because it is keyless, the agent holds no secret, so there is nothing to leak if the process is compromised or prompt-injected. It is not unguarded, though: every settlement address is screened against the OFAC sanctions list before a link can be created, and requests are rate limited per address and per IP. And since the flow is non-custodial, Shieldz only ever sees a public address, so funds can never be frozen or drained. You can check the derivation yourself. If you want the full reasoning on why connecting a wallet to a processor is the thing to avoid, how wallet drainers work is worth a read.
A few patterns that work
- Gate a deliverable: the agent ships a feature or report and returns the payment link with it.
- Metered runs: create a fresh link per job so each unit of work has its own checkout.
- Recurring support: open one tip jar and reuse it across every post or session.
Next steps
That is the entire loop: connect once, create a link or a jar, read the total back. If you skipped the background, the overview of crypto payments for AI agents explains why this matters now, and the agents guide is the full reference. The story of why we built it keyless is in your AI agent can now get paid.
Build it, point it at a wallet, and let your agent ask to get paid.
shield