tryx402 is the financial governance and execution gateway for autonomous AI agents consuming paid HTTP 402 / x402 APIs.
# 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)
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