Skip to main content

Cards · Spending for agents

Let your agents pay. You set the terms.

Virtual cards your agent uses at real checkouts, in dollars or in reais. Every card is bound to a mandate a person signed: what it can buy, how much, and until when. Every charge is checked against it before money moves.

Test mode is free. The card number never reaches the agent.

merchant · airline only
cap · US$ 650, one charge
expires · in 2 h
charged once · closed

Illustration · demo data

Your agent gets a card wherever it runsClaudeChatGPTCursorVS Codeyour own apphosted MCP · SDK · CLI

Why a mandate

A budget is not a permission.

A prepaid card with a cap limits how much can go wrong. It doesn't know what the purchase was for, or who said yes. A CodeSpar card carries the mandate behind it, so every charge answers to the instruction that created it.

the card knowscard + budgetcard + mandate
How much✓ a balance or a budget✓ US$ 650 · one charge
Where— depends on the setup✓ airline only
Until when— until someone cancels✓ 2 hours, then closed
Who allowed it— not on the card✓ signed by Ana · mnd_7x2c
What it was for— not on the card✓ flight GRU → JFK, Dec 12
The record— a statement line✓ charge, request and mandate, linked

Demo data

How a card lives

From a signed mandate to a closed card, in six steps.

Step through one purchase. Offline demo: no real money moves.

mnd_7x2c · flight to New Yorkstep 1 of 6
no card yetFunds are ready. Nothing can be spent without a mandate.
events
wallet.fundedUS$ 2,000.00
Offline demo · demo data

What a mandate sets

The card is the rail. The mandate is the permission.

Every charge attempt is checked in real time against the mandate a person signed, before any money moves. Merchants change nothing. The check runs on the card's identifier, never its number.

Per-charge cap
The most a single purchase can be.
Total cap
The most the card can spend, ever.
Allowed merchants
One store or a short list.
Currency and expiry
Permission ends when you say.
issue-card.tstest mode
// a card that can only do what the mandate allows
const card = await session.execute("codespar_issue", {
  action: "card-virtual",
  cardholder_id: "chd_ana",
  program_id: "prg_usd_agents",
  mandate: "mnd_7x2c",
});

// freeze, unfreeze or cancel, any time
await session.execute("codespar_issue", {
  action: "card-control",
  card_id: card.id,
  control: "cancel",
});
attempts on crd_4417 · in orderdemo
US$ 389.00 · hotel · not in the mandatedeclined
US$ 612.40 · airline · inside the mandateapproved

Two kinds of card

One card per task. Or one that keeps going.

single-use

Made for one purchase, gone after it.

Issued in an instant for a specific task, locked to the amount, merchant and window the mandate allows. Closed as soon as the task is done, or when the window ends.

book a flight · buy a license · pay one invoice

crd_4417 · uses1 of 1
US$ 612.40 · airlineretired

multi-use

For subscriptions and ongoing spend.

A total cap, a cap per charge, the merchants it may pay and an end date. Freeze it, unfreeze it or cancel it at any time, from the dashboard or in one call.

software seats · ad budgets · API credits

crd_9a1f · this monthUS$ 180 of 200
renews Jan 1 · 1 merchantactive

Two currencies

Buy anything online. In dollars or in reais.

Same mandate, same checks, same record. The currency follows the checkout, not your integration.

USD

Visa · accepted worldwide

Software, travel, cloud, ads and cross-border marketplaces. Anything priced in dollars, at any online checkout that takes Visa.

crd_9a1f · design tool, 12 seatsdemo
US$ 180.00 / monthapproved

BRL

Local card · Brazil
code<spar>•••• 0932AI AGENT PAYMENTS · BRL

Brazilian checkouts that only take a local card. Suppliers, delivery, marketplaces and services billed in reais, funded by Pix.

crd_3c07 · office suppliesdemo
R$ 1,240.00 · one chargeapproved

Three ways in

From company software to a weekend trip.

for companies building agents

Give your product a way to pay

Issue cards to your users through one MCP server or the SDK. Fund every card yourself, or give each user a wallet they fund.

Docs →

for teams automating purchases

Corporate cards for agents

The ad-hoc purchases that used to land on someone's personal card, now on a card per task, with the receipt tied to the request.

Use cases →

for personal assistants

“Book it.” should be enough

Your assistant found the flight, checked the dates and matched the budget. Now it finishes the purchase, inside the terms you set.

Personal assistants →

What can happen

Every card ends in a clear state.

A charge outside the mandate is declined and recorded. A card nobody used expires and closes. Nothing stays open by accident.

Cards this weekdemo
Flight GRU → JFK
crd_4417 · single-use · USD · charged once, then closed
US$ 612.40retired
Design tool · 12 seats
crd_9a1f · multi-use · USD · renews monthly
US$ 180.00active
Office supplies order
crd_3c07 · single-use · BRL · charged once, then closed
R$ 1,240.00retired
Ad budget top-up
crd_5e22 · multi-use · BRL · frozen by the owner
R$ 6,000.00frozen
Hotel, wrong merchant
crd_2b90 · single-use · USD · declined: merchant not in the mandate
US$ 389.00declined
Concert tickets
crd_8b10 · single-use · USD · window ended unused
US$ 240.00expired

Demo data

Funding

Who pays, decided once.

Fund every card from your company's balance, or give each of your users an individual wallet they top up. Cards draw from the wallet when the charge happens, so nothing sits pre-loaded on a card.

How Wallet works →

Price

What it costs.

card purchase10 bps · floor R$ 0.05 · cap R$ 2.00
card issuance and networkpassed through at cost
test modefree

The CodeSpar fee on a card purchase is the same as Pay, money out.

See pricing →

Works with

ShopOrganizes the order. A card pays for it at checkout.PayPix, boleto and transfers when the seller doesn't take cards.GateMandates, approvals and the record behind every charge.

Your agent makes the purchase. You set the terms.

Issue a test card in minutes. Move to live cards when your mandates are ready.

claude · codespar mcp
› Renew our design tool for 12 seats. Max US$ 200 a month, until December 2027.
codespar_issue card-virtual · multi-use · USD
cap US$ 200 / month · 1 merchant · ends 2027-12
✓ card active · bound to mnd_c41a
CodeSpar · Cards · Let your agents pay. You set the terms.