KYA: know your agent

Learn whether each visitor to your site is a person, an AI agent or other automation, from a script tag, an edge package or a lookup API.

KYA tells your site whether each visitor is a person, an AI agent or other automation, and, for an agent, which one and whether that's verified. This page helps you pick one of the three ways to get that answer.

{ "actor": "ai_agent", "operator": "Anthropic", "product": "Claude-Agent", "verification": "network_verified", "confidence": "high", "reasons": ["agent_network"] }

KYA returns results only. It never blocks, challenges or slows a visitor: what to do with a verdict is your decision. See Acting on a verdict.

Three ways in

Use it whenYou getYour code
The snippetYou can add a script tag to your pagesA verdict for each browser session, read by session idOne tag, and one API call to read a session
The edge packageYour site runs on Cloudflare Workers, Next.js or NodeA verdict on every request, as kya-* request headers. The snippet is served from your own domainA few lines of setup, no API call
Agent lookupYou have one request's IP address, user agent and headers, and no page: an API, a feed, a logWhether it's a declared AI agent or crawler, and whether that claim is verified, claimed or impersonatedOne API call per request
  • Only a session can say human. The snippet sees how the page is used. A lookup sees one request, and finds agents that declare themselves.
  • The edge package uses both: the session's verdict when the browser has one, a lookup otherwise.
  • All three use your API key (gsk_…, see Authentication). The snippet also needs a site's public key (gpk_…).

Start here

On this page