Overview
A dataset and a small classifier from Mintlify that tell agents, AI crawlers, search crawlers and bots apart from people. Mintlify hosts documentation for thousands of companies, and the README says a growing share of that traffic now comes from agents such as Claude Code, ChatGPT and Cursor. The bot lists the team started with matched user agent substrings, put everything automated in one bucket and believed whatever a request claimed to be. This package returns a category (for example agent, bot or ai-crawler), a kind (coding, http-client, impersonator), the name, operator and version, and the reasons for the verdict. It verifies crawlers against their operators' published IP ranges, so a request that claims to be GPTBot from an address outside OpenAI's ranges is marked as an impersonator. It also catches an agent hiding behind a browser user agent when its Accept header prefers markdown over HTML. It has zero dependencies and runs wherever fetch does: Node, Bun, Deno, Cloudflare Workers and Vercel Edge. Each category is also available as a single regular expression. A bundled skill teaches a coding agent to apply the patterns to stored logs; ClickHouse, DuckDB and Postgres are listed as verified. A typical use is to serve markdown when the visitor is an agent. Licence MIT. 27 stars on GitHub (created 2026-11-10).
Quick summary. This page gives a short overview of this tool. For installation steps, full documentation and the latest changes, read the official source; details such as features and versions can change there first.
Example prompts example
Illustrative examples written by FoxaMind's AI Trends Scout — not quoted from the source.
- import { classify } from '@mintlify/agent-traffic' classify({ userAgent: 'axios/1.13.2' }) // { category: 'bot', kind: 'http-client', name: 'axios', ... }
- For IP verification, load the published ranges with loadIpRanges() and pass the real client IP to classify().