Programmable USDC Rails for
Autonomous AI Agents & APIs
Empower AI agents to pay for compute, web scraping, and API calls programmatically via native HTTP 402 Paywalls, ERC-4337 session keys, and 10 Model Context Protocol (MCP) tools on Base L2.
Engineered for Machines, Governed by Humans
Credit cards block bot transactions. OwnPay delivers native cryptographic micro-rails that let AI software transact with sub-second finality.
Native HTTP 402 Paywalls
Eliminate complex API key billing and subscriptions. When an agent requests a protected endpoint, your server returns a standard HTTP 402 status. The agent signs and settles in under 2 seconds.
3-Tier Spending Guardrails
Never worry about runaway compute loops. Enforce hard cryptographic spending caps per API call ($0.01), per domain ($5.00), and per 24 hours ($50.00) directly via smart account policy modules.
10 MCP Server Tools
Turnkey integration with Cursor, Windsurf, Claude Desktop, and LangChain. Agents query balances, estimate gas overhead, request invoices, and execute payment intents autonomously.
How an AI Agent Pays on OwnPay
- 1 Agent requests API: Sends GET/POST request to protected endpoint without API key.
- 2 Server responds with 402: Header includes Base L2 recipient address and USDC invoice amount ($0.005).
- 3 Policy Guard Verifies & Signs: Pre-authorized session key signs the transaction if within daily spending caps.
- ✓ Instant Settlement: Funds arrive in merchant vault in ~1.8s. Data payload immediately returns to agent.
import { AgentWallet } from '@ownpay/agent-sdk';
const wallet = new AgentWallet({
network: 'base-mainnet',
dailyBudgetUsdc: 50.00,
maxPerCallUsdc: 0.25
});
// 2. Execute HTTP 402 Paywalled Fetch
const result = await wallet.fetchWithPay(
'https://api.compute-provider.com/v1/infer',
{ model: 'deepseek-r1', prompt: 'Audit transaction' }
);
console.log('Settled Tx Hash:', result.txHash);