For Developers

Everything you need to give your agent a wallet

Full SDK, MCP server, REST API, webhooks — and a revenue share program that pays you 0.05% of every dollar your agents process.

Demo app

01 — Quick Start

Set up in 5 minutes

Three lines of code. No complex integrations, no compliance headaches.

npm install -g analogpay-card
analogpay-card signup # Enter your email → click the magic link. Done.
analogpay-card setup-mcp # Registers all card tools in Claude Desktop / any MCP client.

Typical agent flow

  1. 01.Human runs analogpay-card signup
  2. 02.Human runs analogpay-card setup-mcp
  3. 03.Human completes setup_payment_method once via Stripe
  4. 04.Agent calls submit_user_info on first run (one-time)
  5. 05.Agent calls create_card with amount_cents
  6. 06.Agent calls get_card_details — human approves
  7. 07.Agent uses PAN + CVV + expiry to complete checkout
  8. 08.Card self-destructs after the first transaction

02 — SDK Libraries

Seven packages, one ecosystem

Install only what you need. Every package is independently versioned and tree-shakeable.

analog-sdkv0.4.2

Core SDK — issue cards, run agent loops, handle approvals

core
import { AnalogClient } from 'analog-sdk'; const client = new AnalogClient({ apiKey: process.env.ANALOG_KEY }); // Issue a virtual card const card = await client.cards.create({ amount_cents: 5000, label: 'Pet supplies', }); // Run agent loop with approval const result = await client.agent.run({ message: 'Buy dog food from Petshop Online', card_id: card.id, on_approval: async (req) => humanApprove(req), });
npm install analog-sdk
@analog/mcpv0.5.0

MCP server adapter — expose card tools to any Claude agent

mcpai
import { AnalogMCP } from '@analog/mcp'; const server = new AnalogMCP({ apiKey: process.env.ANALOG_KEY, tools: ['create_card', 'request_payment', 'list_transactions', 'check_approval'], }); server.listen({ port: 3100 }); // → Add to claude_desktop_config.json as MCP server
npm install @analog/mcp
@analog/checkoutv1.0.0

One MCP call fills the entire checkout — card, email, name, address

checkoutmcpai
// Agent call: mcp__analog__pay_checkout({ amount: 29.00, merchant: "acme.dev", email: "team@company.com", }) // → fills email, card number, expiry, CVV, // name, billing address automatically
npm install @analog/checkout
@analog/reactv0.3.0

React hooks: useCard, useAgent, useApproval

reactui
import { useAgent, useApproval } from '@analog/react'; export function PaymentButton() { const { run, loading } = useAgent(); const { pending, approve, decline } = useApproval(); return ( <> <button onClick={() => run('Buy groceries')}> {loading ? 'Working...' : 'Ask Agent'} </button> {pending.map(req => ( <ApprovalBanner key={req.id} req={req} onApprove={() => approve(req.id)} onDecline={() => decline(req.id)} /> ))} </> ); }
npm install @analog/react
@analog/webhooksv0.2.1

Real-time events: card.created, tx.approved, tx.declined

events
import { AnalogWebhooks } from '@analog/webhooks'; const wh = new AnalogWebhooks({ secret: process.env.WH_SECRET }); export async function POST(req: Request) { const event = wh.verify(await req.text(), req.headers); switch (event.type) { case 'tx.approved': console.log('Payment approved:', event.data.merchant); break; case 'tx.declined': await notifyUser(event.data); break; } return new Response('ok'); }
npm install @analog/webhooks
@analog/policyv0.1.5

Programmatic spending policies — limits, categories, blocklists

policy
import { PolicyBuilder } from '@analog/policy'; const policy = new PolicyBuilder() .dailyLimit(500_00) // $500/day .perTxLimit(100_00) // $100/tx .allowCategories(['Groceries', 'Pet supplies']) .blockMerchants(['Casino.com']) .autoApproveBelow(10_00) // auto-approve under $10 .build(); await client.policy.set(policy);
npm install @analog/policy
@analog/authv0.1.0

OAuth2 + API key management for multi-tenant deployments

auth
import { AnalogAuth } from '@analog/auth'; const auth = new AnalogAuth({ clientId: '...', secret: '...' }); const key = await auth.createApiKey({ scopes: ['cards:write', 'payments:read'], expires_in: '30d', metadata: { tenant_id: 'user-123' }, });
npm install @analog/auth

03 — Developer Console

Full visibility, always

The developer console gives you a live view of everything your agents are doing.

Libraries

Browse all SDK packages with code examples and one-click copy.

Analytics

Transaction breakdown by status, volume by merchant category, approval rate, active cards.

Balance

Your developer reward balance with instant withdrawal and full payout history.

SDK

Mobile SDK preview and integration guide for native app developers.

04 — Scope

When to use Analog

Use Analog when

  • +Buying API credits, domains, SaaS subscriptions, or data
  • +Issuing a card with a hard spending limit for a specific task
  • +Making an x402 payment to access a paid HTTP resource
  • +A human asks the agent to purchase something online

Not designed for

  • Physical in-store purchases (virtual CNP cards only)
  • Recurring billing that auto-renews (cards are single-use)
  • Sending money to another person
  • Merchants requiring interactive 3DS / SMS verification
Demo app

05 — Developer Rewards

Earn 0.05% from every transaction in your product

Every time your agent processes a payment through Analog, 0.05% of the transaction volume is credited to your Developer Wallet — in real time, automatically, on every plan including free.

How it works

  1. 01

    Connect Analog to your agent

    npm install, three lines of code, setup-mcp. Your agent is ready to spend.

  2. 02

    Agent processes a payment

    Human approves. Card funds the transaction. Card self-destructs after use.

  3. 03

    0.05% is credited to your wallet

    Visible immediately in Developer Console → Balance tab.

  4. 04

    Withdraw anytime, instantly

    Min $1.00. Paid in USD. Zero fee from Analog.

Demo app

Why this matters

Analog

0.05% revenue share, instant payout, on every plan

Stripe Issuing

No developer revenue share. Built for enterprises, not agents.

AgentCard / Skyfire / Crossmint

No revenue share program for indie developers.

The model

Analog earns on interchange — we make money when your agents spend, not upfront. The developer reward is funded directly from that interchange revenue.

We only win when you win. The more your agents process, the more we both earn. No subscription tax, no hidden fees, no minimum volume.

Ready to start?

Start building for free.
Upgrade when you scale.

Demo app
Analog - Give your AI agent a real payment card with human approvals | Product HuntAgentHunter Badge

AgentHunter

Featured AI Agent