CLI tool for AI Agents to manage payment tokens — VCN, Network Token, and X402. Card binding, 3DS, multi-developer API key management.
agenzo-token-cli is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on ai-agent, cli, network-token, payment. It currently has 5 GitHub stars and 1 forks, and sits alongside related tools like vaaya-mcp, x402-proxy, knowmint.
CLI tool for AI Agents to manage payment tokens — VCN, Network Token, and X402. Built for humans and AI Agents, with interactive prompts, 3DS-verified payment methods, and multi-developer API key management.
Install · AI Agent Skill · Quick Start · Commands · Auth · Contributing
--cvv flag for automation), OS-native credential storage, 3DS verification| Category | Capabilities |
|---|---|
| 🔐 Auth | Magic Link login, auto-registration, token refresh, multi-org switch |
| 👤 Developers | Create, list, get, update developers under your organization |
| 🔑 API Keys | Create, list, rotate, disable keys scoped to each developer |
| 💳 Payment Methods | Add payment methods with 3DS (default mode) or via DropIn SDK (drop-in mode), verification polling, --cvv flag for automation, duplicate card override |
| 🎫 VCN | Virtual card with spend limit, backed by AgentCard + Evo preauth |
| 🔒 Network Token | Cryptogram via evo-cli, supports Visa & MasterCard (issuer-dependent) |
| ⛓️ X402 | On-chain payment signature for Web3 transactions |
| ⚙️ Config | Set API host, view config, reset to defaults |
npm install -g agenzo-token-cli
Requirements: Node.js 18+
The server advertises the minimum required CLI version via the X-CLI-Min-Version response header. If your installed CLI is below that minimum, any command refuses to run and exits with code 2:
✗ CLI 1.2.0 is below the required minimum 1.3.0.
ℹ Upgrade: npm install -g agenzo-token-cli@latest
Run the upgrade command and retry. The floor is controlled server-side (AGENT_PAY_CLI_MIN_VERSION env var), so raising it does not require a CLI release.
This CLI ships with a structured SKILL.md that AI Agents can use to understand and operate all payment flows. The skill covers:
To use with your AI Agent, include SKILL.md in the agent's context or tool definition.
# 1. Sign in (auto-registers on first use)
agenzo-token-cli login --email [email protected]
# 2. Create a developer
agenzo-token-cli developers create --developer-name "My Agent" --developer-email [email protected]
# 3. Create an API Key (save it — only shown once!)
agenzo-token-cli keys create --developer-id dev_01KPX... --key-name "Production Key"
# 4. Add a payment method (interactive 3DS verification)
agenzo-token-cli payment-methods add --api-key sk_prod_xxx --email [email protected]
# Or pass all card details for automation (CVV via flag)
agenzo-token-cli payment-methods add --api-key sk_prod_xxx --email [email protected] --card-number 2223001870064586 --expiry 1226 --cvv 935
# Or use Drop-in mode (card details entered in your own front-end via Evo DropIn SDK)
agenzo-token-cli payment-methods add --mode dropin --api-key sk_prod_xxx --email [email protected]
# 5. Create a payment token (interactive card selection)
# --idempotency-key is required and must be supplied by the caller; the CLI prompts if omitted.
agenzo-token-cli payment-tokens create --type vcn --api-key sk_prod_xxx --idempotency-key idem_001
agenzo-token-cli payment-tokens create --type network-token --api-key sk_prod_xxx --idempotency-key idem_002
agenzo-token-cli payment-tokens create --type x402 --api-key sk_prod_xxx --idempotency-key idem_003
# Or specify card directly (matches by last 4 digits, skips selection)
agenzo-token-cli payment-tokens create --type network-token --api-key sk_prod_xxx --card 5204731620064587 --idempotency-key idem_004
Read SKILL.md for the complete guide. Key points:
--api-key (the full sk_prod_... string)payment-tokens create auto-fetches the card list and prompts for selectionevo_data.network_token after the payment method is added| Command | Description |
|---|---|
login |
Sign in via Magic Link (auto-registers on first use) |
logout |
Sign out of current organization |
orgs me / update / list / switch |
Organization management |
developers create / list / get / update |
Developer management |
keys create / list / get / rotate / disable |
API Key management |
payment-methods add / list / get / disable |
Add payment methods with 3DS verification |
payment-tokens create / list / get / revoke |
Payment tokens (VCN / Network Token / X402) |
config set-host / reset-host / show |
API host configuration |
agenzo-token-cli orgs me # View current org
agenzo-token-cli orgs list # List all signed-in orgs
agenzo-token-cli orgs switch <org_id> # Switch active org
agenzo-token-cli orgs update --name "New Org Name" # Update org name
agenzo-token-cli orgs update --email [email protected] # Update org email (requires verification)
agenzo-token-cli developers create --developer-name "My Agent" --developer-email [email protected]
agenzo-token-cli developers list
agenzo-token-cli developers get <developer_id>
agenzo-token-cli developers update <developer_id> --name "New Name"
agenzo-token-cli developers update <developer_id> --email [email protected]
agenzo-token-cli keys create --developer-id <dev_id> --key-name "Prod Key"
agenzo-token-cli keys list --developer-id <dev_id>
agenzo-token-cli keys get <key_id>
agenzo-token-cli keys rotate <key_id> # Generate new key value (old one invalidated)
agenzo-token-cli keys disable <key_id> # Permanently disable key
# Default mode (CLI collects card details, 3DS via email)
agenzo-token-cli payment-methods add --api-key <key>
agenzo-token-cli payment-methods add --api-key <key> --email [email protected] --card-number 2223001870064586 --expiry 1226 --cvv 935
# Drop-in mode (add payment method via DropIn SDK in agent's front-end)
agenzo-token-cli payment-methods add --mode dropin --api-key <key> --email [email protected]
agenzo-token-cli payment-methods list --api-key <key>
agenzo-token-cli payment-methods get <pm_id> --api-key <key>
agenzo-token-cli payment-methods disable <pm_id> --api-key <key>
# Interactive mode (prompts for type, amount, etc.)
agenzo-token-cli payment-tokens create --api-key <key>
# Full-flag mode (for automation / AI Agents)
# --idempotency-key is required and must be supplied by the caller; the CLI prompts if omitted (it never auto-generates one).
agenzo-token-cli --yes payment-tokens create --type vcn --api-key <key> --card 2223001870064586 --amount 30 --idempotency-key idem_001
agenzo-token-cli --yes payment-tokens create --type network-token --api-key <key> --card 2223001870064586 --idempotency-key idem_002
agenzo-token-cli --yes payment-tokens create --type x402 --api-key <key> --payment-method-id <pm_id> --pay-to 0xABC... --amount 1000000 --nonce abc123 --network base_sepolia --deadline 1777457396 --idempotency-key idem_003
# Query and revoke
agenzo-token-cli payment-tokens list --api-key <key>
agenzo-token-cli payment-tokens get <ptk_id> --api-key <key>
agenzo-token-cli payment-tokens revoke <ptk_id> --api-key <key>
agenzo-token-cli config set-host http://localhost:8000 # Set API host (local dev)
agenzo-token-cli config reset-host # Reset to default
agenzo-token-cli config show # Show current config
| Plane | Commands | Auth Method |
|---|---|---|
| Control Plane | orgs, developers, keys |
Bearer Token (via login) |
| Runtime Plane | payment-methods, payment-tokens |
API Key (--api-key flag) |
├── SKILL.md # AI Agent skill definition
├── src/
│ ├── auth/ # Login/logout + AuthService
│ ├── orgs/ # Organization management
│ ├── developers/ # Developer management
│ ├── keys/ # API Key management
│ ├── payment-methods/ # Add payment methods + 3DS
│ ├── payment-tokens/ # VCN / Network Token / X402
│ ├── api/ # HTTP client
│ ├── config/ # Local config & credentials
│ ├── utils/ # Formatting, prompts, errors
│ └── types/ # TypeScript type definitions
npm install # Install dependencies
npm run dev # Dev build (watch)
npm test # Run tests
npm run build # Production build
MIT
Vaaya MCP server — pay-per-call agent superpowers: media & video generation, product demo videos, web search & scraping, deep/market research, GTM & sales enrichment, code sandboxes, browser automation, email, memory. No API keys.
curl for x402 and MPP paid APIs. CLI + MCP proxy that auto-pays any endpoint on Base, Solana, and Tempo. Zero crypto code on the buyer side.
Knowledge marketplace where AI agents autonomously buy human expertise