{
 "kind": "tool",
 "slug": "coinbase-x402",
 "path": "tools/coinbase-x402/",
 "name": "Coinbase x402",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Crypto and web3",
   "tools/web3/"
  ]
 ],
 "lead": "Coinbase's x402 payment integration for paying APIs with stablecoins.",
 "chips": [
  {
   "label": "Crypto and web3",
   "path": "tools/web3/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @coinbase/x402"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/coinbase/x402"
  },
  {
   "label": "Website",
   "href": "https://github.com/coinbase/x402#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "Apache-2.0",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/coinbase/x402"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change today",
   "note": "",
   "src": "https://github.com/coinbase/x402"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "1 projects",
   "status": "info",
   "sub": "#67 of 153 in its category",
   "note": "Dependency in 1 public GitHub projects set up for AI coding agents that we scanned (0.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Community skills",
   "status": "info",
   "sub": "1 skills by others",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Coinbase x402 does",
   "parts": [
    {
     "t": "prose",
     "text": "Coinbase's x402 payment integration for paying APIs with stablecoins."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Coinbase x402 popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "29",
       "of": "/ 100",
       "l": "Gid Score, #3993 overall"
      },
      {
       "n": "76.5K",
       "l": "downloads a week, npm"
      },
      {
       "n": "184",
       "l": "GitHub stars"
      },
      {
       "n": "1",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Coinbase x402 is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Coinbase x402 is a dependency in 1 of the 6,256 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,782, 3D and games 3,126, agent frameworks and SDKs 13,709); counting those, it appears in 22 projects, and what it is used with below comes from all of them.",
      "Projects that use it most often also use viem (86.4%), dotenv (54.5%), Model Context Protocol SDK (JavaScript) (45.5%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 86.4% of its projects",
       "v": "viem",
       "path": "tools/viem/"
      },
      {
       "l": "In 54.5% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      },
      {
       "l": "In 45.5% of its projects",
       "v": "Model Context Protocol SDK (JavaScript)",
       "path": "tools/modelcontextprotocol/"
      },
      {
       "l": "In 45.5% of its projects",
       "v": "Express",
       "path": "tools/express/"
      },
      {
       "l": "In 36.4% of its projects",
       "v": "Coinbase CDP SDK",
       "path": "tools/coinbase-cdp-sdk/"
      },
      {
       "l": "In 31.8% of its projects",
       "v": "AI SDK",
       "path": "tools/ai/"
      },
      {
       "l": "In 31.8% of its projects",
       "v": "Solana Kit",
       "path": "tools/solana-kit/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about Coinbase x402",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "x402: x402 agentic payments (Coinbase's HTTP 402 protocol). Custody-free tools to pay x402-protected endpoints (build the EIP-3009 transferWithAut"
       ]
      },
      {
       "title": "More in Crypto and web3",
       "path": "tools/web3/",
       "items": [
        {
         "text": "viem",
         "path": "tools/viem/"
        },
        {
         "text": "ethers.js",
         "path": "tools/ethers/"
        },
        {
         "text": "Solana Web3.js",
         "path": "tools/solana-web3-js/"
        },
        {
         "text": "wagmi",
         "path": "tools/wagmi/"
        },
        {
         "text": "TweetNaCl.js",
         "path": "tools/tweetnacl/"
        },
        {
         "text": "Hardhat",
         "path": "tools/hardhat/"
        },
        {
         "text": "OpenZeppelin Contracts",
         "path": "tools/openzeppelin/"
        },
        {
         "text": "Solana SPL Token",
         "path": "tools/solana-spl-token/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Coinbase x402",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 29",
        "76.5K/wk"
       ]
      }
     ],
     "more": "Compare Coinbase x402 with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @coinbase/x402"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for Coinbase x402 yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @coinbase/x402"
  ],
  [
   "Category",
   "Crypto and web3"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Gid Score",
   "29.3"
  ],
  [
   "Rank in category",
   "#67 of 153"
  ],
  [
   "GitHub",
   "coinbase/x402"
  ],
  [
   "Last change",
   "Nov 17, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/coinbase.png"
}