← Back to tryx402

tryx402 — Developer Documentation

tryx402 is the financial governance and execution gateway for autonomous AI agents consuming paid HTTP 402 / x402 APIs.

Quick Installation

# Official PyPI package
pip install tryx402

# SDK Usage
from tryx402 import Gateway
gw = Gateway(max_budget_usd=1.00)
tools = gw.search("verified work email")
print(gw.spent_usd)

MCP Server (Streamable HTTP & stdio)

Connect Claude, Cursor, Codex or Hermes directly:

{
  "mcpServers": {
    "tryx402": {
      "command": "python3",
      "args": ["-m", "tryx402.mcp_server"],
      "env": { "TRYX402_MAX_BUDGET_USD": "1.00" }
    }
  }
}

Streamable HTTP Endpoint: https://www.tryx402.app/api/mcp

MCP Server Card: /.well-known/mcp/server-card.json

API Specifications & Manifests