Agent payments infrastructure

Agents
that can
spend.

Issue virtual cards to your agents. Set hard spending limits per task, per day, per model. Get per-run cost attribution and kill switches — before your overnight Claude run empties your API budget.

Get Started See how it works →
scroll
$0
Overspend with hard card limits
Per-run
Cost attribution by agent, task, model
Instant
Kill switch on any agent, any card
402
Native paywall standard for agents
The real problem

Your agents are broke.
That's a bug.

Agents that can't pay for things need a human to intervene at every paywall, API quota, and service boundary. Every interruption is latency. Every human-in-the-loop for a $0.50 charge is wasted time.

🔍
Web Search & Research

Agents running Exa searches to gather data, monitor competitors, or enrich records burn metered queries continuously. Scoped cards give each agent a search budget that hard-stops when spent.

Exa Perplexity Tavily SerpAPI
☁️
Cloud Compute

Spinning up a sandbox, running eval harnesses, scaling a Kubernetes job — dev agents burn cloud credits overnight. You need per-run attribution and hard ceilings.

AWS GCP Modal Fly.io
🔌
Third-Party APIs

Data enrichment, web scraping, email sending, domain lookups — agents consume metered APIs continuously. Scoped cards let each agent pay for exactly what it needs.

Clearbit Twilio Browserbase Firecrawl
📊
Data & Research

Paywalled datasets, academic journals, financial data feeds, market intelligence — research agents need micro-purchasing capability at the moment of retrieval.

Bloomberg Statista Crunchbase PitchBook
🎨
Creative Tool APIs

ElevenLabs for voice, Runway for video, Midjourney for images, Suno for audio — creator agents generating assets need scoped budgets tracked per project and per output.

ElevenLabs Runway Suno Replicate
📦
Procurement & Ops

Restocking inventory, booking travel, purchasing software licenses, paying for services — operations agents that can actually execute save your team from every approval loop.

Shopify Expensify Coupa Amazon Business
For teams building agents

Give agents a wallet.
Keep humans in control.

01
Issue a Card Per Agent

Each agent — or each run — gets a virtual card with a hard spending ceiling. A nightly Devin session gets $50. A Claude Code task gets $10. Nothing more, ever.

→ Scope by agent, task, or run.
02
Enforce at the Card Layer

Limits aren't soft warnings in a dashboard. They're enforced by the card network. When the envelope is spent, the card declines. No runaway spend. No 3am surprise bills.

→ Hard limits. Not suggestions.
03
Attribute Every Dollar

See cost broken down by agent, by task, by model, by API vendor. Know your unit economics per workflow run before you scale. Flag anomalies before they compound.

→ Per-run cost attribution.
Who this solves for

Real teams. Real spend problems.

Marketing Teams
Before Weekly competitor research hits paywalled sources mid-run. Agent stalls. Marketer manually pays, re-runs, loses context.
After Agent runs Exa searches on a daily schedule, pays paywalled sources automatically within a set budget, and delivers a clean report — no interruptions.
Zero
manual interventions per research run
Creator Tool Builders
Before ElevenLabs, Runway, Suno spend across 50 client projects — no way to see cost per deliverable.
After One card per project. Spend tracked per output. Tax export and per-client invoicing in one click.
Per-output
cost visibility across every tool
Agency & Dev Shops
Before AI tool costs pooled across all clients. Impossible to bill back. Margin eroded by the biggest spenders.
After Dedicated card per client matter. Automatic spend reports. White-label invoicing with full line-item detail.
Billable.
every dollar, every client
For API and data providers

Accept payments
from agents.

The HTTP 402 standard lets your API respond "Payment Required" and receive payment — automatically, from agents that have a wallet. No human checkout flow. No API key sharing. Just a paywall agents can cross.

Seller side — your API

Add a 402 paywall in minutes

Return a standard 402 response with a payment amount and address. Any agent using Storyline's payment infrastructure can pay automatically and retry. No integration with each buyer required.

01
Return 402 with payment details
Respond with the amount, currency, and your payment endpoint. Standard HTTP header format.
02
Agent pays, retries automatically
The calling agent handles payment and resends the request. No human in the loop needed.
03
Funds settle to your account
Micropayments batched and settled daily. Dashboard shows which agents are paying and what they're consuming.
your-api-endpoint.ts
// Return 402 when payment is required
if (!hasValidPayment(req)) {
  return res.status(402).json({
    error: "Payment Required",
    amount: 0.05,
    currency: "USD",
    payment_url: "https://pay.storylinedirector.com/..."
  });
}
Buyer side — your agents

Agents that handle 402s automatically

Agents built with Storyline Director's payment SDK intercept 402 responses, authorize payment against their scoped card, and retry — within the spending envelope you defined. Zero human intervention.

01
Agent hits a paywall
The 402 response is intercepted by the SDK. Payment amount checked against remaining card budget.
02
Within budget: pay and continue
Payment authorized automatically. Request retried. Spend logged to the agent's attribution ledger.
03
Over budget: pause and escalate
If payment would exceed the card ceiling, execution pauses. Human notified. No surprise charges.
Agent requests resource
API returns 402
Check card budget
↓ within limit
Pay & retry
✓ Continue
↓ over limit
Pause execution
Notify human
Spend controls

Limits enforced at the card layer.

Not dashboard warnings. Not soft alerts. Hard limits enforced by the card network — the same infrastructure banks use.

Per-Task
Task-scoped budgets

Issue a card for a single workflow run. When the task completes or the budget exhausts, the card expires. Nothing left to charge against.

Per-Day
Daily spending ceilings

Set a maximum daily spend per agent. Resets at midnight. Prevents runaway loops from doing compounding overnight damage.

Per-Vendor
Merchant-category locks

Restrict a card to a specific vendor or merchant category. A code agent's card can only charge API providers — not travel, not retail.

Kill Switch
Instant card termination

One API call kills any card immediately. Integrates with your alerting: anomalous spend triggers auto-cancel before the next transaction clears.

Attribution
Per-run cost attribution

Every charge tagged to agent ID, run ID, task type, and vendor. Know your unit economics before you scale. Export to CSV or push to your data warehouse.

Alerts
Anomaly detection

Flag when an agent spends 2× its baseline, charges an unexpected vendor, or exceeds hourly thresholds. Slack webhook, email, or API callback.