apay_request
Probe and automatically pay HTTP 402 crypto micropayments on Base Layer 2 with USDC or $APAY within pre-configured budget limits.
url必填methodheadersjson_body
io.github.neuralaisofficial-lang由 GitHub 账号 neuralaisofficial-lang 发布v0.1.8更新于 Oct 24, 2026
Universal HTTP 402 Micropayment Protocol & Autonomous Economic Settlement Engine for AI Agents
为 AI 助手提供非托管加密钱包,在预算上限内探测并自动支付 Base L2 上的 HTTP 402 小额付款。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.neuralaisofficial-lang%2Fapay/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"a-pay-protocol": {
"type": "http",
"url": "https://apay-network.vercel.app/api/mcp"
}
}
}The Universal Micropayment & Economic Layer for Autonomous AI Agents
[Python 3.11+] [Status] [Tests] [Live Console]
8453):
0x8dd4ff9035c7d4e0bef30aa64fc30d128a4066c3 (100M Cap, Base L2)vAMM-WETH/APAY (0x6933...7777)84532):
0x71434344beEF9C44fF3BC95572bEB7bFB8847ec6 (1.0% Protocol Fee)0xD08c8A337E5339d1c083E06d74A9265956ceEA16 (Cumulative Channels & Merkle Claims)0x3E35a9E802627a3D9A86D6554e72b1C446E34aAF (Sub-Agent Delegated Spending)0xD2f3F4D97f4a3fdC9d4eEDfB9747BF9D80CF6225 (Anti-Spam Staking & Slashing Engine)A-Pay is an ultra-lightweight, zero-latency, open economic rail designed for the machine-to-machine (M2M) economy. Just as UPI revolutionized human digital payments in India, A-Pay enables autonomous AI software agents to discover, consume, and pay for data, compute, APIs, and micro-services on the fly—without credit cards, human KYC, or seed phrase friction.
Scaffold a fullstack monetized AI Agent app (Next.js, FastAPI, or Express) in 60 seconds:
Or protect ANY existing website or API with an instant HTTP 402 crypto paywall proxy—zero code modifications required:
Give your AI agent an in-memory wallet and strict spending guardrails with 2 lines of code:
Equip Claude Desktop, Cursor, Antigravity, or Cline with an autonomous A-Pay micro-wallet in 1 click via Smithery.ai:
Or add directly to claude_desktop_config.json or .cursor/mcp.json (zero-setup via uvx):
Now your assistant can autonomously inspect balances, probe paywalls, and settle HTTP 402 micropayments on Base L2!
A-Pay is an open-source decentralized economic protocol for autonomous machine agents. Built on Base L2.
来源:README.md,提交 cbab6ab
Probe and automatically pay HTTP 402 crypto micropayments on Base Layer 2 with USDC or $APAY within pre-configured budget limits.
url必填methodheadersjson_bodyInspect the agent's active non-custodial wallet address, network, current spending guardrails, and total spent in USDC and $APAY.
无需输入参数。
Configure agent safety invariants and spending guardrails. Prevents runaway loops or overcharging.
daily_budget_apaydaily_budget_usdcmax_per_call_apaymax_per_call_usdcInspect an endpoint to check if it requires an A-Pay micropayment, inspect the exact price quote, currency, and payout receiver without spending any funds.
url必填Inspect the agent's live on-chain balances on Base Layer 2, including native ETH (for gas), USDC, and $APAY tokens.
address已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在仓库或注册中心条目中声明许可证。
npx create-apay-app my-paid-agentapay protect --target http://localhost:8000 --price 0.001 --wallet 0xYourWalletAddressfrom apay import APaySession, AgentWallet
# Generate or load wallet with daily safety limitwallet = AgentWallet(private_key="0x...", max_per_call_usdc=0.01, daily_budget_usdc=5.0)session = APaySession(wallet)
# Automatically handles HTTP 402 challenges & settles on the flyresponse = session.get("https://protected-api.com/market-data")print(response.json())npx -y @smithery/cli install apay --client claude{ "mcpServers": { "apay": { "command": "uvx", "args": ["apay", "mcp"], "env": { "APAY_NETWORK": "base-mainnet", "APAY_CURRENCY": "DUAL", "APAY_MAX_PER_CALL": "0.05", "APAY_DAILY_BUDGET": "2.0" } } }}apay/├── src/│ └── apay/│ ├── __init__.py # Package exports│ ├── cli.py # ⚡ 1-Command CLI (`apay protect`, `apay wallet new`, `apay pay`)│ ├── client.py # 🤖 Auto-settling HTTP client (sync & async)│ ├── wallet.py # 🔐 In-memory wallet + local spending limits│ ├── proxy.py # 🛡️ Ultra-light reverse proxy paywall (Starlette + EIP-712)│ ├── relayer.py # 📊 Settlement journal & batch relayer│ └── integrations/ # 🔗 LangChain & CrewAI agent wrappers├── contracts/ # Base Sepolia Smart Contracts (APAYToken & APayRouter)├── tests/ # Automated integration & security test suite├── spec/ # RFC wire format & security model specifications└── pyproject.toml # Hatchling packaging configuration# 1. Install A-Pay via pippip install apay
# 2. Generate a new Agent Wallet with spending limitsapay wallet new
# 3. Protect any website or API with an instant HTTP 402 Paywallapay protect --target http://localhost:8000 --price 0.001 --wallet 0xYourPayoutWalletAddress