·4 min read

How to Use AgentCard with Cursor for AI-Powered Purchases

Set up AgentCard in Cursor and let your AI code editor buy domains, API credits, and developer tools with a virtual card.

Cursor is an AI-powered code editor built on VS Code. It runs terminal commands, edits files, and handles multi-step tasks autonomously. A lot of our users are already in Cursor all day, so we made sure the integration works smoothly — create a card, grab credentials, make a purchase, all without leaving your editor.

Here's the setup.

What you need

  • Cursor editor with an active subscription (Pro or Business)
  • Node.js 18+ for the AgentCard CLI
  • A payment method (credit card, debit card, or USDC)

Step 1: Install the AgentCard CLI

Open Cursor's integrated terminal and install AgentCard globally:

npm install -g agentcard

Or just tell Cursor's agent to do it. It has terminal access.

Step 2: Sign up and authenticate

agentcard signup --email you@example.com

Magic link in your email. Click it. Session gets saved to ~/.agentcard/config.json and Cursor's agent picks it up automatically.

Step 3: Create a card and make a purchase

Switch to Cursor's agent mode (Cmd+I or Ctrl+I) and give it a task:

"Create a $25 AgentCard virtual card, then use it to buy the domain mycoolproject.dev on Namecheap."

Cursor's agent will:

  1. Run agentcard create --amount 25 in the terminal
  2. Open the Stripe Checkout link for your payment (credit card or USDC)
  3. Run agentcard details <card-id> to retrieve the card number, CVV, and expiry
  4. Use the card credentials to complete checkout programmatically or guide you through the steps

Using AgentCard as an MCP skill

Cursor supports MCP (Model Context Protocol), which is great for us. It means Cursor can discover AgentCard tools natively without you explaining anything.

Add our skill endpoint to your Cursor MCP config:

agentcard.ai/skill

With MCP, Cursor's agent discovers what AgentCard can do on its own. Just say what you want to buy. It figures out the commands.

Why Cursor works well for this

Cursor's agent mode was made for multi-step tasks. Unlike chat-only AI tools, it can:

  • Run terminal commands — it executes agentcard create, agentcard details, and agentcard balance directly
  • Read command output — it parses card IDs, card numbers, and balances from CLI responses
  • Chain steps together — create a card, wait for payment, retrieve details, and use them in one flow
  • Access the filesystem — it can save card details to a local config file for use in scripts or environment variables

"I need API credits" to "purchase complete" in a single prompt. We've seen users do this dozens of times — it just works.

Example workflows

Buying API credits

"Create a $50 AgentCard and use it to purchase OpenAI API credits on my account."

Cursor creates the card, pulls the details, and walks you through the OpenAI billing page. Quick.

Registering a domain

"Create a $15 AgentCard and register the domain myproject.io on Porkbun."

Cursor handles card creation and gives you the exact card details to paste into checkout — or navigates the purchase programmatically if the registrar has an API.

Paying for a SaaS tool

"Create a $20 AgentCard and subscribe to the Vercel Pro plan."

Cursor creates the card, retrieves credentials, and guides you through Vercel's upgrade flow with the card details ready to paste.

Keeping spending under control

Here's the thing about giving AI agents money: you need a hard ceiling. A $25 card can never be charged more than $25. Ever. That's not a setting you can accidentally change — it's baked into the card.

  • One card per task. Isolate every purchase.
  • Right-size it — item costs $12? Make a $15 card, not $100.
  • Verify after — have Cursor run agentcard balance <card-id> to confirm the charge.
  • USDC works too — we accept it at checkout alongside credit cards.

Quick start

Paste this into Cursor's terminal. Takes about 60 seconds to go from zero to a working virtual card:

# Install the CLI
npm install -g agentcard

# Sign up (check your email for the magic link)
agentcard signup --email you@example.com

# Create a $25 virtual card (opens Stripe Checkout)
agentcard create --amount 25

# Get card details (card number, CVV, expiry)
agentcard details <card-id>

# Check remaining balance
agentcard balance <card-id>

Switch to agent mode, tell Cursor what to buy. It takes it from there.

Ready to try AgentCard?

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

npm install -g agentcard