EmDash glossaryx402 is an HTTP payment protocol: a server answers 402 Payment Required with payment instructions, and the client pays and retries the request.
x402 is an open payment protocol built on the HTTP status code 402 Payment Required. When a client requests a paid resource without paying, the server answers 402 with machine-readable payment instructions. A browser or AI agent that understands x402 can pay and retry the request automatically.
On an Astro or EmDash site
The @emdash-cms/x402 package adds x402 to server-rendered Astro routes. It works without EmDash; with EmDash, a content field can set the price of each entry. On Cloudflare it can also charge only traffic that Bot Management scores as automated, letting people read for free while bots pay.
Source: x402 protocol, EmDash docs: x402 payments.