TokenDagger
github.com · Open source · Quiet
Faster C++ drop-in replacement for OpenAI's tiktoken tokenizer
- Developer tools
- Open source
- C++
- Day-7 check
- Day-30 check
- Stars
- 474
- Forks
- 14
- Open issues
- 4
- Last commit
- Found
- 17 months ago
GitHub figures as of . They are context, not a ranking.
TokenDagger is a C++ tokenizer with Python bindings that keeps the same byte pair encoding rules as tiktoken. It uses a faster regex engine and skips regex matching for special tokens to improve throughput. It suits developers who tokenize large volumes of text and want the same output in less time.
Positioned as an alternative to tiktoken.
Repository description on GitHub: “High-Performance Implementation of OpenAI's TikToken.”
What it does
- C++ tokenizer with Python bindings
- Keeps the same byte pair encoding rules as tiktoken
- Faster regex engine and skips regex matching for special tokens
- Benchmarks show about 2x throughput and 4x speed on code samples
Good for
- Tokenize large text corpora with the same output as tiktoken
- Count tokens for code samples faster in a Python pipeline
Suits: Developers who tokenize large volumes of text for LLM work.
Worth knowing: Benchmark figures come from the maker's own tests on specific hardware and models
What you can try
Read the README on GitHub and install from source.
Install
pip install tokendaggerTaken from the project’s README. Read the project’s own instructions before running anything.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw TokenDagger on , when matthewolfe posted it to Show HN. GitHub listed no published releases for M4THYOU/TokenDagger when checked , so the project may ship straight from its main branch. The repository was created .
Day-7 and day-30 updates
Day 7 no new release
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- Show HN discussion at check time: 281 points, 73 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 no new release
- No tagged release was published in the first 30 days after it was found (GitHub release dates).
- Show HN discussion at check time: 281 points, 73 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: M4THYOU/TokenDagger
- Found: matthewolfe posted it to Show HN. Show HN
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Quick answers
- When was TokenDagger released?
- No dated release record is available. Kip found it on Show HN on 30 Jun 2025.
- Is TokenDagger open source?
- Its source is public on GitHub at M4THYOU/TokenDagger under the MIT licence.
- What does TokenDagger run on?
- Library.
- Is TokenDagger free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is TokenDagger still maintained?
- It has had no commit or release for over a year as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | M4THYOU/TokenDagger REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-44422480. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.