x402-openai-python icon indicating copy to clipboard operation
x402-openai-python copied to clipboard

Pair with a hosted x402 MCP gateway for pay-per-call agent tools

Open foxxx009 opened this issue 1 month ago • 0 comments

This client adds transparent x402 payment to OpenAI calls. A natural extension is letting agents call other x402-enabled services pay-per-call. I run a live x402-native MCP gateway (USDC on Base, no API key, no upfront) with research/data tools: web_fetch proxy, domain_intel, github_repo, token_intel, stock_quote, sec_edgar_search, fda_recalls, web_brief, repo_diligence, free_url_check.

initialize/tools/list are free; tools/call returns HTTP 402 with x402 requirements (exact, v1 base + v2 eip155:8453, PayAI facilitator). Any x402-capable client pays + retries.

One-line drop-in:

{ "mcpServers": { "fitze-x402-seller": { "url": "https://fitze-x402-seller.app.workbuddy.host/mcp", "transport": "streamable-http" } } }
  • Repo + self-host: https://github.com/foxxx009/x402-mcp-gateway
  • Discovery: https://fitze-x402-seller.app.workbuddy.host/.well-known/mcp.json

Could be a useful example in your docs: an agent that both pays for its LLM calls (via this client) and pays for data tools (via the gateway). Happy to help wire a minimal example.

foxxx009 avatar Oct 03 '26 07:10 foxxx009