shipitamit/llm-token-governor — explained in plain English
Analysis updated 2026-05-18
Estimate how many tokens a prompt rewrite would save before shipping it.
Batch score a list of prompts and flag ones that never needed a model call.
Point an existing OpenAI or Anthropic SDK at the gateway to auto apply token saving policies.
| shipitamit/llm-token-governor | 3imed-jaberi/cryptography-si-isamm | 3imed-jaberi/koa-isomorphic-router | |
|---|---|---|---|
| Stars | 2 | 2 | 2 |
| Language | JavaScript | JavaScript | JavaScript |
| Last pushed | — | 2021-09-25 | 2021-02-06 |
| Maintenance | — | Dormant | Dormant |
| Setup difficulty | moderate | easy | easy |
| Complexity | 3/5 | 1/5 | 2/5 |
| Audience | developer | researcher | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires Node.js 18+ and an API key from an LLM provider for the live comparison feature.
Token Governor is a tool for people building software on top of AI chat models like Claude, ChatGPT, or Gemini. Its purpose is to reduce how many tokens, the small chunks of text these models are billed by, a prompt uses while still getting a correct answer, and it works with Anthropic, OpenAI, Gemini, and any other provider that speaks the OpenAI style API. It ships as a small web app with a single screen dashboard. A person pastes in a prompt, sets some constraints like how strict the output shape should be, and the app shows a projected savings estimate along with a verdict on whether shrinking the prompt is actually worth it, since sometimes the extra setup costs more tokens than it saves. There is also a batch mode that scores a whole list of prompts at once, flags the ones that do not really need a model at all, and exports the results as a spreadsheet style file. A live A B mode sends the same prompt both the normal way and the shrunk way through the tool's own server and reports the real token counts each one used, using whichever AI provider the person has configured. Beyond the dashboard, the same server can act as a gateway that a person's existing app points at directly, so every request their app makes gets these token saving rules applied automatically, then streamed back exactly as usual. Support for a given provider mostly comes for free since almost every provider now offers an interface compatible with OpenAI's format, so switching providers is often just changing a web address and a model name in a settings file. Getting started requires Node.js 18 or newer, cloning the project, installing its dependencies, and adding an API key from at least one AI provider to a settings file, needed only for the live comparison feature. The project has 2 GitHub stars and is written in JavaScript.
A gateway and dashboard that trims AI prompts to use fewer tokens while checking whether the savings are actually worth it.
Mainly JavaScript. The stack also includes Node.js, Express, Vite.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.