LeetCode Token Golf – Training for the interviews that matter
LeetCode Token Golf is a browser script that helps users track token usage when using AI models to solve coding problems on LeetCode. It runs directly in the browser via Tampermonkey, connecting to AI providers like OpenAI and Anthropic without sending data to external servers. The tool emphasizes privacy, transparency, and efficiency in AI-assisted coding interview preparation.
- ▪LeetCode Token Golf is a Tampermonkey script that tracks AI token costs for solving LeetCode problems.
- ▪The script communicates directly from the browser to AI providers, ensuring no data is logged or sent to third-party servers.
- ▪It supports AI models from OpenAI and Anthropic, including GPT-4o and Claude 3.5 Haiku/Sonnet.
- ▪API keys are stored locally in the browser using Tampermonkey's isolated storage.
- ▪The project is open source, requires no build step, and is released under the MIT license.
Hacker News (Newest) files mainly under programming. We currently carry 5,306 of its stories.
Story provenance
Source · retrieval · rights · ranking — open for full record
inspect →
Story provenance
Attribution is not the same as permission. This drawer separates discovery metadata, excerpts, WeSearch-generated summaries, reuse status, and whether the publisher receives the visit. Nothing here claims a legal grant the publisher has not made.
Record
| Original publisher | GitHub |
| Canonical URL | https://github.com/whitecell-dev/LeetCode-Token-Golf |
| Publication time | Sat, 16 May 2026 22:27:43 +0000 |
| Retrieval time | 2026-05-16T22:40:19.056Z |
| Last seen | 2026-05-16T22:40:19.056Z |
| Headline source | Publisher (no WeSearch rewrite) |
| Excerpt source | publisher body |
| Excerpt method | First ~120 words (~800 chars) of extracted publisher body, fair-use limited. |
| Summary | WeSearch · cerebras-chat (WeSearch summarizer) |
| Summary source text | contentText |
| Citation coverage | Summary is a WeSearch-generated derivative; primary citation is the original publisher URL. |
| Cluster | becmWR2jtA4H |
| Cluster logic | Grouped by semantic title/content similarity across sources within a rolling window. Same-publisher template collisions are excluded from coverage comparison. |
| Ranking reason | Story pages are not engagement-ranked. Hub feeds use recency, with optional source-diversified chronological ordering (cap consecutive stories per source). No personalized ranking. |
| Publisher visit | Yes — open original |
| Substitutes article? | No — link-out required for full text |
Rights status (four layers)
WeSearch handling by dimension
| Indexing | May the item be indexed (stored, ranked, made findable)? | Allowed |
| Snippet | May a short excerpt of the publisher's text be shown? | Allowed |
| AI summary | May WeSearch generate its own short summary of the article? | Limited |
| Retrieval / RAG | May the content be exposed for third-party retrieval-augmented generation? | Not asserted |
| Model training | May the content be used to train AI models? | Not asserted |
| Commercial reuse | May the content be reused commercially? | Not permitted |
Basis: Derived from the published RSS/Atom feed. Contact: [email protected]. Reviewed: 2026-07-24.
Opening excerpt (first ~120 words) tap to expand
⛳ LeetCode Token Golf Track how many tokens your AI solutions cost. Your API key never leaves your browser. No backend. No logging. No trust issues. Install Install Tampermonkey Click this link Tampermonkey will prompt you to install Visit any LeetCode problem page How It Works Write a prompt in the LeetCode editor Click 🚀 Run with AI The script calls OpenAI/Anthropic directly from your browser Response auto-fills the editor Submit normally through LeetCode The script tracks pass/fail and token usage Why This Exists We taught engineers to optimize for time and space. Now we train them to optimize for tokens. Privacy API keys stored in your browser (Tampermonkey's isolated storage) No prompts or responses are ever sent to any server Direct browser → API calls (no proxy) Open source.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.