worldliberty/agentpay-sdk
An open SDK for agentic payments. Let AI agents make payments, hold funds, and move money across chains with policy enforcement and human approval built in.
What it solves
AI agents often need to buy things, but payment systems typically require human involvement. AgentPay SDK gives agents two payment paths: fiat payments through Stripe Link, where the user approves each purchase in the Link app, and crypto payments via a self-custodial local wallet, where the agent can construct and sign blockchain transactions. The SDK handles onboarding, approvals, policies, and transfers through a single command-line tool.
How it works
The main entrypoint is the agentpay CLI. For fiat, it uses agentpay link onboard to bind a Link account, and agentpay link card to create a one-time card after the user approves the spend request in the Link app. For crypto, a managed daemon is set up via agentpay admin setup, which creates a local wallet and a root-managed background service (using launchd on macOS or systemd on Linux). The daemon handles signing and broadcasting transactions. The CLI also supports policy configuration, manual approvals, wallet backup and restore, and integration with AI agent environments through skill packs and adapters.
Who it’s for
Developers building AI agents that need to handle payments, and operators who want to give their agents controlled spending. The installer can automatically integrate with AI agent tools like Codex, Claude, Cline, Goose, Windsurf, OpenClaw, and others, by installing skill packs and workspace adapters.
Highlights
- Dual payment paths: fiat via Stripe Link and self-custodial crypto via a local wallet.
- User approval for fiat purchases: each spend request is approved in the Link app before a one-time card is issued.
- Self-custodial crypto: the agent's wallet is controlled locally, with the daemon handling transaction signing and broadcasting.
- Single CLI for all management: onboarding, wallet setup, transfers, approvals, policies, and status checks.
- One-click installer that sets up the SDK and integrates with various AI agent environments.
- Policy layers: default limits, per-destination overrides, and manual-approval overlays.
- Offline wallet backup and restore for safe recovery.
- Security checks: installer verifies SHA-256 sums, and the CLI has a
statuscommand for auditing security posture.
Related
- Project
- Project
- Project
- Project