---
name: tryx402-gateway
description: Configure tryx402 spend-caps, MCP tools, and idempotency for x402 payments.
version: 1.0.0
package: tryx402 (PyPI)
canonical_url: https://www.tryx402.app
documentation: https://www.tryx402.app/docs
mcp_server: https://www.tryx402.app/api/mcp
mcp_server_card: https://www.tryx402.app/.well-known/mcp/server-card.json
openapi: https://www.tryx402.app/openapi.json
pricing: https://www.tryx402.app/api/pricing
---

# tryx402 Gateway Skill

Use this skill when executing paid machine-to-machine HTTP requests over x402.

## When to Use This Skill
- When an AI agent needs to call paid micro-APIs over the x402 protocol (USDC Base/Solana).
- When protecting an agent session from budget overruns or loop draining.
- When idempotency guarantees are required to avoid duplicate charges on retried timeouts.
- When accounting and cost tracking by domain or project is required.

## What tryx402 provides
1. Pre-payment spend limit checking against a hard session budget ceiling.
2. Idempotency guarantees to prevent double-billing on network timeouts.
3. Per-call accounting ledgers exported in JSON.

## Fast Start & Installation
1. Install the official PyPI package:
```bash
pip install tryx402
```
2. Inspect `https://www.tryx402.app/docs` or `https://www.tryx402.app/llms-full.txt`
3. Register the MCP server in your client (stdio or Streamable HTTP):
```json
{
  "mcpServers": {
    "tryx402": {
      "command": "python3",
      "args": ["-m", "tryx402.mcp_server"],
      "env": { "TRYX402_MAX_BUDGET_USD": "1.00" }
    }
  }
}
```
4. Use `gateway_search` (free) to discover tools, and require explicit approval before calling `gateway_call`.
