Start counting
Pick a name, then choose how your prompts get counted. No email and no password: you get a personal link instead, so keep it to yourself.
This browser is connected as . Your links are below. See your stats.
Starting a new name replaces the key saved in this browser. Your current counter keeps its streak, but you can only get back to it with its link. Copy your link from the steps below before you carry on.
Then choose how to count
The browser extension works on: Claude, ChatGPT, Gemini, Perplexity, Copilot, Grok, DeepSeek and Le Chat, in Chrome, Edge, Brave or Arc.
You're . Now choose how to count
Your key is saved in this browser so your stats page works here. Save your link somewhere safe too (a password manager is ideal): it's the only way back in on another device. The link can only add counts and read your stats. It can't change your settings or delete your account.
Pick one way for each app. Live counts and AI reports add together, so if the same app is counted two ways, its prompts count twice. Most people need just one: the browser extension.
counted live How it counts: each time you press send, your count goes up by 1, straight away. Nothing to schedule and nothing to remember.
What it costs you: nothing. No AI is involved: the extension just sends a tiny “+1” to Promptmiles, so it uses none of your AI plan, credits or messages.
Coming soon. The extension is waiting for approval on the Chrome Web Store, so the steps below won't work just yet. Until it's out: if you use Claude Code, add the hook. Otherwise ask your AI to report as a stopgap.
- Add Promptmiles to your browser. Works in Chrome, Edge, Brave and Arc.
- Paste your link. Click the Promptmiles icon in your toolbar (pin it from the puzzle-piece menu if you can't see it), paste this link and click Connect:
- Check it worked: send a prompt on claude.ai or ChatGPT. The icon shows today's count within a few seconds, and My stats shows it marked counted live.
Works on: Claude, ChatGPT, Gemini, Perplexity, Copilot, Grok, DeepSeek and Le Chat in your browser. Regenerating an answer doesn't count. Nothing you type leaves your browser: the extension only ever sends “+1”.
Also use a phone or desktop app? The extension can't see those. You can add AI reports for them, but only if the app keeps its chats separate: Claude and ChatGPT show the same chats on the web and in their apps, so a report would count your web prompts a second time. For those, stick with the extension.
counted live Claude Code only (the terminal or desktop coding tool). For claude.ai, use the browser extension.
How it counts: live. Every prompt you send adds 1 the moment you send it, with nothing to schedule.
What it costs you: nothing. The hook runs on your computer and sends a tiny “+1”, so it uses none of your Claude usage or tokens.
- The easy way: let Claude Code add it. Open Claude Code, paste this whole message in and send it. It adds a small “hook” (a command Claude Code runs each time you send a prompt) to your settings file and tells you when it's done:
- Restart Claude Code so it picks up the change: type
/exit, then start it again (or quit and reopen the desktop app). - Check it worked: send any prompt, then open My stats. Today should show at least 1, marked counted live. Nothing there after a minute? See “Doing it by hand” below.
- Optional: split your count by project. This version of the hook also sends the name of the folder you're working in (and nothing else), so My stats can show which projects your prompts went to. Labels stay private unless you make them public. Use it in place of the one in step 1:
- Optional: add the connector too, so you can ask Claude Code for your streak. Paste this into Terminal:
Doing it by hand instead
- Open Terminal (on a Mac: press ⌘ + Space, type Terminal, press Return). On Linux, open your terminal and edit
~/.claude/settings.jsonin any text editor instead of the next command. - Open your Claude Code settings file in TextEdit with this command (it creates the file if it isn't there):
- If the file is empty, paste in everything below. If it already has text, add the
"hooks": {…}part inside its outer{ }, with a comma after the line before it. If it already has a"hooks"section, add just the"UserPromptSubmit"part inside it. - Save (⌘ + S), then restart Claude Code and check My stats as above.
The hook uses curl, so it works on Mac and Linux, and on Windows inside WSL. The hook sends only a tick, never your prompt.
How it counts: when you ask. You add Promptmiles to your AI as a connector, then say “log my prompts” and it counts the messages it can see and sends the number.
What it costs you: some of your AI plan each time. To count, your AI has to look through your chats, which uses your messages, credits or usage limit like any other request. The more chats it reads, the more it uses. A scheduled task repeats that several times a day, so it costs more. Checking your streak through the connector is a small request.
Your AI only counts what it can see. In Claude, a chat can see your ordinary chats or the project it's in, not both, and some runs find nothing at all. So think of this as something you say now and then, not something that runs by itself. If you use claude.ai or ChatGPT in a browser, the extension is the reliable choice.
1. Add the connector to your app
- Open Claude on the web (claude.ai) or in the desktop app. Click your name or initials in the bottom-left corner, then Settings, then Connectors. On a phone? Do this once on claude.ai in your phone's browser or on a computer. The connector then works in the Claude phone app too.
- Scroll down and click Add custom connector. Type Promptmiles as the name, paste this link as the URL, and click Add:
- Check it worked: start a new chat and ask “What's my Promptmiles streak?” If Claude asks permission to use Promptmiles, allow it. It should answer with your streak (0 days is fine on day one).
- In ChatGPT on the web, open Settings → Apps & Connectors (or Connectors) → Advanced settings and turn on Developer mode. If you can't see it, your plan doesn't offer custom connectors yet: use the browser extension instead.
- Choose Create, name it Promptmiles, set authentication to No authentication, and paste:
- Check it worked: ask “What's my Promptmiles streak?” in a new chat.
Any app that supports remote MCP servers over HTTP (Cursor, Windsurf, VS Code and others) can use this config:
Or send counts from your own script: POST https://promptmiles.com/api/tick with Authorization: Bearer <your key> adds 1 live, and POST /api/report with {"date":"YYYY-MM-DD","prompts":42} reports a day.
2. Log your prompts now and then
At the end of a chat, or at the end of the day, say this. In a Claude project, say it inside that project, because that's the only place it can see those chats.
Today and yesterday can be reported, so once a day is plenty to keep your streak. Each report replaces the earlier one for the same day, so saying it twice never double counts.
Optional: a scheduled task (often unreliable)
If your plan has scheduled tasks, one can log yesterday's prompts for you once a day. Each run uses some of your AI plan, the same as asking yourself. They don't always work: a task may not be able to use connectors, or may see fewer chats than you expect. Set it up, then check My stats the next day before relying on it. If nothing arrived, go back to saying “log my prompts”.
A. You mostly use ordinary chats
Paste this into a new chat once:
B. You use Claude Projects
A task can only see the project it lives in, so set one up in each project you want counted. Type the project's name, then paste the message into that project's chat. Each project reports under its own name and they add up to one total for the day.
Use A or B, not both, or the same prompts could be counted twice.
The counting rule your AI is given
So that everyone counts the same way, the connector hands every AI the same rule:
- A prompt is one message you typed and sent. One word or one page, it counts as 1.
- Your AI's replies, tool calls, automatic messages and regenerated answers don't count. An edited and re-sent message counts as 1.
- A day runs midnight to midnight in your time zone.
- Only messages the AI can actually see are counted, and it should tell you what it couldn't see rather than guess.
- Today or yesterday can be reported. Older days are locked.
- No message text is ever sent: only dates, counts and short project labels.
- Prompts already counted live (by the browser extension or the Claude Code hook) are left out of reports, so nothing counts twice.