AxonGate: safe web access for AI agents, paid per call
A live API that lets AI agents read pages, search, answer and verify claims, screened for prompt injection, with every quoted line checked against its source, paid per call in USDC with no account.
| Problem | Agents need web access they can trust and pay for without accounts or API keys. |
|---|---|
| Architecture | A live paid API: pages read as clean Markdown with prompt-injection screening, web search, grounded answers, claim verification, a standalone injection scan and a token check. Every quote in an answer or verdict is checked verbatim against the fetched source. Agents pay per call in USDC on Base, Polygon or Arbitrum over x402, charged only on success. Hosted MCP server, OpenAPI, agent-discovery manifests and llms.txt. |
| Measured outcome | Live at api.axongate.one with its x402 catalogue, OpenAPI and llms.txt published. Payment settles only on a 2xx response, so errors are never charged, and a verdict without a matched verbatim quote is downgraded to "insufficient". An offline smoke suite and a secret scanner run in CI on every push and pull request. 31 paid calls from 11 outside wallets settled in USDC since April 2026 (on-chain; the owner's own smoke tests excluded). |
| Stack | |
| Links |
Step 1: AI agent: x402 client or MCP tool call. Step 2: 402 Payment Required: one USDC option per network. Step 3: Agent signs an EIP-3009 authorisation and retries. Step 4: Web search; Concurrent page reads, cached in Redis; Prompt-injection screen. Step 5: Passage selection; One structured LLM call. Step 6: Verbatim quote check against fetched text. Step 7: 2xx: payment settles; Error: nothing charged.
AI agents increasingly need to read the live web. Two things get in the way. Paying for an API usually means a human creating an account and an API key. And a fetched page is untrusted input: it can carry instructions aimed at the model, and a model asked to cite a page can invent the quote. AxonGate is an API built around both problems, and I built and operate it alone.
What it does
Seven paid products share one pipeline: Safe Read (a page as clean Markdown), Batch Read, Web Search, Injection Scan, Grounded Answer, Claim Verify and Token Check. Prices are per call and published in the x402 catalogue.
Every page is screened for prompt injection by a deterministic, rule-based scanner before it reaches a model, and suspicious passages are removed. Requests to private, loopback or other reserved addresses are refused before anything is fetched. Grounded Answer and Claim Verify run a search, read the results concurrently, select passages, and make one structured LLM call. The quotes the model returns are then matched against the fetched text. Unmatched quotes are dropped, and a “supported” or “refuted” verdict left without a matched quote is downgraded to “insufficient”. The model cannot invent evidence and have it pass.
Payment without an account
A call without payment gets 402 Payment Required with one exact-scheme USDC option per network: Base first, then Polygon and Arbitrum. The agent’s x402 client signs an EIP-3009 authorisation and retries. The middleware settles the payment only if the response is 2xx, so a failed call costs nothing. The same tools are offered as a hosted MCP server, paid per tool call over the x402 MCP transport, and as a local MCP package on npm.
What changed in v2
The first version sold bundles through Stripe alongside x402 and settled through a facilitator the main agent marketplace does not index. It drew many payment challenges, mostly from directories crawling each other, but very few outside paid calls (18, from 2 wallets) and no Stripe sales. v1 priced every job against live gas and supplier cost and refused it below a margin floor; v2 moved to fixed prices with per-product margin tracking. The October 2026 relaunch was built from what agents actually pay for: prices matched to the market for reads and searches, settlement through the facilitator that gets endpoints listed, and safety (injection screening and quote checks) as the difference.
Paid calls so far
The on-chain record for the payment address shows 31 paid calls from 11 outside wallets, in USDC on Base, between 30 April and 10 November 2026: 18 from 2 wallets in the first version (30 April to 18 June), and 13 from 9 wallets after the relaunch (25 October to 10 November). Another 13 calls came from my own wallet as smoke tests and are not counted. The revenue is small, so no amount is given.
Operating it
Operator metrics (behind a token) count revenue, supplier cost, settled calls per network and payment challenges per product and path, so each product’s margin is visible. Reads are extracted locally with no supplier cost. A paid smoke script makes real calls from a separate buyer account, needed once per endpoint for marketplace indexing. CI compiles the code and runs the offline smoke suite (the x402 surface with mocked handlers) and a secret scanner on every push and pull request. Production runs on Railway with a web service, Redis and a health check.