# Signed agent identity (Web Bot Auth)

In 2026 the web is sorting automated traffic into two piles: anonymous automation (challenged, rate-limited or blocked) and **signed agents** that a site can verify and decide about. Cloudflare's signed-agents programme, the IETF *web-bot-auth* drafts and several publishers' policies all rest on the same mechanism: HTTP Message Signatures (RFC 9421) over the request's authority, with a key the site can fetch from the agent's public directory.

CrawlGenie implements the agent side and signs with an Ed25519 key that stays on its servers. The public half is published at:

```
GET /.well-known/http-message-signatures-directory      → {"keys":[{"kty":"OKP","crv":"Ed25519","kid":"…","x":"…"}]}
GET /v1/identity                                        → kid, directoryUrl, agentUrl, whether it is on by default
```

Every request CrawlGenie's servers make for a read (pages, documents, search results it opens, link checks) carries the signature, each signed for the host it goes to and valid for a few minutes, including pages it has to open in a browser to read. Your own browser sessions sign their navigations when the session has `policy.signedAgent: true` (or the workspace default in Settings is on). The headers:

```
Signature-Agent: "https://crawlgenie.com"
Signature-Input: sig1=("@authority" "signature-agent");created=…;expires=…;keyid="<kid>";alg="ed25519";nonce="…";tag="web-bot-auth"
Signature: sig1=:<base64>:
```

A site that supports Web Bot Auth fetches `https://crawlgenie.com/.well-known/http-message-signatures-directory`, checks the signature, and applies whatever policy it has for your agent (allow, allow with limits, charge, or block) instead of guessing from the user agent and IP.

The key page proves that CrawlGenie holds the key it lists, so nobody can copy the page and register as CrawlGenie: its response carries a `Content-Digest` of the exact bytes sent and a signature over the host asked for and that digest.

```
Content-Digest: sha-256=:<base64>:
Signature-Input: sig1=("@authority";req "content-digest");created=…;keyid="<kid>";alg="ed25519";expires=…;tag="http-message-signatures-directory"
Signature: sig1=:<base64>:
```

## What it does and does not change

- It is **identity, not a bypass**. A site can still say no. The difference is that it can say *yes* to you specifically, which anonymous Chromium never gets.
- Signatures cover the authority (host) and the agent name, so one signature per host per hour is enough; CrawlGenie recomputes when the host changes. Sub-resource requests to other hosts carry a signature for the wrong authority; verifiers treat that as unsigned, not as hostile.
- On the hosted service, requests are signed with CrawlGenie's key, so a site that trusts it recognises CrawlGenie agents. A signature under your own domain is part of the Enterprise plan.
- The private key never leaves CrawlGenie and is never shown to a model or recorded; only the public key is published in the directory above.

## Why bother

- Publishers moving to pay-per-crawl and per-agent policies need to know who you are to let you in.
- Your own security team gets an answer to "which traffic is our agents": everything with our `kid`.
- It pairs with the honest stance in the FAQ: CrawlGenie does not solve CAPTCHAs; it gives sites a way not to show you one.

## Turning it on

- Per session: `policy.signedAgent: true`.
- Default for the workspace: Settings → Workspace → **Signed agent identity**, or `PUT /v1/settings {"signedAgent": true}`.
- Verify: open the directory URL from outside, and look for `signed_agent` lifecycle events in a session's timeline.
