Overview

x402 CLI is designed as a terminal-first tool for working with x402-powered APIs on Base. These commands represent the planned interface. You can preview scan behavior on the homepage scanner.

x402cli scan <url>

scan

Scan an endpoint and inspect possible HTTP 402 payment requirements.

x402cli scan https://api.x402cli.xyz/data
x402cli inspect <url>

inspect

Display x402 metadata, payment requirements, network, asset, and resource info.

x402cli inspect https://api.x402cli.xyz/data
x402cli registry

registry

Browse indexed x402-compatible APIs.

x402cli registry
x402cli mcp <api>

mcp

Preview how an API could be documented for future MCP-ready agent workflows. MCP server support is research/planned — no live MCP server is connected.

x402cli mcp "Weather API"
x402cli builder-code <api>

builder-code

Preview Builder Code attribution metadata for an indexed x402 API. ERC-8021 / settlement integration is research/planned — not live.

x402cli builder-code "Weather API"
x402cli registry export

registry export

Export registry metadata as JSON for indexed x402 APIs.

x402cli registry export
x402cli registry inspect <api-id>

registry inspect

Inspect detailed metadata for a listed x402 API.

x402cli registry inspect weather-api
x402cli demo

demo

Run a simulated x402 flow.

x402cli demo

Current status

The installable CLI package is planned. The current public version provides a web-based terminal simulation, documentation, registry preview, and schema exploration.

  • Web-based terminal simulation on x402cli.xyz
  • Public documentation and command reference
  • Public registry.json and API detail pages
  • Endpoint scanner mock with preset endpoints
  • Builder Codes research page

When the CLI is published, installation instructions will appear here and on the docs page.

Try it now

Use the interactive command preview on the homepage or run a live scan simulation:

Try Scanner