Skip to content

docs: add x402 payment tool integration#4407

Open
kmatthewsio wants to merge 1 commit intocrewAIInc:mainfrom
kmatthewsio:add-x402-payment-tool
Open

docs: add x402 payment tool integration#4407
kmatthewsio wants to merge 1 commit intocrewAIInc:mainfrom
kmatthewsio:add-x402-payment-tool

Conversation

@kmatthewsio
Copy link

@kmatthewsio kmatthewsio commented Feb 7, 2026

Summary

  • Adds documentation for crewai-x402, which enables CrewAI agents to pay for APIs using the x402 payment protocol
  • x402 implements HTTP 402 Payment Required for machine-to-machine payments in USDC
  • The package is published on PyPI and actively maintained

What is x402?

x402 is the HTTP-native payment protocol that allows software to pay software—per request, in USDC, with cryptographic proof. Instead of API keys and monthly subscriptions, agents pay only for what they use.

Package Features

  • X402Wallet: Manages USDC balances and spending budgets
  • X402PaymentTool: Automatic payment handling for CrewAI agents
  • Support for Base, Ethereum mainnet, and testnets
  • Budget controls and per-request price limits
  • Multi-agent crew support with shared wallets

Links

Test Plan

  • Verify MDX renders correctly
  • Confirm links are valid
  • Check code examples are syntactically correct

🤖 Generated with Claude Code


Note

Low Risk
Docs-only addition with no runtime code changes; primary risk is incorrect or outdated instructions/links.

Overview
Adds a new documentation page docs/en/tools/integration/x402paymenttool.mdx describing the crewai-x402 integration, including installation, required wallet/budget configuration, and how the tool handles HTTP 402 Payment Required flows.

Includes usage examples (single agent and multi-agent shared wallet), argument/reference tables, supported networks, environment variable setup, and links to external resources (PyPI/GitHub/spec/sandbox).

Written by Cursor Bugbot for commit a41be7c. This will update automatically on new commits. Configure here.

Add documentation for crewai-x402, which enables CrewAI agents to pay
for APIs using the x402 payment protocol (HTTP 402 Payment Required).

The package provides:
- X402Wallet for managing USDC balances and spending budgets
- X402PaymentTool for automatic payment handling in CrewAI agents
- Support for Base, Ethereum, and testnet networks
- Budget controls and per-request price limits

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant