When the user wants to know which AI bots (GPTBot, ClaudeBot, PerplexityBot, OAI-SearchBot, ChatGPT-User and others) visit their site, which pages they read or fail on, or how many people arrive from ChatGPT, Perplexity, Gemini, Copilot or Claude answers, from their own server logs. Uses Marmalade's free log reader: it runs on the user's machine and sends nothing anywhere. Not for whether a site allows AI bots (use ai-crawler-check) or which brands AI names (use ai-visibility-tracking).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Ai Bot Traffic?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/alexjcomeau-ai-bot-traffic)
---
name: ai-bot-traffic
description: "When the user wants to know which AI bots (GPTBot, ClaudeBot, PerplexityBot, OAI-SearchBot, ChatGPT-User and others) visit their site, which pages they read or fail on, or how many people arrive from ChatGPT, Perplexity, Gemini, Copilot or Claude answers, from their own server logs. Uses Marmalade's free log reader: it runs on the user's machine and sends nothing anywhere. Not for whether a site allows AI bots (use ai-crawler-check) or which brands AI names (use ai-visibility-tracking)."
license: MIT
metadata:
version: 0.9.1
homepage: https://github.com/AlexjComeau/marmalade
---
# AI bots and AI visits, from server logs
`marmalade traffic` reads access logs on the user's machine and counts two things: requests from AI
bots and assistants, and visits from people who clicked a link in an AI answer. It is free, and
nothing leaves the machine.
## Run it
It needs a Marmalade project folder to store the counts. Use the user's existing Marmalade project, or
make a new folder for it, never inside their website's own code: `marmalade -C ~/ai-traffic init --no-agents`
(free). Then pass every log file, rotated ones included, in one command:
```bash
marmalade -C ~/ai-traffic traffic ~/ai-logs/access.log*
marmalade -C ~/ai-traffic traffic --days 7 --json # what is stored, as data
```
Where the logs are:
| Site runs on | Logs |
| - | - |
| nginx | `/var/log/nginx/access.log*` |
| Apache | `/var/log/apache2/access.log*` or `/var/log/httpd/access_log*` |
| Caddy | its access log, as JSON lines |
| Vercel, Cloudflare, Netlify | a log drain or export as JSON lines |
| Anything else | CSV or JSON lines with a user agent, a path, a referrer, a status and a time |
Server logs are often readable only by root. Do not run `sudo` yourself. Ask the user to copy them
somewhere readable, then read the copies:
```bash
mkdir -p ~/ai-logs && sudo cp /var/log/nginx/access.log* ~/ai-logs/ && sudo chown "$USER" ~/ai-logs/*
```
Importing the same files again never counts anything twice.
## Explain the result
- **Live fetches** (ChatGPT-User, Claude-User, Perplexity-User and others): an assistant read the page
because a person asked a question just now. The strongest sign of demand.
- **Search crawlers** (OAI-SearchBot, Claude-SearchBot, PerplexityBot): building the index an assistant
searches before it answers.
- **Training crawlers** (GPTBot, ClaudeBot, CCBot and others): collecting pages for model training.
- **Pages with errors:** a page an AI bot keeps asking for and cannot get. Fix these first.
- **Visits from AI answers:** people who clicked through from ChatGPT, Perplexity, Gemini, Copilot or
Claude, and the pages they landed on.
If the logs are unreadable, or the result shows no AI visits, say so plainly and stop. Do not guess at numbers.
Limits to mention when they matter: a user agent can be faked, and a CDN that serves pages from its
cache hides those requests from the server log. If AI crawlers are missing entirely, run the
ai-crawler-check skill: robots.txt or a firewall may be turning them away.