PayStabl Developer Documentation
Welcome to PayStabl — the programmable wallet infrastructure for AI agents. Enable your agents to autonomously pay for APIs, services, and even other agents using secure onchain payments and composable protocols.
🔗 Quick Links
- Quickstart Guide — Set up your agent and wallet in minutes
- MCP Server Integration — Standard tools for payment
- Demo — Demo agent implementations
💡 What is PayStabl?
PayStabl gives your AI agents a smart wallet, identity, and policies so they can autonomously:
- Pay for access to paid APIs
- Subscribe to premium services
- Send payments to other agents
- Operate in trustless environments
It's built on Coinbase Developer Platform and designed to integrate with open agent ecosystems like Claude, LangGraph, n8n, and ACP.
🚀 Core Features
x402 Protocol Support
Handles HTTP 402 Payment Required responses automatically using x402 headers and CDP wallet signatures.
Agent-to-Agent Payments
Pay other agents for services, data, or tools. Useful for marketplaces, automation chains, and AI economies.
Policy Governance
Set:
- Daily/transactional spending limits
- Approved addresses
- Session keys with expiration
- Multi-sig or approval thresholds
Security
- Gasless transactions via CDP
- Wallet-based isolation per agent
- Signature-based authentication
- Transparent transaction history
🏗️ Core Components
Framework Integrations
- MCP Server — Tools for Claude, LangGraph, and MCP clients
- LangGraph — Add
PayStablNodeto any workflow (coming soon) - n8n Integration — Use PayStabl as a no-code connector (coming soon)
- ACP-Compatible Agents — Launch monetized agents via WrapAgent (coming soon)
Payment Tools
pay_api_endpoint— Pay and access any paid APIpay_agent— Send value between registered agentsgetTransactions— See transaction history
💡 Example: Autonomous API Payment
// Agent pays for premium weather data
const response = await agent.pay_api_endpoint({
url: "https://api.weatherservice.com/premium",
agentId: "weather_agent_001"
});
// Reuse x402 payment header for API access
const data = await fetch(response.url, {
headers: { "X-Payment": response.xPaymentHeader }
});