AI traffic
Add one line to your server, and the AI traffic page shows which AI crawlers and agents read your pages.
export { proxy } from "@databuddy/sdk/agents";Visitors that AI assistants send you show up through the tracker on its own. Crawlers and coding agents such as GPTBot, ClaudeBot and Claude Code don't run JavaScript, so they appear only once @databuddy/sdk/agents runs on your server.
Set it up on your host
No API key is needed, only your website ID in NEXT_PUBLIC_DATABUDDY_CLIENT_ID, its NUXT_PUBLIC_, VITE_ or REACT_APP_ versions, or DATABUDDY_WEBSITE_ID. Needs @databuddy/sdk 3.0.1 or later.
Requests count only when they come from your website's domain or an allowed origin, so local development never shows up.
Send Vercel logs instead
On Vercel Pro or Enterprise, add a drain under Team Settings → Drains with Logs, Custom Endpoint and this URL:
https://basket.databuddy.cc/vercel/your_website_idSelect the Static Files, Functions, Edge Functions and Rewrites sources and Production, choose JSON or NDJSON, and leave sampling off. Vercel bills drains by volume. Logs have no Accept header, so markdown is recognized from .md paths only, but they add the HTTP status each agent got.
Check what gets recorded
Deploy, open the AI traffic page and click Test setup. Databuddy requests your homepage and /llms.txt as GPTBot and tells you whether each was recorded; test requests never show in your data.
trackAgents reports GET and HEAD requests from known AI user agents, agent browsers that sign requests with Signature-Agent, and non-browser clients that prefer markdown. It skips images, scripts, styles and fonts, never throws, and gives up after 3 seconds in the background.
Each request records the path without its query, the host, user agent, Accept header, referrer, agent and format. The IP address is sent to check crawlers against their operators' published ranges, and isn't stored.
Every Monday at 9:00 AM UTC, owners, admins and members who turned it on get a weekly summary email covering the previous Monday to Sunday in each website's reporting timezone. It includes an AI traffic section when AI read your websites. Organizations that post investigations to Slack also get a shorter version in those channels. Owners and admins turn it off for everyone under Settings → Notifications → Weekly summary; anyone turns it on or off for themselves under Your emails.
Related
How is this guide?