Features

Explore the gateway building blocks for publisher control over AI access, including verified identity, access terms, policy decisions and metered actions.

Publisher applications are open. Gateway onboarding is in development; payment enforcement and production rollout are not part of this launch.

Updated · Markdown version

Tollgenic is being built to help publishers put their terms into the agent request path. The gateway core implements identity verification, contract compilation, policy decisions, metering and decision events. The Cloudflare Worker integration, production storage adapters and control plane are still in development. The sections below explain the core behavior and intended production workflow; they are not a claim that a hosted production service is available today.

What these capabilities mean for a publisher

  • A clearer offer: turn an article retrieval, listing lookup or catalog search into a named action with explicit access terms.
  • An identifiable participant: verify a signed operator without pretending that every unsigned request can be identified.
  • A decision you can review: compare your policy with actual request patterns before you choose enforcement.
  • A path toward compensation: explore how a permitted action could be priced and recorded. Observe-mode requests are evidence, not sales.

Together, these building blocks support the content and AI ecosystem. The commercial goal is to help creators collect money for permitted AI use of their efforts, with agreement on the action and a record of settlement. Pricing, payouts and production payment operations still need to be established before that becomes a live offer. See the publisher FAQ for practical questions, or plan your starting point.

Identity verification

Verified identity means a request whose Web Bot Auth signature checks out against the operator’s published key, nothing less. The verifier parses RFC 9421 Signature-Input and Signature, requires @authority, @method, @path and Signature-Agent to be covered, enforces the validity window with a 24-hour maximum lifetime, and rejects replays with a shared nonce store. Keys are looked up by JWK thumbprint in the operator’s directory at /.well-known/http-message-signatures-directory.

The key-directory client is hardened because it is the one place the gateway fetches a URL an outsider chose: no private or link-local addresses, no redirects to a different host, bounded response size, short timeouts, and a cache per operator with coalesced fetches so a burst of requests produces one directory lookup.

Both Signature-Agent forms in circulation are accepted: the structured string that Cloudflare’s verifier recognises today and the dictionary form from later drafts. The decision event records which one was used, so you can see interoperability in your own data.

Contract compiler

You describe what agents may do in a JSON-LD document: which actions exist (fetch_article, search_catalog, get_item, check_availability), which routes they map to, what each costs, which tiers may call them and at what rate. The compiler validates the document, canonicalizes it with RFC 8785, signs it as a detached EdDSA JWS, assigns a policy_version, and publishes it at /.well-known/tollgentic.json next to the public key that signed it.

Agents read the same document the gateway enforces. There is no separate human-readable terms page that drifts from what the code does.

Policy engine

decide() is a pure function. It takes the identity result, the operator’s tier, the route group and the active contract, and returns exactly one of allow, allow_metered, challenge_402, rate_limit_429, deny_403 or redirect_307. It has no clock, no network and no state, which is what makes it testable with property tests and safe to reason about.

Two rules sit above everything else. Routes in your never-touch group (checkout, login, account, form posts by default) are allow in every mode. And in observe mode, whatever the engine decides is recorded as would_action while action_taken is allow, so you accumulate evidence without changing a single response.

Metered actions over HTTP 402

When an action is priced, the gateway answers 402 Payment Required with a PAYMENT-REQUIRED header carrying x402 v2 terms: amount, asset, network (CAIP-2), recipient, and a validity window. The agent retries with PAYMENT-SIGNATURE, the gateway verifies and submits it to a facilitator, and the origin response goes back with PAYMENT-RESPONSE.

Settlement is a state machine, not a boolean. An action moves through quoted, payment_received, settling, and then settled, failed or unknown; unknown is resolved by reconciliation against the facilitator by idempotency key. Idempotency keys are scoped to your tenant and bound to the action, amount and recipient, so a replayed key with a different amount is rejected rather than honoured.

Ledger

Every settlement produces a double-entry record in integer micro-USD: a debit against the agent operator’s account and a credit to yours, never one without the other. The tested in-memory ledger rejects unbalanced entries. The production database schema defines balance and append-only constraints; its storage adapters and operational tie-out reports are still in development. Corrections are intended to be new entries rather than edits.

Observe mode and safety rails

Observe mode is the default and the first fourteen days for every site. Beyond it, three rails stay in place in every mode: the never-touch route group, the TOLLGENTIC_MODE=bypass kill switch that turns the Worker into a transparent proxy in one deploy, and a route-level rollback that removes the Worker from the request path even when the Worker itself is unhealthy. We drill the rollback before a site goes live and record how long it took.

Agent-facing surface

Beyond ordinary HTTP, the gateway exposes your actions as a stateless Model Context Protocol server on the 2026-07-28 revision, so an agent that speaks MCP can discover and call the same actions under the same contract and the same metering. It also publishes llms.txt v2 with markdown alternates for your pages, which is how this site is served too.

Decision events

Every request through the gateway produces one event: policy_version, tenant, route_group, identity (verified, invalid or unverified), operator, tier, would_action, action_taken, mode, signals, latency for each stage and in total, a trace id, and a label that stays null until a human or an independent source confirms what the request was. The events are your evidence: weekly reports of precision, recall and false-positive rate per route group are computed from them, never from our word.

What it does not do

Tollgenic does not fingerprint browsers, solve CAPTCHAs, or guess whether unsigned traffic is a bot. Unsigned requests are unverified, and what happens to them is your policy, not our heuristic. It does not sit between your users and your payment processor; checkout is in the never-touch group. And it does not publish accuracy or latency figures for itself until the measured evidence exists.