Budget router over x402: hard budget caps, idempotent paid calls, cost ledger, server-side pricing.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
MIT licensed. Built in France. The first open-source payment governance layer for AI agents.
A safe, provider-agnostic wrapper over AgentCash / x402. Not limited to prospecting — it drives any endpoint, and adds what AgentCash itself lacks and we learned we need the hard way:
This repo is the open-source SDK: the safe caller, budget guard, idempotency, ledger, CLI and MCP server. MIT licensed.
We don't hide features behind paywalls. We don't split the SDK into "core" and "pro". Everything is here. Use it, fork it, build on it.
The hosted service (https://www.tryx402.app) is the commercial engine:
multi-currency fiat billing, margins, FX, Stripe funding, the verified-tools
catalogue and the provider portal. Pricing is decided server-side via
/v1/quote — a client-side margin is a margin nobody pays.
Revenue model: commission on every pay-per-call transaction routed through the hosted service. The SDK is free. The service takes a cut. That's it.
tryx402 est le premier SDK open source de gouvernance de paiements pour agents IA dans l'écosystème x402. Conçu en France, distribué sous MIT, adopté par la communauté.
Face aux agrégateurs propriétaires (treg.to et consorts), tryx402 défend une position différente : pas de lock-in, pas de licence restrictive, pas de "commercial use only". Le code est libre. La confiance vient du service, pas de la licence.
| Face | Who | Where |\n|---|---|---|\n| Power-tool | you / an agent drive paid endpoints safely | this SDK (gateway.cli, gateway.client) |\n| Fiat gateway | end users pay in their currency, you resell x402 with margin | hosted service (closed) |
Python — one import:
Terminal — one command (like agentcash), after pip install tryx402:
MCP — two modes (pick the one you need):
6 tools: gateway_search, gateway_discover, gateway_call, gateway_spent,
gateway_plan, gateway_receipt. Works directly with your x402/AgentCash
crypto wallet — no hosted account needed.
You will NOT see
gateway_check_balance,gateway_recharge,gateway_lookup, orgateway_proxy_callfrompip install tryx402. This is deliberate, not a bug. These tools manage your hosted account credits (funded via Stripe, separate from your crypto wallet). The SDK MCP is a safe x402 caller; the hosted gateway handles the fiat credit layer. For the full 10-tool MCP, see Option B below or connect tohttps://www.tryx402.app/api/mcp.
All 6 SDK tools plus gateway_session, gateway_check_balance,
gateway_recharge, gateway_proxy_call. No API key needed — anonymous
session auth throughout. check_balance / recharge manage your
hosted account credits (funded via Stripe in EUR/USD — not crypto).
Discover (free — no payment):
Call any endpoint safely (spends USDC — budget-capped, idempotent):
Ask the hosted service what a call costs your account (server-side FX + margin):
quote().max_retries=0) — retrying a possibly-paid call is what double-charged us; opt in only if the server honors the Idempotency-Key header.tryx402 sends one anonymous ping on first import to help us understand usage: install-id (random, persisted locally), package version, Python version, platform.
No PII. No tracking across sites. No personal data.
Disable it anytime:
Or set an empty URL to disable:
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/tryx402)<a href="https://allmcps.com/mcp/tryx402"><img src="https://allmcps.com/api/badge/tryx402?style=directory" alt="Tryx402 on AllMCPs" /></a>