# x402 — card for AI agents

HTTP 402 payment protocol for paying APIs and agents with stablecoins.

Category: Crypto and web3 · npm package `x402` · latest version 1.2.0 (checked 2026-11-01)
Install: `npm install x402`
License: Apache-2.0 (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Agent Skills for it
- x402 from internet-court/internet-court-skill: `npx skills add internet-court/internet-court-skill --skill x402`

## Numbers (AgentGid data)
- Gid Score: 48.3 (#2056 of all tools, 27 of 153 in its category)
- Used in 1 public projects set up for AI coding agents (0.0%)
- Downloads last week: 648,670 (as of 2026-11-17), +33.3% over 4 weeks
- GitHub stars: 6,814 (as of 2026-11-17)
- Last push: 2026-11-17

## Often used with
viem 88.9%, tsx 72.2%, dotenv 66.7%, Express 50.0%, TypeScript 94.4%, Coinbase x402 22.2%

## Links
- AgentGid page: https://agentgid.com/tools/x402/
- Homepage: https://github.com/x402-foundation/x402#readme
- Repository: https://github.com/x402-foundation/x402

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
