SpendPreflightdocs
Guides / developer guide

Framework integration guides

Use tools for explanations and a guard for payment authority.

Operator-maintained documentation
Live features and staging previews are distinguished. Index coverage is not yet available.

Vercel AI SDK

Prepare a tool with the merchant challenge and explicit rules as input. Inject a separately bounded screeningFetch into the operator-maintained tool factory. Preserve decision, reasons and receipt. Stop execution on non-2xx/malformed responses; only the payment client may act on an allow. The tested SDK example is published in the SDK repository for release 0.2.0.

LangChain JS

Use the check_payee tool factory with wallet/name/domain inputs and the $0.01 screening fee. It screens a payee and does not authorize a payment. A standalone integration package is the current upstream contribution path; no new community-tools PR or package is claimed.

OpenAI Agents

The published SDK example uses the actual function-tool interface, rejects invalid inputs and propagates HTTP/schema failures. Import the operator-maintained factory, inject the screening transport and keep all signing outside the model tool. No upstream example PR is claimed.

GOAT and AgentKit

The GOAT plugin is prepared locally with check_payee/preflight_payment and operator disclosure; it has not been submitted. The AgentKit provider is awaiting review in coinbase/agentkit PR #1545. Neither status means a merged/released integration. Budget the separate screening fee explicitly and enforce holds/blocks before merchant payment.

Python frameworks

LangChain Python and CrewAI examples ship with the prepared Python package. They are local-only advisory wrappers with no model/network spend. Add them to your framework's tools list and wire Guard into the actual async x402 client separately.