x402-buyer

command
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

x402-buyer is a lean sidecar that handles x402 payments using pre-signed ERC-3009 TransferWithAuthorization vouchers. It runs as an OpenAI-compatible reverse proxy in the llm namespace, alongside LiteLLM.

LiteLLM sees the sidecar as a plain OpenAI provider. The sidecar intercepts 402 responses from upstream sellers, attaches pre-signed payment headers, and retries. It has zero signer access — spending is bounded by the number of pre-signed authorizations in the pool.

Usage:

x402-buyer --config /config/config.json --auths /config/auths.json --listen :8402

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL