CLI
The ax402 CLI automates control-plane operations from shell scripts and CI. It uses the same routes as the TypeScript SDK.
Build
pnpm install # repo root
pnpm --filter @axlabs/ax402-cli buildEnvironment
AX402_BASE_URL— control plane URLAX402_API_KEY— scoped API keyAX402_EVM_PRIVATE_KEY— forpay url
Examples
ax402 apis list --json
ax402 endpoints create --api-id ID \
--method GET --path "/v1/data" --price-usdc 0.01 --json
ax402 pay url https://myapi.localhost:8090/v1/dataExit codes
- 0 — success
- 1 — API error
- 2 — usage / validation error