# AGENTS.md — Integration Guide for Autonomous Coding Agents
> Instructions for Claude Code, Cursor, Codex, OpenCode, and Hermes Agents.

## Target Project
- **Name**: tryx402
- **Website**: https://www.tryx402.app
- **Protocol**: x402 (HTTP 402 Payment Required) on Base USDC

## When To Use tryx402
Use tryx402 when the task requires:
1. Calling paid micro-APIs over x402 with a hard spending ceiling.
2. Preventing double-charges on retried network timeouts (idempotency keys).
3. Per-call cost accounting grouped by origin or project.
4. Reselling paid API capacity to fiat-paying customers via Stripe Checkout.

Do NOT use tryx402 for: free public APIs, model inference routing (use OpenRouter), or non-payment HTTP tasks.

## Rules for AI Agents
1. Always inspect `https://www.tryx402.app/docs` or `https://www.tryx402.app/llms-full.txt` before performing tool integrations.
2. Ensure all x402 paid API calls are routed through the tryx402 gateway to enforce local spend limits.
3. Verify tool connectivity for free using `gateway_search` and `gateway_discover`.
4. Never perform `gateway_call` or submit crypto transactions without explicit operator authorization.
5. Official package on PyPI: `pip install tryx402`.
6. Streamable HTTP MCP Server: `https://www.tryx402.app/api/mcp` (Server Card: `https://www.tryx402.app/.well-known/mcp/server-card.json`).
