Capture AI agents in your user logs

An open-source library to track AI coding agents on your site.

8
sites tracked
4,707
total visits (7d)
3%
browsing/coding agents
Dashboard preview

Getting Started

1

Install the tracker

npm install 2027-track
// middleware.ts import { withAIAnalytics } from "2027-track/next"; export default withAIAnalytics(); export const config = { matcher: ["/((?!api|_next|admin).*)"], };
2

Sign in to your dashboard

Enter your email and we'll send you a magic link to view your analytics.

Open Dashboard

Detection

We identify agents by their unique request signatures. Bots and crawlers (Googlebot, GPTBot, etc.) are automatically filtered.

Agent Signal
Claude Code axios user-agent + text/markdown accept
OpenCode text/markdown with q= quality weights
Codex ChatGPT-User user-agent
Unknown AI text/markdown in accept (fallback)

Privacy First

Server-side only

Events sent from your edge/server — visitor IPs never reach us.

No tracking

No cookies, no fingerprinting, no PII collected.

Minimal data

Only: host, path, user-agent, accept header, country.

Proudly open source

Audit the code yourself. Self-host if you prefer.