This is a remote gateway wrapping GPT-5.5 behind x402 micropayments on Base USDC. It exposes 64 tools through MCP, including three chat completion tiers priced by max output tokens (compact at $0.0001 for 192 tokens, long at $0.002134 for 4096, max at $0.066667 for 128k), plus utility tools for summarization, translation, code review, and JSON extraction. The MCP facade returns pricing and endpoint info but doesn't bypass payment. Actual execution happens via direct HTTP calls with x402 settlement or bearer auth. Reach for this if you want to meter GPT-5.5 access with crypto micropayments instead of traditional API keys.
Remote MCP and GPT-5.5 gateway with x402 Base USDC settlement, wallet signing safety, approval-risk auditing, paid seller-intelligence, merchant-readiness checks, and buyer-ready API audit tools for agents.
The service is built for agent buyers that need low-cost GPT-5.5 calls, deterministic utility tools, wallet signing safety checks, x402 prepayment risk checks, and ready-to-use x402/MCP/Bazaar integration resources.
payTo, and stops before payment.https://gpt55.558686.xyz/x402/translate-first-purchase, then run examples/translate-first-purchase/ to quote /v1/tools/translate without signing or paying.payTo, spend cap, and receipt evidence without paying.https://gpt55.558686.xyz/v1/tools/x402-client-compatibility-adapter without paying. The paid result returns compatibilityDecision, officialClientAdapter, firstPaymentClientAdapter, headerCompatibilityMap, sameRequestRetry, receiptRequirements, and stopConditions.https://gpt55.558686.xyz/v1/tools/x402-payment-failure-doctor without paying. The paid result returns paymentRecoveryPack, buyerSupportPacket, recoveryRunbook, repeatPurchaseContract, sameRequestRetryTemplate, officialClientRecipe, firstPaymentClientRecipe, facilitatorRecovery, and receiptEvidenceRequired.X-PAYMENT header yet: run examples/wallet-funding-readiness-doctor/ to quote https://gpt55.558686.xyz/v1/tools/x402-wallet-funding-readiness-doctor without paying. The paid result returns paymentHeaderReadiness, officialClientHandoff, sameRequestRetry, mcpGuardConfig, flowiseGuardConfig, and a balance-to-payment-header repeatPurchaseContract.https://gpt55.558686.xyz/v1/tools/x402-receipt-dispute-pack without paying. The paid result returns readiness, evidenceScore, blockers, missingEvidence, auditRecord, disputePacket, and nextPaymentPolicy.https://gpt55.558686.xyz/v1/tools/x402-receipt-bound-execution-gate without paying. The paid result returns receiptBinding, reuseDecision, mcpGateConfig, flowiseGateConfig, auditRecord, and nextPurchaseRequired.https://gpt55.558686.xyz/v1/tools/x402-directory-compliance-repair-pack without paying. The paid result returns status, complianceScore, repairActions, metadataPatch, checkoutSourceClassifier, sourceQualitySummary, trafficActionPlan, directorySubmissionCopy, and retestPlan.wallet-signing-safety-pack: inspect https://gpt55.558686.xyz/x402/wallet-prepay-first-purchase.json field firstPurchaseCheckoutContract.livePaymentChecklist, then run npm run wallet-checkout:contract and the quote-only first-payment client before any private key or payment is involved.https://gpt55.558686.xyz/x402/agent-payment-safety-control-plane, then run examples/agent-payment-safety-control-plane/ to verify route, spend cap, payTo, network, and expected receipt fields without paying.x402NextPurchase: run examples/x402-next-purchase-router/ to select the next wallet-safety or MCP route, enforce the 0.02 USDC cap, and stop before payment.https://gpt55.558686.xyz/x402/agent-payment-control-plane, then run examples/agent-payment-control-plane/ to inspect route selection and quote policy without paying.payTo, and network policy without signing or paying.https://gpt55.558686.xyz/x402/agent-payment-policy-compiler, then run examples/agent-payment-policy-compiler/ to quote the paid compiler without paying. The paid result returns policyJson, mcpGuardConfig, flowiseGuardConfig, and x402PaymentChecklist.https://gpt55.558686.xyz/x402/agent-spend-recurrence-guard, then run examples/agent-spend-recurrence-guard/ to quote the paid guard without paying. The paid result returns decision, budgetStatus, spendLedgerEntry, mcpGuardConfig, flowiseGuardConfig, and runtimeGuardSnippet.https://gpt55.558686.xyz/x402/wallet-runtime-spend-guard, then run examples/wallet-runtime-spend-guard/ to quote https://gpt55.558686.xyz/v1/paid/wallet-runtime-spend-guard without paying.https://gpt55.558686.xyz/x402/ai-crawler-monetization-kit, then run examples/ai-crawler-monetization-kit/ to generate protected routes, x402 discovery copy, robots.txt, llms.txt, edge-worker notes, and a launch checklist.https://gpt55.558686.xyz/x402/first-purchase-router, then run examples/first-purchase-router/ to verify the live quote without paying.https://gpt55.558686.xyz/x402/buyer-conversion-suite, then use examples/buyer-conversion-suite/ to choose the safest first paid URL without paying.https://gpt55.558686.xyz/x402/agent-commerce-suite, load the buyer payment policy at https://gpt55.558686.xyz/x402/buyer-payment-policy-pack.json, then use examples/buyer-payment-policy-pack/, examples/agent-commerce-suite/, or examples/agentcore-mcp-buyer-quickstart/ to decode the first live quote without paying. After paying the first decision endpoint, read buyerAgentPaymentDecision, agentPolicyInputs, and receiptEvidenceRequiredAfterPayment before any target payment.https://gpt55.558686.xyz/x402/agent-payment-readiness-lab, then run examples/agent-payment-readiness-lab/ to quote first-purchase routes without paying.https://gpt55.558686.xyz/x402/wallet-prepay-first-purchase, then run examples/wallet-prepay-first-purchase/ to quote wallet/prepay routes without paying.https://gpt55.558686.xyz/x402/agent-checkout-kit, then run examples/x402-first-payment-client/ in quote-only mode for either wallet-signing-safety-pack or mcp-integration-kit.ROUTE_ID=translate-canary MAX_USDC=0.001; after that works, upgrade to wallet-signing-safety-pack with MAX_USDC=0.02 or mcp-integration-kit.https://gpt55.558686.xyz/x402/receipt-verifier, then run examples/receipt-verifier/ to recompute receiptHash, actionRef, payTo, network, amount, route, and transaction evidence without signing or paying.https://gpt55.558686.xyz/x402/wallet-signing-risk-kit.https://gpt55.558686.xyz/x402/prepay-trust-check.https://gpt55.558686.xyz/x402/approval-risk-auditor.https://gpt55.558686.xyz/x402/merchant-readiness, quote https://gpt55.558686.xyz/v1/paid/x402-seller-mini-check for the lowest-friction $0.006 first paid check, then buy https://gpt55.558686.xyz/v1/paid/x402-growth-plan for the execution checklist or https://gpt55.558686.xyz/v1/paid/x402-seller-intel for the full bundle.https://go165.github.io/gpt55-x402-gateway/merchant-readiness.html for copy-paste listing text and live quote steps.After a real buyer-owned x402 payment, the high-intent paid routes return buyer-facing fields that make the result understandable without reading the whole JSON:
purchaseResultCard: the shortest human-readable result card with buyerOutcome, topResult, nextStep, repurchasePrompt, recommended repeat route, and receipt evidence.paidExperienceSummary: a short human summary with buyerOutcome, topResult, nextStep, repeatUseCase, repurchasePrompt, and receipt evidence.buyerActionChecklist: a direct three-step action list with receipt headers, next paid route, and the repeat trigger for the next signing or payment decision.repeatPurchaseContract: the machine-readable rule for when the paid result is no longer reusable and the buyer should purchase the same check again.x402NextPurchase: a machine-readable repeat-purchase router with the next quote-only command, max spend, URL, network, payTo policy, and receipt verifier.quoteToPaymentHandoff: the short 402 response handoff that names @x402/fetch, X-PAYMENT, the same-request retry rule, and X-PAYMENT-RESPONSE.Route-specific repeat paths are explicit: x402-buyer-prepay-risk-score repeats before paying any unfamiliar x402 URL, x402-agent-spend-recurrence-guard repeats before every repeated agent payment, wallet-runtime-spend-guard repeats before every wallet-runtime payment gate, budget burst, route change, payTo/network drift, or missing receipt event, x402-seller-mini-check repeats after seller copy/price/tag changes, wallet-signing-safety-pack repeats before each new signing or approval bundle, and x402-mcp-integration-kit repeats for each new buyer agent or MCP runtime.
Start quote-only. These commands do not use a private key, do not sign, and do not pay:
curl -fsSLO https://gpt55.558686.xyz/x402/first-payment-client.mjs
npm install @x402/fetch @x402/core @x402/evm viem
ROUTE_ID=wallet-signing-safety-pack MAX_USDC=0.02 node first-payment-client.mjs
npm run wallet-checkout:contract
ROUTE_ID=translate-canary MAX_USDC=0.001 node first-payment-client.mjs
ROUTE_ID=wallet-signing-safety-pack MAX_USDC=0.02 node first-payment-client.mjs
ROUTE_ID=mcp-integration-kit node first-payment-client.mjs
The wallet checkout contract lives at https://gpt55.558686.xyz/x402/wallet-prepay-first-purchase.json under firstPurchaseCheckoutContract. It names the exact paid URL, amount 18000, network eip155:8453, payTo, payment gates, livePaymentChecklist, paid result fields, and post-payment guard examples.
For wallet-signing-safety-pack, the buyer-owned first-payment quickstart is:
git clone https://github.com/go165/gpt55-x402-gateway.git && cd gpt55-x402-gateway
npm install
npm run first-payment:root
ROUTE_ID=wallet-signing-safety-pack MAX_USDC=0.02 node first-payment-client.mjs
cat last-run.evidence.json
PAY_REAL_X402=1 ROUTE_ID=wallet-signing-safety-pack MAX_USDC=0.02 EVM_PRIVATE_KEY=0x... node first-payment-client.mjs
The repository root now includes first-payment-client.mjs, a thin wrapper around the maintained client in examples/x402-first-payment-client/. npm run first-payment:root proves the root command works in quote-only mode before any buyer tries a real payment.
The first-payment client starts quote-only. It should show paymentSent: false, the live amountAtomic, network, payTo, spend-cap checks, and buyerPaymentHandoff before the buyer opts into PAY_REAL_X402=1. Never send a private key, seed phrase, wallet password, exchange login, or custodial API key to the service.
The same client is also directly downloadable from the service at https://gpt55.558686.xyz/x402/first-payment-client.mjs, so buyers can run the first quote without cloning the full repository.
Only after the live quote matches amount, network, asset, and payTo, a buyer-owned wallet environment can opt in to a real x402 payment:
PAY_REAL_X402=1 ROUTE_ID=wallet-signing-safety-pack MAX_USDC=0.02 EVM_PRIVATE_KEY=0x... node first-payment-client.mjs
PAY_REAL_X402=1 ROUTE_ID=translate-canary MAX_USDC=0.001 EVM_PRIVATE_KEY=0x... node first-payment-client.mjs
PAY_REAL_X402=1 ROUTE_ID=mcp-integration-kit EVM_PRIVATE_KEY=0x... node first-payment-client.mjs
Expected paid result shapes:
After a buyer-owned wallet payment, save x-x402-receipt-id and x-x402-receipt-url, then verify the receipt before trusting automated follow-up actions:
npm run receipt:verify -- --receipt-url https://gpt55.558686.xyz/x402/receipts/{receiptId}
https://gpt55.558686.xyzhttps://gpt55.558686.xyz/mcphttps://gpt55.558686.xyz/mcp/ssehttps://gpt55.558686.xyz/mcp/confighttps://gpt55.558686.xyz/server.jsonhttps://go165.github.io/gpt55-x402-gateway/checkout-source-quality.htmlhttps://gpt55.558686.xyz/.well-known/x402https://gpt55.558686.xyz/openapi.jsonhttps://gpt55.558686.xyz/pricing.jsonhttps://gpt55.558686.xyz/buyer-guide.jsonhttps://go165.github.io/gpt55-x402-gateway/agent-payment-launchpad.htmlhttps://gpt55.558686.xyz/x402/translate-first-purchasehttps://gpt55.558686.xyz/x402/translate-first-purchase.jsonhttps://go165.github.io/gpt55-x402-gateway/translate-first-purchase.htmlhttps://gpt55.558686.xyz/x402/payment-evidence-centerhttps://gpt55.558686.xyz/x402/payment-evidence-center.jsonhttps://go165.github.io/gpt55-x402-gateway/payment-evidence-center.htmlhttps://gpt55.558686.xyz/x402/receipt-verifierhttps://gpt55.558686.xyz/x402/receipt-verifier.jsonhttps://go165.github.io/gpt55-x402-gateway/receipt-verifier.htmlhttps://gpt55.558686.xyz/x402/agent-payment-control-planehttps://gpt55.558686.xyz/x402/agent-payment-control-plane.jsonhttps://gpt55.558686.xyz/x402/agent-payment-safety-control-planehttps://gpt55.558686.xyz/x402/agent-payment-safety-control-plane.jsonhttps://go165.github.io/gpt55-x402-gateway/agent-payment-safety-control-plane.htmlhttps://gpt55.558686.xyz/x402/agent-payment-risk-gatehttps://gpt55.558686.xyz/x402/agent-payment-risk-gate.jsonhttps://go165.github.io/gpt55-x402-gateway/agent-payment-risk-gate.htmlhttps://gpt55.558686.xyz/x402/client-compatibility-adapterhttps://gpt55.558686.xyz/x402/client-compatibility-adapter.jsonhttps://gpt55.558686.xyz/v1/tools/x402-client-compatibility-adapterhttps://go165.github.io/gpt55-x402-gateway/client-compatibility-adapter.htmlhttps://gpt55.558686.xyz/v1/tools/x402-payment-failure-doctorhttps://go165.github.io/gpt55-x402-gateway/payment-failure-doctor.htmlhttps://gpt55.558686.xyz/x402/wallet-funding-readiness-doctorhttps://gpt55.558686.xyz/x402/wallet-funding-readiness-doctor.jsonhttps://gpt55.558686.xyz/v1/tools/x402-wallet-funding-readiness-doctorhttps://go165.github.io/gpt55-x402-gateway/wallet-funding-readiness-doctor.htmlhttps://gpt55.558686.xyz/x402/receipt-dispute-packhttps://gpt55.558686.xyz/x402/receipt-dispute-pack.jsonhttps://gpt55.558686.xyz/v1/tools/x402-receipt-dispute-packhttps://go165.github.io/gpt55-x402-gateway/receipt-dispute-pack.htmlhttps://gpt55.558686.xyz/x402/receipt-bound-execution-gatehttps://gpt55.558686.xyz/x402/receipt-bound-execution-gate.jsonhttps://gpt55.558686.xyz/v1/tools/x402-receipt-bound-execution-gatehttps://go165.github.io/gpt55-x402-gateway/receipt-bound-execution-gate.htmlhttps://gpt55.558686.xyz/x402/directory-compliance-repair-packhttps://gpt55.558686.xyz/x402/directory-compliance-repair-pack.jsonhttps://gpt55.558686.xyz/v1/tools/x402-directory-compliance-repair-packhttps://go165.github.io/gpt55-x402-gateway/directory-compliance-repair-pack.htmlhttps://go165.github.io/gpt55-x402-gateway/x402-next-purchase-router.htmlhttps://go165.github.io/gpt55-x402-gateway/agent-payment-policy-manifest.htmlhttps://gpt55.558686.xyz/x402/agent-payment-policy-compilerhttps://gpt55.558686.xyz/x402/agent-payment-policy-compiler.jsonhttps://gpt55.558686.xyz/v1/tools/x402-agent-payment-policy-compilerhttps://go165.github.io/gpt55-x402-gateway/agent-payment-policy-compiler.htmlhttps://gpt55.558686.xyz/x402/agent-spend-recurrence-guardhttps://gpt55.558686.xyz/x402/agent-spend-recurrence-guard.jsonhttps://gpt55.558686.xyz/v1/tools/x402-agent-spend-recurrence-guardhttps://go165.github.io/gpt55-x402-gateway/agent-spend-recurrence-guard.htmlhttps://gpt55.558686.xyz/x402/wallet-runtime-spend-guardhttps://gpt55.558686.xyz/x402/wallet-runtime-spend-guard.jsonhttps://gpt55.558686.xyz/v1/paid/wallet-runtime-spend-guardhttps://go165.github.io/gpt55-x402-gateway/wallet-runtime-spend-guard.htmlhttps://go165.github.io/gpt55-x402-gateway/agent-payment-control-plane.htmlhttps://gpt55.558686.xyz/x402/ai-crawler-monetization-kithttps://gpt55.558686.xyz/x402/ai-crawler-monetization-kit.jsonhttps://go165.github.io/gpt55-x402-gateway/ai-crawler-monetization-kit.htmlhttps://gpt55.558686.xyz/x402/first-purchase-routerhttps://gpt55.558686.xyz/x402/first-purchase-router.jsonhttps://go165.github.io/gpt55-x402-gateway/first-purchase-router.htmlhttps://gpt55.558686.xyz/x402/buyer-conversion-suitehttps://gpt55.558686.xyz/x402/buyer-conversion-suite.jsonhttps://gpt55.558686.xyz/x402/mcp-first-purchase-kithttps://gpt55.558686.xyz/x402/mcp-first-purchase-kit.jsonmcpRuntimeInstallPlan, buyerMcpExecutionContract, receiptGatehttps://gpt55.558686.xyz/x402/agent-payment-readiness-labhttps://gpt55.558686.xyz/x402/agent-payment-readiness-lab.jsonhttps://go165.github.io/gpt55-x402-gateway/agent-payment-readiness.htmlhttps://gpt55.558686.xyz/x402/wallet-prepay-first-purchasehttps://gpt55.558686.xyz/x402/wallet-prepay-first-purchase.jsonhttps://go165.github.io/gpt55-x402-gateway/wallet-prepay-first-purchase.htmlhttps://gpt55.558686.xyz/x402/agent-checkout-kithttps://gpt55.558686.xyz/x402/agent-checkout-kit.jsonhttps://go165.github.io/gpt55-x402-gateway/x402-first-payment-client.htmlhttps://gpt55.558686.xyz/x402/agent-commerce-suitehttps://gpt55.558686.xyz/x402/agent-commerce-suite.jsonhttps://gpt55.558686.xyz/x402/buyer-payment-policy-packhttps://gpt55.558686.xyz/x402/buyer-payment-policy-pack.jsonbuyerAgentPaymentDecision with agentPolicyInputs and receiptEvidenceRequiredAfterPaymentBUYER_SAFETY.mdSUBMISSION_PACK.mdhttps://gpt55.558686.xyz/x402/wallet-signing-risk-kithttps://gpt55.558686.xyz/x402/wallet-signing-risk-kit/example-pack.jsonhttps://gpt55.558686.xyz/x402/wallet-signing-risk-kit/mcp-wallet-safety-router.tshttps://gpt55.558686.xyz/x402/prepay-trust-checkhttps://gpt55.558686.xyz/x402/approval-risk-auditorhttps://gpt55.558686.xyz/x402/eip712-signature-risk-decoderhttps://gpt55.558686.xyz/x402/evm-transaction-risk-decoderhttps://gpt55.558686.xyz/x402/merchant-readinesshttps://gpt55.558686.xyz/v1/paid/x402-seller-mini-checkhttps://gpt55.558686.xyz/v1/paid/x402-seller-intelhttps://gpt55.558686.xyz/v1/paid/x402-growth-planhttps://go165.github.io/gpt55-x402-gateway/merchant-readiness.html$0.0001, or 10,000 compact requests per $1.$0.002134, up to 4096 output tokens.$0.066667, up to 128000 output tokens.$0.0001.payTo verification, wallet signing safety, MCP integration, and receipt evidence before a real x402 payment.$0.001-$0.01; lead with the $0.0001 compact endpoint for trials, then route larger buyers to /v1/chat/completions/long and /v1/chat/completions/max.$0.521 across the proportional chat tiers./v1/x402-ping remains exact-only for lightweight proof checks. Fetch the endpoint without payment and use the returned payment-required header as the live price before paying.Live quotes from https://gpt55.558686.xyz/pricing.json and unauthenticated HTTP 402 responses are authoritative. Directory pages can lag behind live x402 quote metadata.
402 payment-required header is the authoritative quote for amount, network, asset, and payTo.0x1f0130669ca6fd02e025a984cc038f139df19a2f on Base USDC.Transfer events to that address on a Base explorer or RPC before treating a payment as settled.https://gpt55.558686.xyz/x402/status. If local log retention has gaps, prefer live 402 quotes and chain receipts over cached status summaries.The service exposes 100 MCP tools that route to direct x402-paid HTTP endpoints. Tool calls through the MCP facade return the direct endpoint, pricing, x402 discovery links, and example payload. Paid execution happens on the HTTP endpoint with x402 Base USDC or a private Bearer key; the MCP facade does not bypass payment.
Core endpoints include:
POST /v1/chat/completionsPOST /v1/chat/completions/longPOST /v1/chat/completions/maxGET /v1/paid/chat-cdpPOST /v1/tools/summarizePOST /v1/tools/translatePOST /v1/tools/rewritePOST /v1/tools/answerPOST /v1/tools/code-reviewPOST /v1/tools/extract-jsonPOST /v1/tools/x402-mcp-integration-kitPOST /v1/tools/x402-agentcore-integration-kitGET /v1/tools/x402-prepay-trust-checkGET /v1/tools/x402-buyer-prepay-risk-scoreGET /v1/paid/evm-transaction-risk-decoderGET /v1/paid/eip712-signature-risk-decoderPOST /approval-risk-auditor/entrypoints/audit_approvals/invokeGET /v1/paid/x402-seller-mini-checkGET /v1/paid/x402-seller-intelGET /v1/paid/x402-growth-planMCP first-purchase example: examples/mcp-first-purchase-kit/ shows how to quote the highest-signal MCP integration endpoint, check amount/network/payTo, and stop before payment.
First purchase router example: examples/first-purchase-router/ shows how to choose between MCP integration, buyer prepay risk, wallet signing risk, and seller mini-check routes, then verify live amount/network/payTo before any payment.
Wallet/prepay first-purchase example: examples/wallet-prepay-first-purchase/ shows how to quote buyer prepay risk, EIP-712 signing risk, EVM transaction risk, and approval-risk routes without paying, signing, registering, or using a private key.
x402 first-payment client: examples/x402-first-payment-client/ shows how a real buyer can move from quote-only checks to an opt-in wallet-owned x402 payment and capture receipt headers. It defaults to quote-only and refuses to pay unless PAY_REAL_X402=1 and EVM_PRIVATE_KEY are provided by the buyer.
Wallet signing safety payment-policy example: examples/wallet-signing-safety-pack/ shows how to fetch the live wallet safety pack quote, turn amount/network/payTo/asset into paymentPolicyInputs, and compute a local allow or deny decision before any wallet-owned payment.
Wallet signing guard examples: examples/wallet-signing-safety-pack/ includes npm run wallet-guard:mcp, npm run wallet-guard:flowise, and npm run wallet-guard:runtime for applying a paid agentEnforcementPayload in MCP, Flowise, and buyer-owned wallet runtimes without signing or paying again.
Payment evidence center example: examples/payment-evidence-center/ shows how a buyer-side agent can verify live quote amount, Base network, payTo, spend cap, receipt headers, and paid JSON evidence before deciding whether a buyer-owned wallet should pay.
x402 receipt verifier example: examples/receipt-verifier/ shows how a buyer-side agent can recompute receiptHash, actionRef, verification.digest, expected Base USDC network, payTo, amount cap, route, and transaction evidence after a buyer-owned payment. The sample verifier does not use a private key, sign, or send payment.
Agent payment safety control plane example: examples/agent-payment-safety-control-plane/ shows how a buyer-side agent can load the safety control plane, quote the wallet-signing-safety first-purchase route, verify amount/network/payTo/spend cap, and stop before payment.
Agent payment risk gate example: examples/agent-payment-risk-gate/ shows how a buyer-side agent can turn a live x402 quote into a local safe-to-pay decision by checking HTTP 402 status, amount, network, payTo, spend cap, and receipt evidence before any wallet-owned payment.
x402 next purchase router example: examples/x402-next-purchase-router/ shows how a buyer-side agent can read x402NextPurchase from a paid tool response, choose the wallet-safety or MCP next route, enforce amount/network/payTo policy, and stop before payment.
Agent payment control plane example: examples/agent-payment-control-plane/ shows how a buyer-side agent can load the broader control plane JSON, choose a route, verify live quote amount/network/payTo against policy, and stop before payment unless the buyer opts in from their own wallet environment.
Agent payment policy manifest: examples/agent-payment-policy-manifest/ gives buyer agents a local allowlist for first-purchase routes, a 0.02 USDC cap, expected Base USDC payTo, and a quote-only checker that refuses mismatched live 402 quotes.
Agent Payment Policy Compiler: examples/agent-payment-policy-compiler/ shows how a buyer-side agent can quote the paid compiler, verify amount/network/payTo, and then buy a generated policyJson, mcpGuardConfig, flowiseGuardConfig, and auditLogSchema only from a buyer-owned x402 client.
Agent Spend Recurrence Guard: examples/agent-spend-recurrence-guard/ shows how a buyer-side agent can quote the paid guard, verify amount/network/payTo, and then buy a per-payment decision, spendLedgerEntry, nextPaymentPolicy, mcpGuardConfig, flowiseGuardConfig, and runtimeGuardSnippet only from a buyer-owned x402 client.
x402 Payment Failure Doctor: examples/payment-failure-doctor/ shows how a buyer or seller can diagnose a quote-to-payment failure, verify the diagnostic endpoint amount/network/payTo, and then buy a paymentRecoveryPack with buyerSupportPacket, recoveryRunbook, repeatPurchaseContract, sameRequestRetryTemplate, officialClientRecipe, firstPaymentClientRecipe, facilitatorRecovery, receiptEvidenceRequired, and stopConditions only from a buyer-owned x402 client.
x402 Wallet Funding Readiness Doctor: examples/wallet-funding-readiness-doctor/ shows how a buyer-side wallet, MCP client, or Flowise node can quote the paid balance-to-payment-header readiness doctor, verify amount/network/payTo, and then buy paymentHeaderReadiness, officialClientHandoff, sameRequestRetry, mcpGuardConfig, flowiseGuardConfig, and repeatPurchaseContract only from a buyer-owned x402 client.
x402 Client Compatibility Adapter: examples/client-compatibility-adapter/ shows how a buyer-side official x402 client, MCP client, or wallet agent can quote the compatibility adapter, verify amount/network/payTo, and then buy officialClientAdapter, firstPaymentClientAdapter, headerCompatibilityMap, sameRequestRetry, receiptRequirements, and stopConditions only from a buyer-owned x402 client.
x402 Receipt Dispute Pack: examples/receipt-dispute-pack/ shows how a buyer-side wallet agent, MCP client, or seller can quote the receipt dispute pack, verify amount/network/payTo, and then buy readiness, evidenceScore, blockers, missingEvidence, auditRecord, disputePacket, and nextPaymentPolicy only from a buyer-owned x402 client.
x402 Directory Compliance Repair Pack: examples/directory-compliance-repair-pack/ shows how an x402 seller can quote the paid repair pack, verify amount/network/payTo, and then buy status, complianceScore, repairActions, metadataPatch, checkoutSourceClassifier, sourceQualitySummary, trafficActionPlan, directorySubmissionCopy, and retestPlan only from a seller-owned x402 client.
AI crawler monetization example: examples/ai-crawler-monetization-kit/ shows how a content/API/MCP seller can quote the paid crawler monetization kit and inspect the expected result shape before paying.
Checkout drop-off summary: examples/checkout-dropoff-summary/ shows how an x402 seller can diagnose whether buyers stop at quote-only inspection, payment-header verification, or settlement. It parses local JSONL logs only and never signs, pays, or submits directory entries.
Checkout source quality: examples/checkout-source-quality/ shows how an x402 seller can decide whether quote volume is coming from likely buyers, monitors, indexers, or internal tests. It is useful when quote counts are high but payment headers remain low.
Recommended quote-only checkout for the bundled wallet and prepay decision:
npm run translate:first-quote
npm run wallet-policy:quote
npm run wallet-guard:mcp
npm run wallet-guard:flowise
npm run wallet-guard:runtime
npm run launchpad:quote
ROUTE_ID=wallet-signing-safety-pack MAX_USDC=0.02 node first-payment-client.mjs
Translate first-purchase example: examples/translate-first-purchase/ shows how to fetch the live /v1/tools/translate HTTP 402 quote, verify amount/network/payTo/spend cap, and stop before payment. It is designed as the lowest-friction first paid route before a buyer upgrades into wallet safety, MCP integration, or the agent payment risk gate.
Seller mini-check example: examples/seller-mini-check/ shows how to fetch and decode the live HTTP 402 quote without paying, signing, registering, or using a private key.
MCP initialize:
curl -s https://gpt55.558686.xyz/mcp \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"smoke","version":"1.0.0"}}}'
x402 quote:
curl -i https://gpt55.558686.xyz/v1/chat/completions \
-H 'content-type: application/json' \
-d '{"model":"gpt-5.5","messages":[{"role":"user","content":"Say hi"}],"max_tokens":8}'
Expected unauthenticated response: HTTP 402 with a payment-required header containing Base USDC x402 payment requirements.
This repository includes a small no-secret Docker wrapper for directory checks such as Glama. It starts a local Streamable HTTP MCP endpoint at /mcp, proxies to the public remote MCP endpoint when available, and falls back to local introspection responses for initialize, tools/list, resources/list, and prompts/list.
The wrapper does not handle private keys, wallet signatures, KYC, JWTs, custody, or paid execution. Paid calls still happen through the public x402 HTTP endpoints advertised by the live gateway.
Run locally:
npm start
In another shell:
npm run smoke
Build and run with Docker:
docker build -t gpt55-x402-gateway .
docker run --rm -p 3000:3000 gpt55-x402-gateway
Then submit the repository to Glama using the Dockerfile in this repo. After Glama creates a public server page and score badge, update directory PRs with the generated badge URL.
cd D:\gpt55-token-gateway
npm start
npm run smoke
npm run stats
npm run funnel
npm run monitor
Start a temporary HTTPS tunnel:
D:\gpt55-token-gateway\start-tunnel.ps1
Use the https://...trycloudflare.com URL as the public base URL.
base_url: tunnel URL, no trailing slashapi_type: chat_completions_apimodel: gpt-5.5api_key: value of PUBLIC_API_KEY in .envpricing.prompt: 0.000005pricing.completion: 0.00003pricing.input_cache_reads: 0.0000005context_pricing: optional; keep the same prices initially until real demand appears.The gateway only forwards gpt-5.5 upstream, even if a caller passes another model name.
https://poe.com/api/keys in a browser where you are logged in..env as POE_API_KEY=....cd D:\gpt55-token-gateway
npm run poe:create
Set these in .env to require on-chain payment for callers that do not use PUBLIC_API_KEY:
X402_ENABLED=true
X402_PAY_TO=0xYourBaseUsdcWallet
X402_NETWORK=eip155:8453
X402_PRICE=$0.0001
X402_LONG_PRICE=$0.002134
X402_MAX_PRICE=$0.066667
X402_TOOL_PRICE=$0.0001
X402_PROBE_PRICE=$0.0001
X402_ENABLE_UPTO=true
X402_UPTO_MARGIN=3.34
X402_UPTO_MIN_USD=0.0001
MAX_PAID_OUTPUT_TOKENS=192
MAX_LONG_PAID_OUTPUT_TOKENS=4096
MAX_TRUE_PAID_OUTPUT_TOKENS=128000
Restart the gateway after changing .env.
Calls with your PUBLIC_API_KEY still bypass the paywall, so Poe/private tests keep working.
Current x402 settings:
network: Base mainnet (eip155:8453)
asset: USDC
pay_to: 0x1f0130669ca6fd02e025a984cc038f139df19a2f
compact_chat_price: $0.0001 per compact chat completion request, max 192 output tokens
long_chat_price: $0.002134 per long chat completion request, max 4096 output tokens
max_chat_price: $0.066667 per max-output chat completion request, max 128000 output tokens
tool_price: $0.0001 per tool request
probe_price: $0.0001 per payment probe
facilitator: PayAI x402 (https://facilitator.payai.network), fallback xpay.sh; dedicated CDP/Bazaar route remains /v1/paid/chat-cdp
schemes: exact, upto on supported paid routes; /v1/x402-ping remains exact-only for lightweight proof checks
upto_status: enabled on the public production gateway; live HTTP 402 quotes remain authoritative
The lowest-cost x402 proof endpoint is available as both GET /v1/x402-ping and POST /v1/x402-ping.
It does not call the upstream model.
The CDP/Bazaar-compatible paid chat endpoint is GET /v1/paid/chat-cdp?q=...&max_tokens=...; it returns a live HTTP 402 x402 quote at $0.001 before payment and pays to the public Base USDC address above after settlement.
The public production gateway now advertises exact and upto x402 quotes on supported paid resources. Fetch the target endpoint without payment and use the HTTP 402 payment-required header as the authoritative amount immediately before paying. Historical marketplace listings or directory caches can lag behind live quotes.
Check the payment requirement:
cd D:\gpt55-token-gateway
npm run x402:check
Dry-run the cheapest payment flow without sending funds:
cd D:\gpt55-token-gateway
npm run pay:smoke
pay:smoke defaults to X402_PAY_SMOKE_TARGET=ping-get. Other targets are ping-post, summarize, and chat.
It only sends a real payment when both X402_PAYER_PRIVATE_KEY is set and CONFIRM_X402_PAYMENT=true.
Monitor the full discovery and settlement funnel:
cd D:\gpt55-token-gateway
npm run monitor
The monitor writes logs\monitor.jsonl and checks:
Submit to x402-list for manual review after setting an operator email:
cd D:\gpt55-token-gateway
$env:X402_LIST_CONTACT_EMAIL="you@example.com"
npm run x402list:submit
Submit the public discovery URLs to IndexNow-capable search engines:
cd D:\gpt55-token-gateway
npm run indexnow:submit
The gateway serves the IndexNow key at /<key>.txt. Set INDEXNOW_KEY only if you need a custom stable key; otherwise a deterministic public key is generated from the site URL and pay-to address.
Facilitator and directory discovery are not only website crawls. The pay-to address and configured facilitator must accept the payment requirements, and Bazaar-style discovery can lag until a successful settlement carries the resource metadata.
Usage logs are written to:
D:\gpt55-token-gateway\logs\usage.jsonl
Estimate revenue and cost from the local usage log:
cd D:\gpt55-token-gateway
npm run stats
io.github.ericm1018/skillfm-llm-cost-optimizer-openai-anthropic-usage
io.github.mikerawsonnz/llm-orchestration-agent
io.github.mikerawsonnz/authenticated-llm-agent
labforgedev/copilot-memory-mcp
csoai-org/agent-prompt-injection-firewall-mcp
io.github.mikerawsonnz/authenticated-multi-llm-agent