Skip to main content
ClaudeWave
ihen404 avatar
ihen404

langchain-x402

View on GitHub
SubagentsOfficial Registry0 stars0 forksJavaScriptUpdated today
ClaudeWave Trust Score
52/100
· OK
Passed
  • Actively maintained (<30d)
  • Documented (README)
Flags
  • !No standard license detected
  • !No description
Last scanned: 9/19/2026
Install as a Claude Code subagent
Method: Clone
Terminal
git clone https://github.com/ihen404/langchain-x402 && cp langchain-x402/*.md ~/.claude/agents/
1. Clone the repository and copy the agent .md definitions into ~/.claude/agents (or .claude/agents inside a project).
2. Start a new Claude Code session to load the agents.
3. Delegate work to them with the Task/Agent tool or by name.
Use cases

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.

Featured on ClaudeWave: ihen404/langchain-x402
[![Featured on ClaudeWave](https://claudewave.com/api/badge/ihen404-langchain-x402)](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

langchain-x402 alternatives