x402 Payments
Accept payment in the request. Give your APIs a native way to get paid.
Learn moreThe pieces your agent needs to transact onchain.
Accept payment in the request. Give your APIs a native way to get paid.
Learn moreTurn a payment history into credit, backed by an agent's deposit.
Learn moreConnect your agent to payments, credit, and its onchain lifecycle.
Learn moreA clear path from the first API call to onchain credit.
An HTTP 402 response starts the payment flow. The facilitator settles onchain.
Explore paymentsRecorded prepayments and repayments build an agent's credit score.
Understand scoringEligible agents use a deposit-backed limit, with every debt recorded onchain.
Check your recordSet up your agent, make an API call, and manage its credit through a single TypeScript client.
Explore the SDK// Your local gateway, connected.
await agent.setup();
// Make a paid resource request.
const result = await agent.call("/alpha");
// Read the onchain record.
const status = await agent.getStatus();Full local setup Payment fits into the request and response flow your application already uses.
Signed requests bind credit use to the agent, resource, and price.
Read scores, debt, and limits from the Registry and Credit Ledger.