Enables AI agents to programmatically issue, fund, and manage virtual MasterCard cards for autonomous payment processing.
Integrates with the Stellar network to facilitate USDC payments via the x402 protocol and manage blockchain wallet statuses for card operations.
Public mirror β this repo is a read-only mirror of the internal monorepo. For issues and feature requests use GitHub Issues. For code contributions see CONTRIBUTING.md.
Agent Card
Agent Card is an agent-first virtual card platform. AI agents programmatically issue and manage MasterCard virtual cards, paying in USDC via the x402 protocol on Stellar.
If it speaks MCP, it can spend.
π¬ Demo
Agent Card is right for you if
β Your AI agent needs to pay for things β hosting, domains, APIs, SaaS
β You want a virtual MasterCard issued programmatically
β You want your agent to manage cards autonomously via MCP
β You want to pay in USDC without touching fiat banking
β You need transparent, on-chain proof of every payment
Quick Start
For Codex
npx @asgcard/cli onboard -y --client codexFor Claude Code
npx @asgcard/cli onboard -y --client claudeFor Cursor
npx @asgcard/cli onboard -y --client cursorUsing the SDK directly
npm install @asgcard/sdkVia ClawHub
npx clawhub@latest install agentcardThe onboarding flow creates a Stellar wallet (~/.asgcard/wallet.json), configures MCP, installs the agent skill, and prints the next step.
Note: If you already have a wallet, run
npx @asgcard/cli doctorto verify your setup.
How It Works
Agent requests a card β API returns
402 Payment Requiredwith USDC amountAgent signs a Stellar USDC transfer via the SDK
x402 Facilitator verifies and settles the payment on-chain
API issues a real MasterCard via the card issuer
Card details returned in the response
Live pricing: GET https://api.asgcard.dev/pricing Β· Full docs: asgcard.dev/docs
MCP Server (9 tools)
@asgcard/mcp-server exposes 9 tools via the Model Context Protocol. The MCP server reads your Stellar key from ~/.asgcard/wallet.json β no env vars needed in client configs.
Tool | What it does |
| Wallet address, USDC balance, readiness |
| Create virtual MasterCard (x402 payment) |
| Top up existing card |
| List all wallet cards |
| Card summary |
| PAN, CVV, expiry (nonce-protected) |
| Freeze or re-enable a card |
| Current tier pricing |
SDK
import { ASGCardClient } from "@asgcard/sdk";
const client = new ASGCardClient({
privateKey: "S...", // Stellar secret key
rpcUrl: "https://mainnet.sorobanrpc.com"
});
const card = await client.createCard({
amount: 10,
nameOnCard: "AI Agent",
email: "agent@example.com"
});See /sdk for full API reference.
Repository Structure
This is a monorepo. Most users should use npx @asgcard/cli or npm install @asgcard/sdk β cloning is only needed for contributing.
Directory | Package |
| ASG Card API (Express + x402 + wallet auth) |
|
|
|
|
|
|
| Marketing website (asgcard.dev) |
| Documentation and ADRs |
Security
π AES-256-GCM encryption at rest for card details
π Stellar private key never leaves your machine (
~/.asgcard/wallet.json)π‘οΈ Nonce-based anti-replay protection
β Wallet signature authentication β no API keys
π Security Policy Β· Technical Overview
Community
GitHub Issues β bugs and feature requests
asgcard.dev β docs and website
Twitter/X β updates
License
MIT Β© 2025 ASG Compute
This server cannot be installed
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.