Skip to main content

⚡ Multi-Chain & Solana x402 Autonomous AI Agent Suite & Spend Firewall (v2.8.3)

"High-Throughput Clean Web Markdown, YouTube Intelligence & Cryptographic Web3 Oracles for Autonomous AI Agents & Swarms."
Zero credit cards required. Pure B2A (Business-to-Agent) USDC micropayments & pre-funded vaults on Solana, Polygon, Base, and Arbitrum with Solscan Verified IDLs & EIP-712 spend policy attestations.

Version PyPI npm agentkit npm eliza Tests MCP Multi-Chain License: MIT


📦 Official Multi-Registry Ecosystem Suite (PyPI ↔ npm)

CleanWeb is distributed natively across both Python (PyPI) and TypeScript/Node.js (npm) registries. Install the companion package for your stack—or combine the Python MCP/Oracle Core with TypeScript agent frameworks:

Registry Package Name Target Ecosystem 1-Line Install Command
PyPI x402-cleanweb-agent Python Core, FastAPI Oracle, Claude/Cursor MCP Server & Dual-Core Eliza Brain pip install x402-cleanweb-agent (or uvx x402-cleanweb-agent)
npm agentkit-cleanweb Coinbase AgentKit Action Provider (Base Mainnet EIP-712 & x402 Vaults) npm install agentkit-cleanweb @coinbase/agentkit
npm cleanweb-eliza-plugin ElizaOS v2 Plugin (Solana x402 Micropayments & A.GRID Priority 0 Feed) npm install cleanweb-eliza-plugin

💡 Full-Stack Hybrid Pattern (Recommended): Run pip install x402-cleanweb-agent on your backend/MCP host for local Dual-Core Security Gate + Eliza Brain scrubbing, and connect your TypeScript agents via npm install agentkit-cleanweb or npm install cleanweb-eliza-plugin.


🌐 Live Production Gateway & Endpoints


🤖 1-Minute Framework Integration (Coinbase AgentKit, ElizaOS, LangChain & CrewAI)

Equip your autonomous agents across TypeScript (npm) and Python (PyPI) in under 1 minute:

// TypeScript: Official Coinbase AgentKit Action Provider (npm: agentkit-cleanweb)
import { cleanWebActionProvider } from "agentkit-cleanweb";

const cleanWeb = cleanWebActionProvider({ vaultKey: process.env.AGENT_VAULT_KEY });
// TypeScript: Official ElizaOS v2 Plugin (npm: cleanweb-eliza-plugin)
import { cleanWebPlugin } from "cleanweb-eliza-plugin";

export default { name: "AlphaScoutAgent", plugins: [cleanWebPlugin] };
# Python: ElizaOS / Dual-Core Gate-Brain Bridge (PyPI: x402-cleanweb-agent)
from app.integrated_gate_brain_bridge import IntegratedGateBrainBridge

bridge = IntegratedGateBrainBridge(require_x402_payment=False)
res = bridge.execute_pipeline("https://paulgraham.com/greatwork.html", "https://paulgraham.com")
# Python: LangChain & CrewAI Agent Tools
from examples.langchain_agent_example import clean_web_tool
from examples.crewai_agent_example import clean_web_for_crewai

result = clean_web_tool.invoke({"url": "https://paulgraham.com/greatwork.html"})

⚡ 10-Second Instant Test (Zero Auth / 3 Free Calls Included)

No wallet, credit card, or API key needed. Attach an X-Agent-Nonce header to test immediately:

# Instant JSON Request via curl
curl -X POST "https://x402-cleanweb-agent-7qxtp3324q-du.a.run.app/api/v1/clean-web" \
     -H "Content-Type: application/json" \
     -H "X-Agent-Nonce: instant-trial-uuid-001" \
     -d '{"url": "https://news.ycombinator.com"}'
# Zero-dependency Python snippet
import urllib.request, json

req = urllib.request.Request(
    "https://x402-cleanweb-agent-7qxtp3324q-du.a.run.app/api/v1/clean-web",
    data=json.dumps({"url": "https://news.ycombinator.com"}).encode(),
    headers={"Content-Type": "application/json", "X-Agent-Nonce": "instant-trial-01"}
)
res = json.loads(urllib.request.urlopen(req).read())
print(f"Tokens Saved: {res.get('estimated_token_savings', '87%')}")
print("Clean Markdown Preview:\n", res["clean_markdown"][:300])

💡 Mathematical Token Arbitrage Proof (Economic Rationality)

Autonomous agents route web traffic through x402 because it mathematically saves the operator money on every query:

  • Direct Scraping Cost: 80KB HTML ≈ 20,000 tokens ($0.05 USD input cost on GPT-4o / Claude 3.5 Sonnet).
  • x402 CleanWeb Cost: $0.001 API fee + 2,600 clean tokens ($0.0065 USD) = $0.0075 USD Total.
  • Net Savings: $0.0425 USD saved per web query (85% net dollar reduction).
  • Service Fee ROI: 4,250% ROI on the $0.001 fee.
  • Live Arbitrage Endpoint: GET /api/v1/agent/arbitrage-roi?input_tokens=50000
{
  "status": "economically_optimal",
  "routing_recommendation": "ROUTE_VIA_X402",
  "financial_analysis": {
    "cost_raw_direct_usd": 0.125,
    "cost_with_x402_usd": 0.01725,
    "net_dollar_savings": 0.10775,
    "net_savings_percentage": "86.2%",
    "service_fee_roi_percentage": "10775.0%"
  }
}

🔮 14 Production Agent Tools & Micro-Pricing (USDC)

Tool Name Endpoint / Function Cost (USDC) What It Does
🌐 Clean Web GET/POST /api/v1/clean-web 0.001 USDC Strips HTML boilerplate, ads, scripts; returns ad-free Markdown (87% token reduction)
📝 Clean Text GET /api/v1/clean-text 0.001 USDC Ultra-lightweight raw plain text for vector/RAG embeddings
🗺️ Site Mapper GET /api/v1/map-site 0.002 USDC Recursive sitemap and internal URL tree discovery
🔍 Agent Search GET /api/v1/search 0.002 USDC Fast real-time keyword search & verified snippets (Tavily engine)
📑 PDF Extractor GET /api/v1/clean-pdf 0.005 USDC Formula- and table-preserved academic paper & research PDF extractor
📦 Batch Clean POST /api/v1/batch-clean 0.005 USDC Concurrent parallel scraping for up to 10 URLs in a single request
🎬 YouTube AI GET /api/v1/clean-youtube 0.010 USDC Gemini 3.8 Flash multimodal video intelligence & timestamped audio transcript
📊 Extract JSON POST /api/v1/extract-json 0.030 USDC Converts arbitrary web content into strict schema-constrained JSON
🔮 Web3 Oracle POST /api/v1/oracle/grounding 0.035 USDC Live Search + Clean-to-JSON + EIP-712 Cryptographic On-Chain Attestation
🛡️ Oracle Verify POST /api/v1/oracle/verify 0.000 USDC Verifies ECDSA signature of CleanWeb Oracle attestations on-chain
🧠 Deep Research GET /api/v1/deep-research 0.150 USDC Multi-source synthesized AI executive research briefing
💼 Vault Deposit POST /api/v1/vault/deposit 0.000 USDC Multi-chain USDC vault prefunding for sub-5ms gasless executions
💳 Vault Balance GET /api/v1/vault/balance 0.000 USDC Real-time query of credit pass balance and validity
🎫 Pass Status GET /api/v1/pass-status 0.000 USDC Inspects status and remaining credits of a prepaid pass

💻 1-Click MCP Setup (Claude Desktop, Cursor, Windsurf)

Connect CleanWeb directly to Claude Desktop, Cursor, or any Model Context Protocol client using uvx:

{
  "mcpServers": {
    "polygon-x402-cleanweb": {
      "command": "uvx",
      "args": ["x402-cleanweb-agent"]
    }
  }
}

Or configure via local clone:

{
  "mcpServers": {
    "polygon-x402-cleanweb": {
      "command": "python",
      "args": ["-u", "mcp_server.py"],
      "env": {
        "POLYGON_RPC_URL": "https://polygon-bor-rpc.publicnode.com",
        "SERVER_WALLET_ADDRESS": "0xA185B43fDD19619f99952AAed6eabf1029bF36a1",
        "USDC_CONTRACT_ADDRESS": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"
      }
    }
  }
}

🤖 Multi-Agent Framework Integrations

Drop-in ready integrations for every major autonomous agent framework via GET /api/v1/agent/integrations/{framework}:

🦜 LangChain / LangGraph

from langchain.tools import tool
import requests

@tool
def clean_web(url: str) -> str:
    """Fetches a URL and returns ad-free, token-optimized Markdown (87% token savings)."""
    res = requests.get(
        "https://x402-cleanweb-agent-7qxtp3324q-du.a.run.app/api/v1/clean-web",
        params={"url": url},
        headers={"X-Agent-Nonce": "langchain-agent-session"}
    )
    return res.json().get("clean_markdown", "")

👥 CrewAI

from crewai.tools import tool
import requests

@tool("CleanWeb Tool")
def clean_web(url: str) -> str:
    """Strips HTML boilerplate and returns pure Markdown to save LLM context window."""
    res = requests.post(
        "https://x402-cleanweb-agent-7qxtp3324q-du.a.run.app/api/v1/clean-web",
        json={"url": url},
        headers={"X-Agent-Nonce": "crewai-agent-session"}
    )
    return res.json().get("clean_markdown", "")

🤖 Microsoft AutoGen

import requests

def clean_web_tool(url: str) -> str:
    res = requests.get(
        "https://x402-cleanweb-agent-7qxtp3324q-du.a.run.app/api/v1/clean-web",
        params={"url": url},
        headers={"X-Agent-Nonce": "autogen-session"}
    )
    return res.json().get("clean_markdown", "")

# assistant.register_for_llm(name="clean_web", description="Clean web markdown")(clean_web_tool)

🏛️ Verified On-Chain Smart Contracts & Accounts (Polygon, Base, Arbitrum, Solana)

CleanWeb operates verified, deterministic smart contracts and native settlement accounts for on-chain EIP-712 oracle verification, autonomous agent pre-funded vault management, and Solana SPL USDC micropayments.

Contract / Account Polygon Mainnet (137) ✔ Base Mainnet (8453) ✔ Arbitrum One (42161) ✔ Solana Mainnet-Beta (101) ✔
AgentPaymentVault 0x45ecBf...1861 0x28292D...76DD 0x28292D...76DD 7oZ16Y...Wi3y (Solscan)
CleanWebOracleConsumer 0xAECbfB...6D66 0x2394d8...dabe 0x2394d8...dabe 21ZR1Q...bkTL (Solscan)
CleanWebOracleVerifier 0x18fA45...Dc46 0x3eD259...0740 0x3eD259...0740 9nVrym...iopC (Solscan)
Treasury Recipient Wallet 0xA185B4...36a1 0xA185B4...36a1 0xA185B4...36a1 411ksM...9qp (Solscan)
Native USDC Token Tracker 0x3c499c...3359 0x833589...2913 0xaf88d0...5831 EPjFWd...YTDt1v (Solscan)

🧪 Production Readiness Review: 84/84 Tests Passed (100%)

Verified across all 38+ FastAPI routes, 14 agent tools, Dual-Core Gate-Brain cognitive pipeline, multi-chain settlement vaults, and EIP-712 attestations:

python -m pytest tests/ -v

CleanWeb Studio operates strictly under the Transformative Non-Expressive Text/Data Mining (TDM) Fair Use doctrine for autonomous AI reasoning.

  1. No Financial or Investment Warranty: All oracle feeds, search results, and scraped contents are provided AS-IS. CleanWeb Studio assumes zero liability for DeFi smart contract liquidations, prediction market settlements (e.g. Polymarket), or trading losses resulting from external web misreporting or LLM hallucinations.
  2. Caller Responsibility: The autonomous agent deployer/caller is solely responsible for respecting target website intellectual property and applicable laws.
  3. Zero-Data Retention (GDPR Compliant): All fetched HTML and raw assets are processed ephemerally in RAM and purged immediately upon response transmission.
  4. 100% OFAC Sanctions Filtering: All micropayment addresses are verified against OFAC Specially Designated Nationals (SDN) lists.
  5. Full Legal Endpoints:
    • GET /api/v1/legal/terms: Official Machine-to-Machine Terms of Service
    • GET /api/v1/legal/disclaimer: Full Legal & Financial Disclaimer

📜 License

Distributed under the MIT License. See LICENSE for more information.

Metadata

Release files for x402-cleanweb-agent 2.8.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for x402-cleanweb-agent 2.8.3
File Size Uploaded Provenance Actions
x402_cleanweb_agent-2.8.3.tar.gz 168.4 kB Without provenance Details for x402_cleanweb_agent-2.8.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for x402-cleanweb-agent 2.8.3
File Interpreter ABI Platform Actions
x402_cleanweb_agent-2.8.3-py3-none-any.whl Python 3 none any Details for x402_cleanweb_agent-2.8.3-py3-none-any.whl

Total release size: 315.3 kB

Release files / x402_cleanweb_agent-2.8.3.tar.gz

Download URL x402_cleanweb_agent-2.8.3.tar.gz
Size 168.4 kB
Tags Source
SHA-256 checksum
How to use checksums
37bacc592cfad28e4bb2a70d5641b080491a1f2ffa0b2536ba2d92dd0be36cad
BLAKE2b-256 checksum
How to use checksums
bf98a1d64867b3d58f2be53862f25f0900336f841cc8edc92200b9a2473497e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / x402_cleanweb_agent-2.8.3-py3-none-any.whl

Download URL x402_cleanweb_agent-2.8.3-py3-none-any.whl
Size 146.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94ff82bad8f7dccc6de11d5d596a2325d77790d01732a81d8a4afafbbbc1b475
BLAKE2b-256 checksum
How to use checksums
13ea50a54a12e67016eaa7a75fc420e64e9f47413140f561f043aae40359a399
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for x402-cleanweb-agent 2.8.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page