Skip to content
whoisbrowsing

Install whoisbrowsing with Claude Code, Cursor or Codex

Updated

TL;DR

To install whoisbrowsing with an AI coding agent, give Claude Code, Cursor or Codex the prompt below: it sends the agent to https://whoisbrowsing.com/SKILL.md. The agent makes your script with no sign-in, adds one script tag in the right file for your framework, and gives you a watch link and a claim link.

The prompt

Using an AI coding agent? Give it this prompt:

Add whoisbrowsing (live visitor view) to this project. Follow https://whoisbrowsing.com/SKILL.md exactly.

By using a script an agent makes for you, you agree to the Terms.

No account is needed to start. The script is made without sign-in, and the claim link keeps it in your account later. Already have a script from the home page? In the browser where you made it, the prompt above comes filled in with it, so the agent puts it in instead of making a new one. Anywhere else, paste its tag into the chat too. Tell the agent every address you will use, such as localhost:3000 and your real domain: one script covers them all.

What the agent does

  1. Reads https://whoisbrowsing.com/SKILL.md, a single file with the steps, the tag and the checks.
  2. Calls the API to make the script: POST https://whoisbrowsing.com/api/agent/sites with a body like {"domains":["localhost:3000","yourdomain.com"]}. The reply holds the script's ID (siteId), the script tag (snippet), a watch link for each website and a claim link.
  3. Looks at your project to find the framework, then inserts the tag where that framework expects it. See the guides for Next.js, React, Vue, SvelteKit, Astro, Remix, Nuxt and Angular.
  4. Gives you the watch link (to see visitors live) and the claim link (to keep the script under your Google sign-in).

The result is the same one tag you would paste yourself:

html
<script src="https://live.whoisbrowsing.com/s.js" data-site="YOUR_SITE_ID" async></script>

Replace YOUR_SITE_ID with your script's ID. No script yet? Get your script. Free. No card, and no account needed.

Paste it on every page of your site, in the <head> or anywhere before </body>. The agent puts it in the file every page shares.

The MCP server

If you would rather give your agent tools than a prompt, whoisbrowsing runs an MCP server at https://whoisbrowsing.com/mcp. It offers three tools: create_site, get_install_instructions and check_live.

Claude Code

Run this in your terminal. The syntax comes from the Claude Code MCP docs:

claude-code
claude mcp add --transport http whoisbrowsing https://whoisbrowsing.com/mcp

Then run /mcp inside Claude Code to confirm the connection.

Cursor

Add the server to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json for all projects, as described in the Cursor MCP docs:

mcp.json
{
  "mcpServers": {
    "whoisbrowsing": {
      "url": "https://whoisbrowsing.com/mcp"
    }
  }
}

Codex

Use the CLI, per the Codex MCP docs:

codex
codex mcp add whoisbrowsing --url https://whoisbrowsing.com/mcp

Or add it to ~/.codex/config.toml:

config.toml
[mcp_servers.whoisbrowsing]
url = "https://whoisbrowsing.com/mcp"

Run codex mcp list to see it.

Verify

Before your visitors see it, add whoisbrowsing to your site's privacy policy (a paragraph to paste), and if the law requires your visitors' consent, get it first: see your responsibilities to your visitors.

Do not take the agent's word for it. Check three things:

  1. The diff shows one <script> tag with your script's ID, in the layout or HTML file for your framework, and nothing else changed.
  2. The script lists the address you will open. One script covers several websites, such as localhost:3000 and your real domain, and each gets its own live view.
  3. Open the watch link: your site opens with the live panel, and that tab is your owner view. Gave the agent a script from the home page instead? Open your site once. If the panel shows there, you're watching. If it doesn't, press Watch your site live on the home page. To see a visitor arrive, open your site in another tab or window, or press Open a visitor window on the home page. That tab shows up as "you, testing". The tab with the panel is your owner view, and it is never counted. The check_live tool can confirm from the agent side that the script is connected.

If nothing shows up, check the page source for the tag and its data-site, that the address is in the script's list, and that a Content-Security-Policy or an ad blocker is not stopping live.whoisbrowsing.com. Visitors in the EU, Norway, Iceland, Liechtenstein, the UK and Switzerland, and browsers that send Global Privacy Control, are never shown or counted. In those countries nothing is shown, and nothing is kept on our servers: the script is empty there, and a visitor's live connection from there is refused. Your owner panel doesn't appear either. With Global Privacy Control on (Brave sends it by default), the panel still opens, but your own test tabs don't show.

If you use a Content-Security-Policy, allow script-src https://live.whoisbrowsing.com and connect-src wss://live.whoisbrowsing.com. Nothing else is needed: the owner panel adds no inline styles.

Remove it

  1. Ask the agent to remove the whoisbrowsing tag, or delete it yourself from the file it edited, and deploy. Visitors stop showing as soon as the change is live.
  2. To turn the script off everywhere at once, delete the script itself. Keep it in your account with the claim link, then on the script's page in your dashboard press Delete this script… and confirm with Yes, delete. For a script made on the home page, open Site details from it and do the same. If the tag stays on a page, the live server refuses it: nothing is shown, and nothing is kept on our servers.

If the agent gets stuck

What happens What to do
The agent says it cannot open web pages Turn on its web access, or connect the MCP server above, which serves the same instructions as a tool
It picked the wrong file Point it at your root layout or main HTML file, or follow your framework's guide by hand
It made a script for localhost:3000 but you are watching production Add your production domain to the same script: claim it with the claim link, then add the domain in your dashboard. Your code stays the same
You see nothing Check the page source for the tag and its data-site, that the address is in the script's list, and any CSP or ad blocker in the way

When an agent is not the right route

For a hosted site builder you edit in the browser, such as WordPress or Shopify, the agent has no project to edit. It can still make your script and hand you the tag, but you paste the tag yourself; the install page lists every platform. You can also start on the home page: Get your script. To see what you are installing, read how it works and the privacy page, or go back to the home page.

See who is on your website, right now

Type your website, paste one line, and watch your visitors live. No account needed.

Free · Under 4 KB · No cookies on your visitors · No data stored about your visitors