See how fast your local AI models run, and how many tokens you use.
Tokenmeter watches the LLM servers on your computer (Kapitsa, oMLX, MTPLX, Splash, vLLM, SGLang, TensorRT-LLM, llama.cpp, LM Studio, Ollama, Lemonade, NInfer, Adamant, Basalt, Strata, the LiteLLM proxy in front of them or of cloud models, and any other server that speaks the OpenAI API) and shows their speed, GPU load and memory live, and counts every token they read and write. A Servers page per machine shows what each computer draws and how hard it works, and tells you why a model is slow. A Tuning Lab measures what a setting change really did. It loads no models itself, so it works however you start your servers.
It also hears from your coding agents (oh-my-pi, Claude Code, Codex, GitHub Copilot CLI, Mistral Vibe, Pi, OpenCode, OpenClaw, Hermes Agent, DeepSeek Harness), so each request is counted under the agent that made it.
Tokenmeter's service runs on every machine you want to see, and the services that belong together form a mesh: the window you open on any one of them shows them all. Machines on the same network find each other, a new one is installed over SSH from one that has it, and updates pass from machine to machine.
It runs on macOS (menu bar app) and Linux (a window and a notification area icon on any desktop, plus a widget on KDE Plasma). A machine without a desktop, such as an inference server or an NVIDIA DGX Spark, runs the service alone.
Download the latest release → (Mac DMG, Linux tarball and Flatpak for x86_64 and Arm, and the service alone for every platform). How to install →
A new install opens on Welcome, which says what goes where and walks you through the rest: this machine, your other machines, who is calling, and alerts. Each step ticks itself off, and the page leaves the sidebar once all five are done.
Gizmo's tour on Welcome shows, in three steps, where Tokenmeter sits: a reporter in the coding agent, the Engine Proxy on the line to the model, the MCP Proxy on the line to a tool server. Each step says why, the ports in and out, and what is kept and never kept: the numbers and the names, never what is said. The Setup page then draws your real agents, servers and tools the same way and says what to improve.
Every server's speed, requests, memory and cache, with live charts. Agents Live shows the tool calls and model requests your coding agents are running right now, and Named Requests the latest requests the Engine Proxy and the agents put a name to. Both cover every machine of the mesh, with a Machine column saying where each one ran: the container, VM or computer the agent runs in.
What Tokenmeter notices on its own: each model against its own normal, what the engines report, forecasts of memory and queues running out (scored afterwards, so you can see how often they hold), a history of every restart, new version and model change, and how much of each engine it can actually see, with the steps that would show more. Every figure carries a dot for how it is known: reported, timed, calculated, inferred or declared.
Say what good is for a model ("first token under 2 s for 95% of requests, over 7 days"), for every model on a server, or for every server of a machine, and Tokenmeter tells you when it stops being good: time to first token, writing speed, whole request, successful requests and the server answering. Each target shows its error budget and how fast it is burning, judged only on requests that already happened, never on test traffic. The machine that serves the model judges its own targets once a minute and alerts with no window open, wherever your alerts go (the desktop, ntfy on your phone, email, webhooks, Pushover, Gotify). More about targets → · Alerts → · Spend and cost alerts →
Every token counted by day, model and app, on this computer and the machines of its mesh, and what it would have cost in the cloud.
Each of your machines' power, CPU and GPU, memory, temperatures, disk, and the engines running on it. Its network card shows each interface against its link speed, the round trip and jitter to your other machines, and prefill offload.
Plain findings on what is slowing your models down and one thing to try, with Explain to have a local model put them in plain words, and Test in Tuning Lab to try a finding's fix.
Your slowest requests, where each one's extra seconds went, and what the machine was doing at the time.
First token and writing speed per model, speed over time, and before and after a change you marked. Watch Live shows each answer streaming through an Engine Proxy as it happens, a lane per request: the wait to start, a tick for each piece (thinking, answer, tool call) and any freeze, with the latest text on this machine only. It is held in memory, never saved, and switches itself off after 30 minutes or when you close the window.
One row per model across every machine, the model files each machine keeps on disk (and how many gigabytes nothing has asked for in a month), and Will it fit?: whether a model would fit on each machine at a context size, from the memory it was seen to take, before you load it there.
A coding agent's session as a story: model time, tool time, waiting for you, and each task's energy. Where the Wait Went tells each slow task in one sentence (the model, the tool's server, the way there and back, or a part nothing saw) with the evidence one click away, from the agent's reporter and the MCP Proxies on both machines. Under it, each task's receipt: turns, retries and the time failed attempts cost, work that ran alongside other work (counted once), tokens read and written and what tool answers added to the context, the bytes the MCP Proxy saw, and energy named by what the machine's meter covers (a Mac's chip, or CPU packages and GPU cards on Linux), never "the whole machine". Where the Tokens Went follows each task's tokens from what went in (the context it started with, your ask, earlier turns, tool answers) through how they were read (from the cache, read new, or read again because the cache was lost, with the seconds it cost) to what came out (thinking, answer, tool calls) and what was thrown away.
The same batch test before and after you change a server setting, on this machine's servers or another machine's, with suggestions and best profiles. Or a workload test: a stretch picked on the Machine Room replay sent again with synthetic text, with what it can't reproduce named, and the question "would fewer parallel slots protect my chats during the nightly batch?" answered.
Standard Runs put the same recipe on any machine, so machines and settings can be compared fairly: Core for everyday chat feel, Long Context (reading 8K to 128K tokens) and Saturation (1 up to 32 requests at once). Prompts are fitted to the model's own tokenizer, each step repeats until its figures settle, and a run started when the machine is quiet is stamped Standard (else Unofficial). Run one on any machine of the mesh against its own servers, keep the history, compare two, or save a signed .tmbench result file; tokenmeter bench does the same from a terminal. Nothing is sent to a server until you start a run.
Your machines as an isometric campus. A tower for each machine shows its load, and its fan spins faster the harder it works. Along each machine's front edge, a field of solar panels is its processor, one panel per core lit with that core's load (Apple P and E cores tinted apart, AMD X3D chiplets beside a pink 3D V-Cache battery), and a wind farm is each graphics card, every turbine a few GPU cores turning with the card's load. Each loaded model is a building, a lit workstation is a request being answered, parcels queue on the road, pink prompts come in past them and blue tokens stream out. With oMLX's Prefill Accelerator, the helper machine has a lime building and lime tiles run to the model it reads prompts for. A live feed beside it says what just happened, and Gizmo walks the roads and says what it finds at each door. Zoom in with the buttons in the corner (Ctrl and the scroll wheel on Linux, a pinch on a Mac) and drag or use the arrows to look around; labels step aside so they never cover each other.
Prefill offload with oMLX. oMLX's Prefill Accelerator lets a second machine (another Mac, or an NVIDIA machine running oMLX's CUDA helper) read the first layers of each long prompt. It sends what they made back as it goes, and the Mac reads the rest and writes the answer. Tokenmeter shows this wherever it happens:
- Machine Room: the helper gets a lime building on its own machine's plot. While it reads a prompt, lime tiles run from its door along the roads to the model it helps, as many and as fast as the prompt tokens read a second. The model's label says "prefill via forge". Point at the tiles for the helper's graphics card, link, layers and last prompt, or click them for its drawer.
- Monitor and Servers: the server card says which helper it is offloaded to and how many layers it reads. Each machine card and the server page's Network card show the helper's traffic: "Prefill helper → studio ↑ 214 MB/s" on Linux, from the byte counts the kernel already keeps for the helper's connections.
- Why Is It Slow?: says when a helper ran out of graphics memory, stopped helping, is missing the model's files, or is on Wi-Fi.
Tokenmeter only reads traffic that already flows and never sends anything to measure the network. oMLX doesn't report how long each part of a prompt took on each machine, so that split isn't shown.
Click a building for everything it reports.
Double-click it to go inside and watch couriers carry each request to a desk, stop at the prompt cache, and carry each answer out.
The Activity tab shows the same state as one lane per model.
The Topology tab is who talks to what, as observed in the last day: clients, Engine Proxies, engines and models, each line saying how it is known. Nothing is drawn only because two things share a machine.
The Performance tab puts every building and machine on shared scales.
The bar under the room replays the last 24 hours.
Drag a building or a machine onto another and the two trade places.
An android mascot, the same one that walks the Machine Room, that turns your token use into stars, levels, missions, streaks and a wardrobe. It is the same Gizmo on every machine of your mesh.
It also earns titles for working well, and your machines play each other for a weekly Machine Cup.
Gizmo also stands in the bottom right corner of every page but the Machine Room and his own, in the outfit you picked. When a page opens with something worth knowing (a finding, an anomaly, a first visit or something new) he says so in one line above the page (it never covers a figure; More opens the rest), and Show Me points at it with a laser. Press ? on any page and he explains whatever the pointer rests on, with what he knows about it right now; a first visit offers a three-stop tour. Gizmo on Pages in Settings picks how often he speaks up: Chatty, Helpful (the default), Quiet (a count on him instead) or Off. On the Mac, in the KDE app and in the web dashboard.
Switch on Ask Gizmo and you can ask him about the page in your own words; one of the models you run answers, from what he knows about the page, and nothing leaves your machines. His face follows the page he stands on, not just the day: concerned beside a warning, calm on a quiet page. He stands in for the empty pages and the service-stopped screen, and on a phone a press and hold on a figure explains it and a swipe sends his bubble away.
Gizmo also runs incident drills: a slow agent task, recorded on made-up machines, and the question "Where did the time go?" Look around the Machine Room and Sessions as they were then, pin the figure that proves it, and answer: the model, a tool, or somewhere Tokenmeter couldn't see. Then Gizmo shows what proves it, the red herring, and what the Doctor would have said. There are three drills: the queue that looked like a slow GPU, the tool that looked like a slow model, and the engine that was healthy but barely observable. They need no hardware, so they work as a demo too, and nothing of a drill reaches your own figures: a violet striped bar stays across the window while one is played. Start one from Welcome, Gizmo's page or the command palette, on the Mac, in the KDE app and in the web dashboard.
Add servers on other ports or other machines, and see the engines the other machines of your mesh run.
The machines that belong together, on one page. Every machine of a mesh knows all the others, so each one shows them all, with their usage history, findings and Machine Room recordings, and a machine that joins one member has joined them all.
- Found on This Network. Services on the same local network announce themselves and are listed with an Add button. Tokenmeter only announces and listens: it never tries addresses to see what answers and scans no ports. A machine on another network or over a VPN is added by its address, once.
- Allow, once. A machine that asks to join shows on every member, and one click on any of them lets it in everywhere. Not Now and Ignore can both be undone.
- Install on Another Machine. Give it what you would give
ssh(user@machine, or a name from your SSH configuration) and the service is copied there, installed and added to the mesh. Where SSH can't get in, one line pasted on the other machine does the same. - Machines that can't reach each other are read through a member that reaches both.
Members carry a key each and sign what they ask each other. Nothing is encrypted, so keep the port (7733) inside your own network or a VPN. More about the mesh →
Every machine of the mesh serves a read-only dashboard at /view/ on its status port. Press Add a Viewer on the Mesh page, scan the QR code with a phone (or type the six-digit code in any browser) and it shows every machine's load, its servers, what the Doctor found, the Monitor, Insights (with a count of what needs attention), the Machine Room, the coding agents' sessions and usage with its cloud cost, live. A viewer changes nothing: the service refuses anything but reading the mesh's pages, and Remove shuts it out of every member. With the Tailscale app on the phone it works from anywhere. On Android there is an app to install from its .apk, which can join the tailnet by itself when the phone has no Tailscale app (Android/); on iPhone, Add to Home Screen makes the dashboard an app with its own icon that opens full screen and, over HTTPS from tailscale serve, still shows what it read last when the mesh is out of reach. When the machine a viewer reads through goes down, it carries on with the next machine of the mesh that answers, on the same page. More →
Alerts can reach the phone too: set a ntfy topic under Settings › Alerts › On Your Phone (New Private Topic makes one) and subscribe to it in the ntfy app, on iPhone or Android. Each alert you switched on arrives as a notification that opens the web dashboard. More →
Share on a machine card, a server card, the Machine Room (and its Topology and Performance lenses), the speed, Usage, the cloud costs, Gizmo, the Doctor's Why Is It Slow?, the Machine Cup, a stretch on battery or a Tuning Lab Standard Run v1 makes a picture to post: a frozen card with every machine name, address, port, folder and agent name taken out, checked for them before it can be saved. Untick any field you'd rather not share, pick wide, square or tall (the Machine Room and Gizmo also as a six-second GIF or video), then save it (as a picture, or as a page for your own website with the figures written out), copy it, or hand it to the phone's share sheet. Drop a friend's card on the Tuning Lab to set it beside yours. Tokenmeter never posts anything. Mac app, Linux app and web dashboard (the Android app too). More →
Since 0.9.0 the service keeps every finished request and the agents' reports in one SQLite database (tokenmeter.db), so it starts in a fraction of a second and uses less than half the memory it did; the first start of 0.9.0 moves the older history files in by itself. Settings › General › Storage lists what is kept on disk, kind by kind, with its size and how many days: requests (90 by default), agent reports (30) and machine history (14) can be changed. Export writes the requests as CSV or JSON, or the agent reports as CSV, to your Downloads folder: figures only, never the text of a prompt or an answer. Copy the History to a Folder makes a folder to take the whole history to another machine. The same from a terminal: tokenmeter storage, tokenmeter storage keep requests 180, tokenmeter storage export requests csv, tokenmeter storage copy.
A machine on 0.9.0 or later can't go back to 0.8.x: the earlier versions don't know the database and would start with an empty history, so Go Back isn't offered across that line. Where the history is kept → · Moving it to another machine →
The service updates itself, and the mesh passes updates along. A machine takes a later version from its updates folder (~/.tokenmeter/updates, for service packages you built or downloaded), from another member that has one, or from the project's releases, so one machine with a way out, or one folder with the packages in it, is enough for the whole mesh. Under Settings › General › Updates you choose how often to look (never, every day, every two days), where, and what to do with a find: tell you, download it and tell you (the default), or install it. Install on Every Machine updates the whole mesh from one window, each machine's package is checked before it is installed, and Go Back returns to the program that ran before. Only the service is updated this way; the window keeps its own download. More →
Always one click away, in the Mac menu bar or the Linux notification area (an icon that starts at login, plus an optional Plasma widget). With a mesh, the Plasma widget and the notification area icon's tooltip add up every machine: the speed, a row per machine, every machine's models (the same model on several machines as one row) and today's tokens.
The Agents page lists the coding agents on this computer, connects one with a button, and shows the ones reporting from a Docker container, a VM or another computer. It also lists the MCP servers your agents use and the machine each runs on, and Sessions splits a session's tool time by server. The Machine Room draws them as a workshop on the machine they run on, and the Doctor says when an agent spends its time waiting on one, when the way to it is slow, and where the slowest task lately waited, with a button to open it in Sessions.
A coding agent can report every request it makes, so Tokenmeter knows which agent asked, how long the first token took, and the agent's tasks, tools, retries and compaction for the Sessions page. Reporters are included for oh-my-pi, Claude Code, Codex, GitHub Copilot CLI, Mistral Vibe, Pi, OpenCode, OpenClaw, Hermes Agent and DeepSeek Harness, and any other agent or script can report in the same format. An agent in a Docker container needs only Tokenmeter's folder shared with it (docker run -v ~/.tokenmeter:/tokenmeter …) and one setup command inside: no port to open. One on a VM or another computer reports over the network. Every machine of the mesh lists the agents set up elsewhere, marked with the machine they report to. What each one sends →
With Time Through the MCP Proxy next to a server there, Tokenmeter stands between an agent and that MCP server: it passes everything on unchanged and times each tool call, with its size and whether it failed, for any agent, and never keeps arguments or results. See the MCP Proxy.
Your agents can ask it too: Tokenmeter is an MCP server that tells an agent which server is free, why one is slow, what Insights noticed, and what its last session cost in time and energy.
Tokenmeter is published as GitHub releases, each tagged v<version>. Take the newest from the latest release:
| You have | Download | |
|---|---|---|
| A Mac with Apple silicon, macOS 14 or later | Tokenmeter-<version>.dmg |
the app, which installs the service |
| Linux with a desktop, x86_64 | Tokenmeter-<version>-linux-x86_64.flatpak or Tokenmeter-<version>-linux-x86_64.tar.gz |
the window, the icon, the Plasma widget and the service |
| Linux with a desktop, Arm (aarch64) | Tokenmeter-<version>-linux-aarch64.tar.gz |
the same, for Arm |
| An Android phone or tablet | Tokenmeter-<version>-android.apk |
the read-only viewer of your mesh (Android/) |
| A machine without a desktop (an inference server, a DGX Spark, a headless Mac) | tokenmeter-service-<version>-<linux-x86_64, linux-aarch64 or macos-arm64>.tar.gz |
the service alone, with a .sha256 beside it to check the download |
Once one machine runs Tokenmeter, you rarely need to download again: the service updates itself, and the machines of a mesh pass updates to each other (Updates). A machine can also install Tokenmeter on another over SSH, from its Mesh page or with tokenmeter mesh install user@machine.
macOS. Open the DMG and drag Tokenmeter into Applications. The DMG is signed ad hoc, not with an Apple Developer ID, so the first time right-click the app and choose Open (or run xattr -dr com.apple.quarantine /Applications/Tokenmeter.app). The app installs Tokenmeter's service, which does the watching (counting, proxies, agent reports, MCP, alerts) whether the window is open or not. More →
Linux. The Flatpak brings its own Qt:
flatpak install --user Tokenmeter-*-linux-x86_64.flatpak
flatpak run io.github.tokenmeter1.tokenmeterOr unpack the tarball and run its installer (it needs Qt's QML runtime, and ./install.sh --check names what is missing):
tar -xzf Tokenmeter-*-linux-x86_64.tar.gz
cd Tokenmeter-*-linux-x86_64
./install.shMade for KDE Plasma 6; other desktops get the window and the icon. Step by step for Fedora, Arch, Ubuntu and others →
NVIDIA DGX Spark and other machines without a desktop: unpack the service package and run ./install.sh (on Linux, install.sh --service-only from an app tarball does the same). Your Mac or PC then shows it as another machine of its mesh. More →
Windows (10 and 11): the service alone, built with Swift for Windows by Windows\build.ps1 and installed by Windows\install.ps1, and watched from your Mac or Linux desktop as another machine of its mesh. There is no Windows download yet, and it has been compiled on very few machines. More →
Phones. Every machine serves a read-only web dashboard at /view/; see Phones, tablets and the web. The Android app is Tokenmeter-<version>-android.apk on the release page: copy it to the phone and open it (Android/).
Intel Arc cards and the Arc graphics in Core Ultra processors are read on Linux, next to NVIDIA and AMD: clock, power, what holds the card back, and each server's share of it. It is untested on real cards, so reports are welcome. More →
To try what is on main before it is released, or to work on Tokenmeter:
git clone https://github.com/tokenmeter1/Tokenmeter.git
cd Tokenmeter
./build-library-app.sh # on a Mac, with Xcode 26 or later: builds Tokenmeter.app
Linux/install.sh # on Linux, with Swift 6: builds and installs the service, app, icon and widgetUseful scripts for contributors:
scripts/check.shruns what the CI workflow runs, on your own machine in a Docker or Podman container: syntax of every Swift file (the Mac ones too), the tests, the release build of the service and the service tests.--quickfor a short pass,--allfor the slow extras. The report lands in.build-check/report.txt.scripts/package.sh(Mac DMG and Mac service package),scripts/package-linux.sh,scripts/package-flatpak.shandscripts/package-service.shbuild the release files intodist/.scripts/package-linux-arm64.shbuilds the Arm (aarch64) Linux packages for a DGX Spark on an ordinary x86_64 PC, in Swift's arm64 Docker image under QEMU (--service-onlyfor the service package alone).scripts/release.sh distmakes the tag and the GitHub release from those files and uploads them (--dry-runand--draftto look first); run it again from another machine to add its packages to the same release.Android/build.shbuilds the Android viewer app with the Android SDK's own tools, and puts a copy for the release indist/(Tokenmeter-<version>-android.apk).
- Start your model server as usual (
llama-server,ollama serve,kapitsa serve, LM Studio…). - Open Tokenmeter. Servers on their usual ports show up by themselves.
- Server on another port? Add it under Engines. How →
- More than one machine? Install Tokenmeter on each, or let the first one install the others from its Mesh page. Machines on the same network show there as found: press Add, and each window shows them all. How →
- Connect your coding agents on the Agents page, so each request is counted under the agent that made it.
- The window opens on Welcome, which walks you through all of this. Press ⌘K (Ctrl K on Linux) to jump to any model, machine, page or setting.
The wiki has everything else:
- Install on macOS and on Linux, and uninstalling
- What each page shows: Monitor, Insights, Servers, Why Is It Slow? and Dig Deeper, Usage, Performance, Sessions, Tuning Lab, Machine Room
- Engines: supported servers, adding one by hand, servers on other machines
- How-tos: the mesh, status endpoint and command line, Grafana board and OpenTelemetry export, the Engine Proxy, the MCP Proxy, alerts, targets, spend, your history and storage, coding agents, MCP server for agents, Gizmo, power readings, sharing a snapshot
- Troubleshooting, building from source and making a release
Six principles guide every feature: observe, don't interfere; passive by default; explain what is known; understand the entire environment; the user remains in control; and privacy is paramount. Read Contributing and philosophy before you propose a change, then Development for building and testing.
Everything stays on your computers. The machines of a mesh read each other's figures, usage history and recordings; a machine outside it can read only the live figures, and nothing at all once you switch Keep This Machine to Itself on. Apart from the servers it watches and the machines of its mesh, Tokenmeter makes two requests, each once a day: it downloads OpenRouter's public price list for the cloud-cost comparison, and it asks the project's releases on GitHub whether there is a later version, which you can switch off under Settings › General › Updates. On your local network the service announces itself so your other machines can find it, and that can be switched off too. Tokenmeter only reads traffic that already flows and never sends anything to measure the network. Share cards are pictures you save or copy yourself, checked for your machines' names and addresses first; Tokenmeter never posts them. No accounts, no telemetry, and prompts and replies are never stored (Watch Live holds an answer's pieces in memory only while you watch).
Apache License 2.0. Tokenmeter is independent and not affiliated with any of the engines it monitors.






































