@asgpay/agent-cash
v1.0.1
Published
ASG Pay Agent Cash — give your AI agents autonomous virtual credit cards (Mastercard) via Stripe Issuing. x402 & MPP compatible. Part of the ASG Pay ecosystem.
Maintainers
Readme
What is @asgpay/agent-cash?
@asgpay/agent-cash gives AI agents autonomous virtual credit cards (Mastercard) via Stripe Issuing. Your agent gets a real card number to pay for APIs, SaaS subscriptions, and web services — without human intervention.
x402 & MPP compatible. Part of the ASG Pay ecosystem.
Install
npm install @asgpay/agent-cashQuick Start
import { AgentCash } from '@asgpay/agent-cash';
const cash = new AgentCash({ apiKey: process.env.ASG_API_KEY! });
// Create virtual card for the agent
const card = await cash.issueCard({
name: 'Data Analyst Agent',
limit: 200,
});
// Agent now has a real Mastercard to pay for services
console.log(`Card: **** ${card.last4}, Exp: ${card.exp}`);Use Cases
- API payments — Agent uses card to pay for premium API access
- SaaS subscriptions — Agent subscribes to tools it needs
- Cloud compute — Agent provisions and pays for compute resources
- Data purchases — Agent buys datasets from marketplaces
ASG Pay Ecosystem
| Package | Purpose | |---------|---------| | @asgpay/pay | Multi-chain payment SDK (x402 + MPP) | | @asgpay/sdk | Virtual Mastercard management | | @asgpay/cli | Card creation & management CLI | | @asgpay/mcp-server | AI agent tools (Claude, Codex, Cursor) | | @asgpay/fund | One-link agent wallet funding | | @asgpay/agent-cash | ← You are here. Virtual cards. | | @asgpay/create-app | Project scaffolding |
Links
- 🌐 asgcard.dev · 📦 @asgpay/pay · 𝕏 @ASGCardx402
