JSPM

@asgpay/agent-cash

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 372
  • Score
    100M100P100Q8024F
  • License MIT

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.

Package Exports

  • @asgpay/agent-cash
  • @asgpay/agent-cash/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@asgpay/agent-cash) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@asgpay/agent-cash

Autonomous Virtual Credit Cards for AI Agents

npm downloads ASG Pay


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-cash

Quick 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

Part of ASG Pay — the banking layer for autonomous AI agents.