Latest / Developer tools

TokenDagger

github.com · Open source · Quiet

Faster C++ drop-in replacement for OpenAI's tiktoken tokenizer

Visit github.com ↗Share

  • tokenizer
  • tiktoken alternative
  • fast tokenizer
  • bpe tokenizer c
  • llm tokenization speed
  • python tokenizer bindings
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 tokendagger

Taken 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

  1. Repository created on GitHub: M4THYOU/TokenDagger
  2. Found: matthewolfe posted it to Show HN. Show HN
  3. Day-7 check recorded by Kip (details)
  4. 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

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositoryM4THYOU/TokenDagger
REST API record
GitHub Releasesrelease 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

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.