Skip to main content
AgentCake

AgentCake — AI Agent Traffic Analytics

Releases: download Issues: report a bug License: MIT

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:

  1. 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.
  2. 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.
  3. 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.

This animation scrolls through the dashboard, opens the session list, then replays a hand-off from Claude in Chrome to a human.

The recording shows Claude in Chrome adding a T-shirt to the cart on a test shop and a human taking over to check out.

Dashboard preview

Key metrics
                                                                                                                                                                            
Top agents and Trends
                                                                                                                                                                            
Paths and Sources
                                                                                                                                                                            
Devices and Geography
                                                                                                                                                                            
Session replay
                                                                                                                                                                            
Session replay: Claude in Chrome, then a human
                                                                                                                                                                            
  • Human, AI agent or bot: AgentCake gives each session a single classification. Agent sessions are split into Agent only and Human + agent.
  • 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 a new, empty folder and paste these instructions:

Install AgentCake 0.5.1 by following the guide at https://raw.githubusercontent.com/tartini-ai/agent-traffic-analytics/v0.5.1/INSTALL.md step by step.
Use curl or the GitHub CLI to download the guide.
Finally, print the address of the AgentCake local page and the steps to connect a website.

Your agent downloads the release and verifies it. The agent then starts AgentCake and runs agentcake doctor, which checks that the installation works.

Next, open http://127.0.0.1:7878/ and register your installation. The page guides you through connecting your website.

AgentCake runs on macOS and Linux and requires uv or Python 3.11 or later. To install manually, follow the steps in INSTALL.md.

How it decides

To identify agent sessions and the agents behind them, AgentCake checks four layers of evidence on your machine.

  • Name: AgentCake matches the name in the User-Agent string against the agent lists included in each release.
  • Verification: On a server, AgentCake verifies self-reported agent names with request signatures and published IP ranges.
  • Environment: AgentCake detects automation traces, spoofed browsers and the page markers that some agents add.
  • Behavior: Our behavioral model analyzes pointer movement, keyboard timing and scrolling for every action in a session.

AgentCake's test data includes 1,118 agent sessions from our own recordings and 7,122 human sessions. AgentCake can make mistakes, and we're continuing to improve the model's performance.

For details on how each number is counted, see the evaluation report.

Your data stays yours

The page script sends visit data only to your own AgentCake installation. The installation doesn't send any usage data. AgentCake accesses the internet only when you register, update its agent lists or run a site check.

AgentCake doesn't record what visitors type or which keys they press. It also doesn't record passwords, card numbers, cookies or IP addresses.

To count visitors, AgentCake stores a random ID in each visitor's browser without using a cookie. The ID expires a year after the visitor's last visit. AgentCake keeps only the domain of the referring page.

AgentCake sends your registration details only once, when you select Register and continue. AgentCake records visits whether or not you register.

For details about how AgentCake handles data, see PRIVACY.md. To inform your visitors, you can use the template in docs/privacy-notice-template.md.

Connect your website

After you register, copy the setup instructions from the local page. Open a coding agent in your website's project folder, and paste the instructions. The agent asks for your website's address and the machine that will run AgentCake.

To load cake.js on every page, the agent adds one line of code to your shared page layout. The cake.js script is 48 KB gzipped. The agent can also add server middleware for Next.js, Express, Flask, FastAPI, Django, PHP and WordPress.

You can also complete these steps manually.

For a public website, run AgentCake on a server with Docker or systemd. Open the dashboard through an SSH tunnel to keep it private. For step-by-step instructions, see SERVER.md.

Help and contributing

For answers to common questions, see docs/FAQ.md. If AgentCake misclassifies a session or doesn't recognize an agent, open an issue. Describe what happened without including any visitor data.

The rules and the model's parameters are JSON files in agentcake/data/. When you send a pull request, include the agentcake eval results from before and after your change. A pull request is merged only if it does not increase the number of humans classified as agents.

For contribution guidelines, see CONTRIBUTING.md. For coding agent instructions, see AGENTS.md.

To report a security vulnerability, email admin@tartini.ai instead of opening an issue. For more information, see SECURITY.md.

License

AgentCake is released under the MIT License, copyright Tartini AI. For the full license, see LICENSE.

Third-party components bundled with AgentCake retain their respective licenses. For the list, see THIRD_PARTY.md.

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.

Metadata

Release files for agentcake 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for agentcake 0.5.1
File Interpreter ABI Platform Actions
agentcake-0.5.1-py3-none-any.whl Python 3 none any Details for agentcake-0.5.1-py3-none-any.whl

Release files / agentcake-0.5.1-py3-none-any.whl

Download URL agentcake-0.5.1-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0a79e9c863fa4615ccbbc7de373fff4709e9d1449d9a01f4e4c8b5a673c9b3f8
BLAKE2b-256 checksum
How to use checksums
fdf81872935a51fa54f57a7255d70bb576a2c4a2651dca5ca8ebb169d17fffae
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 18, 2026.

Transparency log

Security for agentcake 0.5.1

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.5.1-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 18, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page