[PR #2537] docs: add x402 payment tool integration #2528

Open
opened 2026-02-17 17:23:30 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/2537
Author: @kmatthewsio
Created: 2/7/2026
Status: 🔄 Open

Base: mainHead: add-x402-integration


📝 Commits (1)

  • f7f1f0b docs: add x402 payment tool integration

📊 Changes

1 file changed (+133 additions, -0 deletions)

View changed files

src/oss/python/integrations/tools/x402.mdx (+133 -0)

📄 Description

Summary

  • Adds documentation for langchain-x402, which enables AI 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 LangChain agents
  • Support for Base, Ethereum mainnet, and testnets
  • Budget controls and per-request price limits

Links

Test plan

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

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/2537 **Author:** [@kmatthewsio](https://github.com/kmatthewsio) **Created:** 2/7/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `add-x402-integration` --- ### 📝 Commits (1) - [`f7f1f0b`](https://github.com/langchain-ai/docs/commit/f7f1f0b12f8e75f8483880be62ff11d375f5c697) docs: add x402 payment tool integration ### 📊 Changes **1 file changed** (+133 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `src/oss/python/integrations/tools/x402.mdx` (+133 -0) </details> ### 📄 Description ## Summary - Adds documentation for [langchain-x402](https://pypi.org/project/langchain-x402/), which enables AI 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](https://x402.org) 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 LangChain agents - Support for Base, Ethereum mainnet, and testnets - Budget controls and per-request price limits ## Links - PyPI: https://pypi.org/project/langchain-x402/ - GitHub: https://github.com/kmatthewsio/langchain-x402 - Protocol spec: https://x402.org ## Test plan - [ ] Verify MDX renders correctly in Mintlify - [ ] Confirm links are valid - [ ] Check code examples are syntactically correct --- 🤖 Generated with [Claude Code](https://claude.ai/code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-17 17:23:30 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#2528