tartini-ai/agent-traffic-analytics
About
AgentCake: self-hosted session replay that shows whether your website visits come from humans or AI agents.
AI & Machine LearningMeasured star growth
- in 24h
- +7
- in 7 days
- +80
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
AgentCake — AI Agent Traffic Analytics
Copy and paste these instructions into Claude Code or Codex to complete the installation.
Set up AgentCake 0.6.4 for this website.
Use curl or the GitHub CLI to download the guide at https://raw.githubusercontent.com/tartini-ai/agent-traffic-analytics/v0.6.4/INSTALL.md and follow its steps.
If the download fails, ask for network access.
English · 简体中文
The problem
Is your website getting plenty of traffic, but your conversion rate is staying the same or even decreasing? Could some of those visits be coming from AI agents?
HUMAN Security found that traffic from AI agents and agentic browsers grew 7,851% year over year. If your analytics can't recognize these agents, their visits may be counted as human traffic, making your daily reports misleading.
The solution
We've launched AgentCake, a self-hosted AI agent traffic analytics platform. It records each visit as a session replay. Our behavioral model and rules then identify whether a human, an AI agent or both drove each session.
Here's what AgentCake can help you understand:
- What AI agents found: See which pages AI agents viewed and whether they found the information they needed. Find out whether they only browsed or began signing up.
- Where AI agents got stuck: See the steps where agents stopped. Then decide whether to adapt those steps to make your website more agent-friendly.
- Which AI agents visit most: See which agents visit your website most often, such as Claude in Chrome, Grok Bot and Muse. Use what you learn to optimize your website for them and increase conversions.

The recording is from a test shop: Claude in Chrome added a T-shirt to the cart, and a human took over to check out.
Dashboard preview
Cake style
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Minimal style
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
- Human, agent or script bot: A session is one browser's visit to your site, across all of its tabs. A new one starts once no tab has had activity for 30 minutes, or after 24 hours. AgentCake classifies each tab and gives the session one classification. Agent sessions are split into Agent only and Human + agent. Script bots are programs on the bot list that run the page script.
- Agent names and confidence levels: AgentCake identifies agents by name, such as Claude in Chrome, ChatGPT and Muse, and labels each name Verified or Likely. Agents it can't identify appear as Unnamed.
- Timeline and reasons: A timeline shows when a human or an agent was in control during each session and marks each hand-off. Next to the replay, you can view the reasons for each classification.
- Human and agent traffic: See sessions, visitors, page views and active time for humans and agents. Break down the traffic by path, source, device and geography.
- Self-hosted and open source: AgentCake runs on your computer or server as a single program. It uses one SQLite database and sends no telemetry. The code is available under the MIT License.
Install
Open Claude Code, Codex, or another coding agent in your website's code folder. If your website runs on a platform such as Shopify, use a new, empty folder instead. Then paste these instructions:
Set up AgentCake 0.6.4 for this website.
Use curl or the GitHub CLI to download the guide at https://raw.githubusercontent.com/tartini-ai/agent-traffic-analytics/v0.6.4/INSTALL.md and follow its steps.
If the download fails, ask for network access.
- Tell the agent about your site. It recommends a setup and lists each monthly cost and the total. AgentCake is free, but a public website needs a server to record its visits.
- Once you approve, the agent installs AgentCake, connects your site and checks it with
agentcake doctor. It can also create a server and add a DNS record. You handle sign-in, new accounts, payment, and terms. - To try AgentCake without a server, choose your computer when the agent asks where to run it. On your computer, AgentCake records only visits from that computer, such as visits to your local site.
- AgentCake runs on macOS and Linux and requires uv or Python 3.11 or later. To register and view your dashboard, open http://127.0.0.1:7878/ in your browser. If AgentCake runs on a server, first open an SSH tunnel to it.
How it decides
AgentCake checks four kinds of evidence on your computer or server.
- Name. Does the User-Agent match a known agent?
- Verification. On a server, do request signatures or published IP ranges confirm that name? Without a name, does a published IP range show which company's agent it is?
- Environment. Does the browser show signs of automation, a spoofed identity or a marker left by an agent?
- Behavior. What do pointer movements, keyboard timing and scrolling tell us about who was in control? In Muse's and Grok Bot's cloud browsers, it can't yet reliably tell a person's actions from the agent's. We're improving this.
We tested with 1,118 agent sessions we recorded and 7,122 human sessions, each of one tab, the part of a visit AgentCake classifies. Some visits are misclassified. See the evaluation results.
Your data stays yours
Visit data goes only to your AgentCake installation. AgentCake sends no usage telemetry.
- AgentCake never stores what visitors type, which keys they press, passwords, card numbers, cookies or visitor IP addresses.
- A random ID in the browser counts unique visitors without cookies. It expires a year after their last visit. Only the referring page's domain is kept.
- Visit recording works before registration. Choosing Register and continue sends your registration details to Tartini AI once.
- AgentCake goes online for site checks and monthly downloads of public agent lists and, on servers, a city database. You can turn off these downloads in Settings.
Privacy details · Privacy notice template for your website
Help and contributing
- Have a setup or usage question? Read the FAQ.
- Wrong classification or agent label, or a missing agent name? Describe the session without visitor data. Report a classification issue.
- For rule or model changes, include
agentcake evalresults from before and after the change. Your change must not misclassify more humans as agents. Contributing guide · Instructions for coding agents - Report security issues privately by email. [email protected] · Security policy
License
Copyright Tartini AI. MIT License · Third-party licenses
AgentCake is an independent product and isn't affiliated with the developers of the agents and tools it names. Those developers don't endorse or sponsor AgentCake. All trademarks belong to their owners.
FAQ
What is a session?
When a human or agent visits your website, AgentCake starts a session and assigns it a unique session ID. The session ends after 30 minutes without activity in any tab, or when it reaches the 24-hour limit.
What do Human, Agent and Script bot mean?
- Human: Human activity or a session with limited evidence.
- Agent only: Agent activity with no human activity detected.
- Human + agent: Both human and agent activity detected.
- Script bot: A known bot that runs our page script.
What does Limited evidence mean?
There isn't enough evidence to determine whether the visitor is a human or an agent. These sessions are counted as Human.
Behavioral analysis is currently skipped on mobile and tablet browsers.
What do Verified, Likely and Unnamed mean?
- Verified: The agent or bot's identity is confirmed through a digital signature or published IP ranges.
- Likely: The name is self-reported or identified through known traces.
- Unnamed: An agent is detected, but we don't know which agent it is.
How are visitors counted?
If a session involves agent activity, including Human + agent sessions, the visitor is counted as an Agent visitor. If a session has no agent involvement, the visitor is counted as a Human visitor.
Visitors are counted once per category within the selected date range.
How are page views counted?
If a session involves agent activity, including Human + agent sessions, all page views count as Agent page views. If the session is a Human session, all page views count as Human page views.
What is active time spent?
The average time your website is visible in the browser per session. Background tabs and minimized windows don't count, and overlapping time across tabs is counted only once.
Where can I see Script bot traffic?
You can find Script bot traffic in the dashboard's overall metrics, Script bot cards and Session replay.
Charts, tables and the Path funnel exclude Script bots. Crawlers that don't run our page script are not recorded.
Which time zone does AgentCake use?
The time zone selected in Settings. By default, it uses your server or computer's time zone.
Explore related projects
Loading…













