Primitive/cards4 min read

Introducing /cards: give your AI agent virtual cards with hard limits

Issue virtual cards for your agents — a prepaid gift card or a managed virtual card — funded via checkout, capped by a spending limit, and fully audited.

Cards primitive →Read the docs →

/cards /cards /cards /cards /cards /cards /cards /cards /cards /cards
/cards /cards /cards /cards /cards /cards /cards /cards /cards /cards
/cards /cards /cards /cards /cards /cards /cards /cards /cards /cards
/cards /cards /cards /cards /cards /cards /cards /cards /cards /cards
/cards /cards /cards /cards /cards /cards /cards /cards /cards /cards
/cards /cards /cards /cards /cards /cards /cards /cards /cards /cards
/cards /cards /cards /cards /cards /cards /cards /cards /cards /cards
/cards /cards /cards /cards /cards /cards /cards /cards /cards /cards
/cards /cards /cards /cards /cards /cards /cards /cards /cards /cards
/cards /cards /cards /cards /cards /cards /cards /cards /cards /cards
/cards /cards /cards /cards /cards /cards /cards /cards /cards /cards
/cards /cards /cards /cards /cards /cards /cards /cards /cards /cards
/cards /cards /cards /cards /cards /cards /cards /cards /cards /cards
/cards /cards /cards /cards /cards /cards /cards /cards /cards /cards
Primitive/cards
TL;DR
  • /cards issue a virtual card an agent can spend from, in one call
  • Two types a prepaid gift card (a prepaid Visa, $150 max, no cardholder, the default) or a managed virtual card (Visa/Mastercard, no cap, cardholder required)
  • Funded through checkout creating a card returns a checkout URL; after payment, check-payment issues the card and details returns the credentials
  • Capped by a spending limit set the limit in cents (minimum $1.00); top up later through the same checkout flow
  • Assignable per agent assign a card to specific agents so you control which agents can spend
  • Auditable log transactions for a complete trail; managed cards also capture transactions automatically via webhooks

An agent that can research, email, and file paperwork still hits a wall the moment it needs to pay for something. Naïve is the autonomous company infrastructure that gives agents real-world capabilities, and /cards is the primitive for spend: create a virtual card, fund it through checkout, cap it with a spending limit, assign it to the agents allowed to use it, and log every purchase. Your agent can actually buy things — and you can prove every charge.

Two card types

/cards offers two providers, and you pick per card:

  • Prepaid gift card (prepaid_gift) — a prepaid Visa, $150 maximum, no cardholder required. This is the default and the fastest way to give an agent a small, hard-capped balance.
  • Managed virtual card (managed_virtual) — a Visa or Mastercard with no spending cap, which requires a one-time cardholder to be created for the company for identity compliance.

If you omit the provider, you get a prepaid gift card. Reach for a managed virtual card when you need a higher limit or a reusable card credential.

How /cards works

The flow is a funded checkout, then issuance:

  1. Createnaive cards create --name "Marketing" --spending-limit 10000 returns a checkout_url. The spending limit is in cents (minimum $1.00).
  2. Fund & issue — open the checkout_url to pay (the session expires after 30 minutes), then naive cards check-payment <card_id> issues the card.
  3. Reveal — once active, naive cards details <card_id> returns the full number and CVC for a managed virtual card, or a redeem code and PIN for a prepaid gift card.

This is the Company → Employee → Primitive model applied to money: the Company funds and owns the card, an Employee (agent) is assigned to it, and /cards is the primitive that binds spend to that agent.

Cardholder setup for managed virtual cards

Before creating managed virtual cards, create a cardholder once per company — this registers the identity information required for compliance. Prepaid gift cards skip this entirely.

naive cards create-cardholder \
  --first-name John --last-name Doe \
  --billing-line1 "123 Main St" --billing-city "San Francisco" \
  --billing-state CA --billing-postal-code 94105 \
  --dob-day 15 --dob-month 6 --dob-year 1990
 
naive cards create --name "Marketing" --spending-limit 10000 --provider managed_virtual
naive cards check-payment <card-id>

Fund the limit, top up when needed

A card can only ever spend what you have funded. The spending limit is set at creation and funded through checkout; to raise it, top-up returns a fresh checkout URL for the added amount.

naive cards top-up <card-id> --amount 5000

Because funding is explicit and up front, a misaligned agent can't spend past the balance you loaded — the cap is the money itself, not a policy an agent might talk its way around.

Assign cards to specific agents

Control which agents can spend by assigning cards explicitly:

# Assign an agent to a card
naive cards assign <card-id> --agent-id <agent-id>
 
# List who can spend on the card
naive cards assignments <card-id>
 
# Remove access
naive cards unassign <card-id> <agent-id>

Keep a clean audit trail

Record spend by logging transactions:

naive cards log-transaction <card-id> \
  --amount 2500 \
  --merchant-name "AWS" \
  --description "Cloud hosting payment"

Managed virtual cards also capture transactions automatically through payment webhooks, so manual logging is mainly for prepaid gift cards or offline purchases. List everything with naive cards transactions <card-id> for month-end reconciliation.

What you can build

Give each agent a hard-capped budget — Issue a prepaid gift card per agent so a researcher, a writer, and a distributor each spend inside their own funded limit, with no shared float to drain.

Run reusable spend on a managed card — For recurring cloud and SaaS bills, create one managed virtual card, assign it to the operations agent, and top it up as needed.

Isolate spend per tenant — In a multi-tenant app, give each customer's agents their own card and assignments, so spend and audit stay cleanly separated by tenant.

Reconcile from structured logs — Use the transaction log as the source of truth for burn rate and category-level spend, instead of reverse-engineering charges after the fact.

Use-case guides

End-to-end tutorials that use /cards in production:

Get started

Drop this starter prompt into any coding agent to wire up Naïve:

Read https://usenaive.ai/skill.md and use it to set up Naïve in my project.

Frequently Asked Questions
What is /cards?+
/cards is the Naïve primitive that gives your agents real purchasing power. You create a virtual card — a prepaid gift card or a managed virtual card — fund it through a checkout flow, cap it with a spending limit, assign it to the agents allowed to use it, and track spend with a transaction log. It turns 'the agent needs to buy something' into a governed call.
What card types are available?+
Two. Prepaid gift cards (the default) are prepaid Visa cards with a $150 maximum and need no cardholder — good for small, capped spend. Managed virtual cards are Visa or Mastercard with no spending cap, and require a one-time cardholder to be created for the company for identity compliance.
How do I create and issue a card?+
Call create with a name and a spending_limit_cents; Naïve returns a checkout_url. Open it to fund the card, then call check-payment to issue it. Once active, details returns the full card number and CVC for managed virtual cards, or a redeem code and PIN for prepaid gift cards.
How do I control which agents can spend?+
Assign a card to specific agents with the assign action, list who has access with assignments, and remove access with unassign. Set the spending limit at creation and raise it later with top-up, which returns a checkout URL for the added funds — so a card can never spend beyond what you have funded.
How do I keep an audit trail?+
Call log-transaction after a purchase with the amount, merchant, and description to record spend. Managed virtual cards also capture transactions automatically through payment webhooks; manual logging is for prepaid gift cards or offline purchases. List everything with the transactions action for reconciliation.
How much does /cards cost?+
You fund each card through checkout for the amount you set as its spending limit, and top-ups are funded the same way. Naïve's platform credits (each worth $0.05 per published docs) cover primitive usage separately from the money loaded onto a card. See usenaive.ai/pricing for current rates.
How do I get started with /cards?+
Install the CLI with npm install -g @usenaive-sdk/cli. For a managed virtual card, run naive cards create-cardholder once, then naive cards create --name 'My Card' --spending-limit 50000. Fund via the checkout URL and run naive cards check-payment <card_id> to issue. The full guide is at usenaive.ai/docs/getting-started/cards.
SD
Sean DorjeCo-founder

Co-founder of Naïve. Previously building the autonomous business stack.

@seandorje
Keep reading