Agentic Trading Lab
Talk to agents, and test trading ideas. Try AI trading agents on real market data with no code required.
AI translation
Why your LLM bill does not match your estimate: estimate, count, price and reconcile, in your browser.
FinanceTypeScript · CSSGitHub @divyamunderconfidentOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗Why your LLM bill does not match your estimate. Overrun estimates what a request will cost before you send it, counts it with real tokenizers in your browser, prices it with integer nano-dollars, and reconciles the estimate against the usage the provider reports. Spec: docs/PRD.md.
Live: https://overrun-ashy.vercel.app (no key, no upload needed: demo mode loads a real usage log).
From results/study.json (full tables in RESULTS.md):
openai/gpt-oss-20b on Groq reported 71 more input tokens than the o200k_base count of the text (74 with a system prompt), on every request. gemini-3.1-flash-lite reported 1 more than the Gemma 3 count, on every request.| Req | Where |
|---|---|
| R1 estimator (Unicode chars, ceil division, labelled "estimate") | site/lib/estimate.ts |
| R2 tokenizers in the browser: o200k_base, cl100k_base (js-tiktoken), Llama 3.1, Gemma 3 (@huggingface/transformers), loaded on demand | site/lib/tokenizers.ts |
| R3 usage validator / normaliser for OpenAI, Anthropic, Gemini, Groq | site/lib/usage.ts |
| R4 integer nano-dollar pricing (BigInt, checked u64), dated rate-card fixtures with sources | site/lib/pricing.ts, site/lib/ratecards.ts |
| R5 budget ledger and replay | site/lib/ledger.ts |
| R6 reconciliation with reasons, CSV / Markdown export | site/lib/reconcile.ts, /reconcile |
| R7 study: corpus, measurement, real usage check | study/, results/, /findings |
| R8 demo mode: the 50 real requests from the study as a bundled log | site/public/data/demo-log.json |
Rate cards are dated fixtures copied from each provider's pricing page on 2026-10-26 or 2026-10-27 (each card carries its own date and source). They are not current prices; edit them on the site.
The site follows the "Fog & Signal" design handoff (Direction A): Instrument Serif for headlines, JetBrains Mono with tabular figures for numbers, light and dark themes, and a thermal receipt that prints each estimate (the animation is skipped under prefers-reduced-motion).
cd site && npm install && npm test && npm run dev
Rebuild the study (tokenizer measurements are free; the real usage check needs GROQ_API_KEY and GEMINI_API_KEY in .env, uses free tiers, caches every call in study/cache/ and resumes after a quota stop):
cd study && npm install && npm run corpus && npm run study
Parallel prose: NTREX-128 (CC BY-SA 4.0), 15 lines in each of 10 languages. Code and markdown: the original course project (MIT) and this repo (MIT). JSON and emoji posts: written for this study (MIT). Each sample in study/corpus.json carries its source and licence.
Overrun grows out of "Token Counter and Cost Meter" from AI Engineering from Scratch by Rohit Ghumare (MIT). Its four stages (estimate, validate usage, integer pricing, budget ledger) and their unit tests are ported to TypeScript in site/lib/core.test.ts, and its example usage log is a test fixture.