Self-hosted alternatives to Tiktoken Go
200 self-hosted apps like Tiktoken Go, closest match first.
Top picks
- T

TurboLLM
LaunchRun open AI models on your own machine — no cloud, no account, fully offline. Any GGUF model on any llama.cpp-compatible engine, auto-tuned to your hardware, with real measured tokens/sec before you download, a fast browser UI, and an OpenA
Self-hosted
- G
GoModel
LaunchAI gateway / AI control plane / AI proxy written in Go. Unified OpenAI-compatible and Anthropic-compatible API for OpenAI, Anthropic, Gemini, Groq, xAI, Ollama, vLLM and more. A LiteLLM alternative with observability, guardrails, streaming,
Self-hosted
- T

Token Monitor
LaunchLocal-first desktop widget for tracking token usage, costs, limits, and session activity across 46+ AI coding tools—including Claude Code, Codex, Cursor, OpenCode, OpenClaw, and more—with multi-device sync.
Self-hosted
- C
CliRelay
LaunchSelf-hosted AI gateway for coding CLIs — one OpenAI/Claude/Gemini/Codex-compatible endpoint, with a multi-tenant web console, request logs, and spend quotas.
Self-hosted
- O

Otari
LaunchOtari is an open-source LLM gateway built on any-llm. Otari.ai adds hosted routing, observability, budgets, and team management. Built by Mozilla.ai.
Self-hosted
- W
Webchat2api
LaunchOpenAI-compatible Web Chat API proxy with GPT, Grok, Gemini account management and Docker self-hosting
Self-hosted
More like Tiktoken Go
OmniKey-AI-Unified-Key-Manager
A self-hosted LLM proxy and failover gateway supporting OpenAI & Gemini…

Inference Gateway
An open-source, cloud-native, high-performance gateway unifying multiple LLM…
Self-Hosted AI Stack
Deploy a self-hosted AI stack with Docker Compose: local LLMs, chat, document…
CatGPT-Gateway
Turn your ChatGPT or Claude account into a fully working OpenAI-compatible API
About Tiktoken Go
Tiktoken Go
go version of tiktoken
tiktoken-go is a Go port of OpenAI's tiktoken, a fast byte-pair encoding tokenizer for OpenAI models. Go programs can use it to encode text and count tokens, looking up an encoding by its name or by the model it belongs to. The README has examples for both lookups, plus an example that counts tokens in chat API messages in the style used for gpt-3.5-turbo and gpt-4. That example notes the calculation may change over time, so the official documentation should be checked for exact figures. Token dictionaries are downloaded the first time an encoding is initialized, and the TIKTOKEN_CACHE_DIR variable sets where they are cached. For environments without network access, or where a download each run is unwanted, an alternative BPE loader can be plugged in through SetBpeLoader. An offline loader is available as a separate project. It is a library, and the source is public on GitHub.
- Price
- Free
- Made by
- pkoukk
- Category
- AI
- Website
- github.com/pkoukk/tiktoken-go


