AgentCake — AI Agent Traffic Analytics
Copy and paste these instructions into Claude Code or Codex to complete the installation.
Set up AgentCake 0.6.3 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.3/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.3 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.3/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. admin@tartini.ai · 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?
A session is one browser's visit to your site, across all of its tabs. It ends once no tab has had activity for more than 30 minutes, or once it's more than 24 hours old. Activity includes clicking, scrolling, typing and opening a page, but not typing in a password field or another private field.
What do Human, Agent and Script bot mean?
- Human: AgentCake judged that only a human used your site. Sessions it can't classify also count as Human, with the Limited evidence tag.
- Agent: AgentCake found signs of software that can use a browser by itself, such as Claude in Chrome or Playwright. The signs can be any of the four kinds of evidence under How it decides. Agent only means that it found no human taking part, and Human + agent that it found a human too.
- Script bot: A program ran the page script and identified itself as a bot on AgentCake's list, such as a search engine.
What does limited evidence mean?
AgentCake found no clear sign of an agent or a bot, but couldn't confirm a human either. For example, each tab had fewer than 3 actions on a computer, or some signs pointed to a human and others to an agent. Such a session counts as Human, with the Limited evidence tag.
When the browser reports a phone or tablet, AgentCake skips its behavior check, so an agent that drives a real phone without leaving traces can count as Human.
How does AgentCake classify a session with several tabs?
AgentCake classifies each tab, then the session: Agent if it found an agent in any tab, Human + agent if it also found a human, Script bot only if every tab is a Script bot, and Human otherwise.
What do Verified, Likely and Unnamed mean?
Verified and Likely show how sure AgentCake is of a name.
- Verified: A digital signature confirms the name, or the visitor's network address is among those published for that agent or bot.
- Likely: The software reported this name itself, or left traces that AgentCake recognized, such as the Stop button of Claude in Chrome.
When AgentCake can't name an agent, the label says what the evidence shows, such as Unnamed · Automated browser, Unnamed · Cloud browser or Unnamed · Browser extension.
How are Human and Agent visitors counted?
In the selected date range, a visitor with an Agent session, Human + agent included, counts once as an Agent visitor. One with a Human session counts once as a Human visitor. A visitor can count as both.
How are Human and Agent page views counted?
Every page view counts under its session's classification: in a Human + agent session, the human's page views count as Agent page views too. To see who acted on each page, look at Main actor under Pages visited in Session replay.
What is active time spent?
Active time spent is the time a page of your site was showing in the browser during a session. Background tabs and minimized windows don't count, and time when two tabs are showing at the same time counts once. The dashboard shows the average per session.
Where do Script bot sessions go?
To see them, choose All or Script bot in Session replay. The dashboard's five overall cards include them, and each of these metrics also has a Script bot card. The charts, the tables and the Path funnel leave them out. Crawlers that don't run the page script, such as OpenAI's GPTBot, aren't recorded.
Which time zone are dates in?
The one under Time zone in Settings. By default, that's the time zone of the computer or server AgentCake runs on, often UTC on a server.
Metadata
Release files for agentcake 0.6.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentcake-0.6.3-py3-none-any.whl | Python 3 | none | any | Details for agentcake-0.6.3-py3-none-any.whl |
Release files / agentcake-0.6.3-py3-none-any.whl
| Download URL | agentcake-0.6.3-py3-none-any.whl |
|---|---|
| Size | 2.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4f0b06e7bebb3b682ea5893dd92803e6a6d2ca26097340af1d4b5eda727a1a0
|
|
BLAKE2b-256 checksum How to use checksums |
657c44f294205e79a203c1096ff5178bd7874e500369217b3fe3b3f3483fc947
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for agentcake 0.6.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for agentcake-0.6.3-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.