·4 min read

How to Use AgentCard with Replit Agent for Online Purchases

Give Replit Agent a virtual card to buy APIs, domains, and services. A complete guide to using AgentCard with Replit's autonomous agent.

Replit Agent might be the most complete agent for purchases right now. It runs in the cloud with full terminal access AND a built-in browser. That means it can do both halves of the job: create a card via the AgentCard CLI, then open a browser and check out at any merchant's site. Most agents can only do one or the other.

We've been impressed with how well this pairing works. Here's how to set it up.

What you need

  • A Replit account with Agent access
  • Node.js 18+ available in your Repl (most templates include it)
  • A payment method (credit card, debit card, or USDC)

How Replit Agent makes purchases

Terminal plus browser. That's the combo. For AgentCard purchases, Replit Agent can:

  1. Run the AgentCard CLI in the shell to create a virtual card
  2. Retrieve card details (number, CVV, expiry, billing address)
  3. Open a merchant's website in its built-in browser
  4. Navigate to checkout and fill in card details
  5. Complete the purchase

Everything runs in Replit's cloud. Nothing to install on your machine.

Step 1: Install the AgentCard CLI

Ask Replit Agent to install AgentCard in your Repl:

"Install the AgentCard CLI globally"

It will run:

npm install -g agentcard

Step 2: Sign up

Have the agent sign you up, or run it in the shell yourself:

agentcard signup --email you@example.com

Magic link in your email — click it and you're in. The CLI stores your session in the Repl's filesystem, so you stay logged in between interactions. No re-authing every time.

Step 3: Ask Replit Agent to create a card and make a purchase

One instruction is all it takes:

"Create a $25 AgentCard virtual card, then go to Namecheap and buy the domain mycoolproject.dev"

Replit Agent will:

  1. Run agentcard create --amount 25 in the shell
  2. Open the Stripe Checkout link for your payment
  3. Run agentcard details <card-id> to retrieve card credentials
  4. Open Namecheap in the built-in browser
  5. Search for the domain and add it to cart
  6. Fill in card details at checkout
  7. Complete the purchase

Why cloud-native matters

Here's the thing about Replit Agent: everything lives in the cloud. You don't need Node.js on your laptop. You don't need to configure anything locally. Just open a Repl and go.

  • No local setup — zero. Everything runs in the Repl.
  • Persistent environment — your AgentCard session sticks around, so you can come back later to check balances or create new cards
  • Built-in browser — visual checkout flows work out of the box. No extra config.
  • Shareable workspace — your teammate can watch the agent work in real time. Useful for demos or pair purchasing.

Best use cases

Buying APIs and developer services

"Create a $20 AgentCard and sign up for a Supabase Pro plan."

Replit Agent opens Supabase, navigates to pricing, selects the plan, enters the card details. The whole thing takes a couple minutes. Especially useful when you're mid-project in Replit and need to provision services without context-switching.

Domain registration

"Create a $15 AgentCard and register mycoolapp.com on Cloudflare."

The agent handles availability search, cart, payment. End to end.

Purchasing assets for your project

"Create a $30 AgentCard and buy a premium icon pack from Gumroad for our landing page."

Replit Agent can browse Gumroad, find the asset, and complete checkout with the virtual card.

Programmatic purchases too

Replit Agent isn't just a browser bot. It has full terminal access, so it handles API-based purchases the same way Aider or Claude Code would — scripts, curl, direct billing API calls. You get both worlds. That's rare among agents right now.

Security tips

Browser access is powerful. But powerful means you need guardrails. That's literally why we built AgentCard — so the card itself is the guardrail.

  • Size cards to the purchase — $15 card for a $12 buy. Not a round $50.
  • One card per task — fresh card every time
  • Check the balanceagentcard balance <card-id> after each purchase. Make it a habit.
  • Review the plan — Replit Agent shows you what it intends to do before executing. Read it.

If the agent navigates to the wrong page or hits an unexpected charge? Doesn't matter. Your exposure is capped at the card balance. Your personal payment info is never shared with anyone.

Get started

In your Repl's shell:

npm install -g agentcard
agentcard signup --email you@example.com

Then ask Replit Agent:

"Create a $25 AgentCard and buy me [whatever you need]."

Terminal and browser, all from your Repl. The agent takes it from there.

Ready to try AgentCard?

Give your AI agent a virtual card in under 60 seconds.

npm install -g agentcard