What is AgentKit?
World AgentKit is a toolkit that lets AI agents prove they are backed by a real, verified human via World ID. When integrated with x402, it enables a free trial path: agents registered in World’s AgentBook can access Exa’s/search and /contents endpoints without paying USDC.
This works alongside the standard x402 payment flow. If an agent has free trial uses remaining, it gets results for free. Once exhausted, it falls back to the normal USDC payment path.
AgentKit free trial and x402 payment are both bypassed if your request includes an
x-api-key or Authorization: Bearer header. The normal API key billing flow takes priority.How it works
When a client hits/search or /contents without an API key, Exa responds with 402 Payment Required. The response includes an agentkit extension in the PAYMENT-REQUIRED header containing a CAIP-122 (Sign-In with Ethereum) challenge.
The agent signs this challenge with its registered wallet, and Exa verifies:
- Signature check — validates the SIWE signature against the wallet address (supports both EOA via EIP-191 and smart contract wallets via ERC-1271)
- AgentBook lookup — resolves the wallet to an anonymous
humanIdvia the AgentBook contract on World Chain (eip155:480), confirming a unique verified human delegated their identity to this agent - Usage check — if the human still has free trial uses remaining, access is granted; otherwise, falls back to requiring USDC payment
Quickstart
1. Register your agent in AgentBook
This is a one-time setup. You need the World App with a verified identity.2. Send a request (get the challenge)
402 response includes an agentkit extension inside the decoded PAYMENT-REQUIRED payload:
3. Sign the challenge and resubmit
Construct a SIWE message from theinfo fields (domain, uri, nonce, statement, etc.), sign it with your registered agent wallet using one of the supportedChains types, and send it in the agentkit header (base64-encoded JSON):
200 with search results — no payment needed.
Using the AgentKit x402 skill
Instead of implementing the challenge-response flow manually, add the agentkit-x402 skill to your AI agent:402 response with an AgentKit extension.
Free trial details
- Each verified human gets a fixed number of free requests across all agents they back
- Usage is tracked per human per endpoint (
/searchand/contentsare counted separately) - Two agents backed by the same human share the same counter
- Once free trial uses are exhausted, the agent falls back to the standard x402 payment flow
- The same 10-result cap applies to free trial requests on
/search - The free trial counter is not currently exposed in the API response — when uses are exhausted, the server responds with a standard
402without granting free access
Supported endpoints
| Endpoint | x402 Payment | AgentKit Free Trial |
|---|---|---|
/search | Yes | Yes |
/contents | Yes | Yes |
/answer | No | No |
/research | No | No |
/findSimilar | No | No |
Network details
| Property | Value |
|---|---|
| AgentBook chain | World Chain |
| Chain ID (CAIP-2) | eip155:480 |
| Verification | AgentBook contract on World Chain |
| Supported wallet types | EOA (EIP-191) and smart contract wallets (ERC-1271) |
FAQ
Can I use both x402 payment and AgentKit?
Can I use both x402 payment and AgentKit?
Yes. The
PAYMENT-REQUIRED response includes both payment pricing and the AgentKit challenge. Your client can choose either path. If free trial uses are exhausted, the agent can fall back to paying with USDC.What happens if my agent isn't registered in AgentBook?
What happens if my agent isn't registered in AgentBook?
The AgentKit verification fails silently and the request is treated as a standard
402 — your agent can still pay with USDC via the normal x402 flow.Do two agents backed by the same human get separate free trial quotas?
Do two agents backed by the same human get separate free trial quotas?
No. Usage is tracked per human (via the anonymous
humanId from AgentBook), not per wallet. Two agents backed by the same World ID share the same counter.Which blockchain networks are involved?
Which blockchain networks are involved?
USDC payments settle on Base (
eip155:8453). AgentKit verification uses World Chain (eip155:480) for AgentBook lookups. These are independent — AgentKit doesn’t require any on-chain payment.What wallet types are supported?
What wallet types are supported?
Both EOA (externally owned accounts) using EIP-191 signatures and smart contract wallets (e.g. Coinbase Smart Wallet, Safe) using ERC-1271. See the World AgentKit SDK reference for details.
Resources
- x402 payment guide: standard USDC payment flow
- World AgentKit docs: full AgentKit documentation
- World AgentKit integration guide: AgentBook registration
- World AgentKit SDK reference: SDK API reference
- AgentKit x402 skill: pre-built skill for AI agents
- x402 protocol docs: full x402 specification

