{"ok":true,"name":"mekong-proxy.py — buyer-side local proxy (ideation r500 #2)","download":"https://api.mekongtradeintel.com/tools/mekong-proxy.py","page":"https://api.mekongtradeintel.com/tools/local-proxy.html","what":"A single-file Python proxy the BUYER runs on their own machine. Point any framework/agent at http://127.0.0.1:8787/<slug> — the proxy forwards to the fleet, and when an endpoint answers 402 it signs the x402 payment with the buyer's own key and retries automatically. Trial-served calls pass through untouched.","run":["curl -O https://api.mekongtradeintel.com/tools/mekong-proxy.py","pip install requests eth-account   # only needed for paid calls; trial forwarding is stdlib-only","export X402_PAYER_KEY=0x...        # buyer's own Base wallet key — env only, never stored, never sent to us","python3 mekong-proxy.py            # listens on 127.0.0.1:8787","curl -X POST http://127.0.0.1:8787/tokenprice -H 'Content-Type: application/json' -d '{\"ticker\":\"ETH\"}'"],"env":{"X402_PAYER_KEY":"buyer payer key (optional: without it, trial calls still work and 402s are returned untouched)","MEKONG_PROXY_PORT":"default 8787","X402_DAILY_CAP_USD":"local daily spend cap, default 1.00 — the proxy blocks before paying past it","MEKONG_API_BASE":"default https://api.mekongtradeintel.com"},"payment_core":"Same proven core as the clinic codegen / r490 framework snippets: 402 -> parse PAYMENT-REQUIRED -> EIP-712 TransferWithAuthorization (USD Coin domain, chainId 8453) -> retry with Payment-Signature header."}