- ✓Actively maintained (<30d)
- ✓Documented (README)
- !No standard license detected
- !No description
git clone https://github.com/ihen404/langchain-x402 && cp langchain-x402/*.md ~/.claude/agents/Subagents overview
## 🌐 Social & Ecosystem Showcase
> **Autonomous HTTP 402 Web Scraping Mesh on Base**
> Enables AI agents to pay $0.02 USDC per request for clean, LLM-ready markdown using machine-to-machine micro-settlements.
### ⚡ Quick Links
* **NPM Package:** [`@ihentrel/x402-express`](https://www.npmjs.com/package/@ihentrel/x402-express)
* **Agent Discovery (MCP):** `https://your-domain.com/mcp.json`
* **OpenAPI Specs:** `https://your-domain.com/openapi.json`
### 📢 Share & Connect
Building with autonomous agents or `@base`? Tag us on X/socials when integrating:
- **X (Twitter):** Mention `@base` and `@CoinbaseDev` with `#BuildOnBase #AI #x402`
- **Supported Frameworks:** LangChain, AutoGen, CrewAI, and MCP-compatible clients.
# ihen404-x402-langchain
LangChain integration tool for **HTTP 402 Paywalled Web Scraping** powered by Base USDC micro-payments.
Designed specifically for **Autonomous AI Agents**, trading bots, and market research agents that require programmatic, pay-per-request web access without credit cards or monthly API subscriptions.
---
## Features
- **Native LangChain Tool Integration:** Drop-in `X402WebScraperTool` for LangChain, LangGraph, and CrewAI agents.
- **Automated HTTP 402 Settlement:** Automatically handles $0.005 Base USDC micro-payment challenges via `X-Payment` headers.
- **Zero Friction for AI Agents:** Autonomous agents sign and settle transactions directly on Base L2 in milliseconds.
---
## Installation
```bash
pip install ihen404-x402-langchain
```
---
## Quickstart
```python
import os
from langchain_x402 import X402WebScraperTool
from langchain.agents import initialize_agent, AgentType
from langchain_openai import ChatOpenAI
# Initialize the 402-capable web scraper tool
scraper_tool = X402WebScraperTool(
wallet_private_key=os.getenv("BASE_WALLET_PRIVATE_KEY"),
rpc_url="[https://mainnet.base.org](https://mainnet.base.org)",
max_price_per_scrape="0.005" # Max USDC spend per request
)
llm = ChatOpenAI(model="gpt-4o", temperature=0)
agent = initialize_agent(
tools=[scraper_tool],
llm=llm,
agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
verbose=True
)
# Agent autonomously handles HTTP 402 payment challenge if paywalled
response = agent.run("Fetch data from [https://api.x402service.com/scrape?url=https://example.com](https://api.x402service.com/scrape?url=https://example.com)")
print(response)
```
---
## Pricing Structure
| Action | Cost | Settlement Network |
| :--- | :--- | :--- |
| Standard Web Scrape | **$0.005 USDC** | Base (L2) |
| Failed Request | **$0.000 USDC** | N/A |
---
## License
MIT License. Developed by [@ihen404](https://github.com/ihen404).
## 🌐 Social & Ecosystem Showcase
> **Autonomous HTTP 402 Web Scraping Mesh on Base**
> Enables AI agents to pay $0.02 USDC per request for clean, LLM-ready markdown using machine-to-machine micro-settlements.
### ⚡ Quick Links
* **NPM Package:** [`@ihentrel/x402-express`](https://www.npmjs.com/package/@ihentrel/x402-express)
* **Agent Discovery (MCP):** `https://your-domain.com/mcp.json`
* **OpenAPI Specs:** `https://your-domain.com/openapi.json`
### 📢 Share & Connect
Building with autonomous agents or `@base`? Tag us on X/socials when integrating:
- **X (Twitter):** Mention `@base` and `@CoinbaseDev` with `#BuildOnBase #AI #x402`
- **Supported Frameworks:** LangChain, AutoGen, CrewAI, and MCP-compatible clients.
What people ask about langchain-x402
What is ihen404/langchain-x402?
+
ihen404/langchain-x402 is subagents for the Claude AI ecosystem with 0 GitHub stars.
How do I install langchain-x402?
+
You can install langchain-x402 by cloning the repository (https://github.com/ihen404/langchain-x402) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is ihen404/langchain-x402 safe to use?
+
Our security agent has analyzed ihen404/langchain-x402 and assigned a Trust Score of 52/100 (tier: OK). See the full breakdown of passed checks and flags on this page.
Who maintains ihen404/langchain-x402?
+
ihen404/langchain-x402 is maintained by ihen404. The last recorded GitHub activity is dated 2026-09-18, with 0 open issues.
Are there alternatives to langchain-x402?
+
Yes. On ClaudeWave you can browse similar subagents at /categories/agents, sorted by popularity or recent activity.
Deploy langchain-x402 to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/ihen404-langchain-x402)<a href="https://claudewave.com/repo/ihen404-langchain-x402"><img src="https://claudewave.com/api/badge/ihen404-langchain-x402" alt="Featured on ClaudeWave: ihen404/langchain-x402" width="320" height="64" /></a>More Subagents
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
The agent that grows with you
Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
The agent engineering platform.
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.