Artificial Analysis, the benchmarking firm behind the Coding Agent Index, announced Tokedex on 3 December: an open-source router and token gateway for language model calls. Its stable v0.1.1 release of the self-hosted gateway, CLI and SDKs for Python, TypeScript and Rust came out the same day. The code is MIT-licensed. Early Python packages had been on PyPI since November, but the release notes and launch post make 3 December the public start.
What it does
The gateway takes OpenAI Chat Completions, OpenAI Responses and Anthropic Messages requests and sends them to any connected provider, which the README says lets a coding agent such as Claude Code run on models from other labs. On top of that it adds request traces kept on your own deployment (“no data sent to a third party”, in the README’s words), spend budgets and alerts, scoped API keys, SSO and team workspaces, plus retries and fallback.
What Artificial Analysis adds is its catalogue: each model’s price, limits and capabilities, and its benchmark scores. A router is a model ID of your own that maps to a list of models, with a strategy to choose between them:
- In order: try the models in your order and move to the next on failure.
- Cheapest: the lowest catalogue price.
- Highest quality: the highest Artificial Analysis Intelligence Index.
- Custom: filter on scores and prices, then rank. The built-in
aa/cheapest-40-intelligencekeeps connected models scoring at least 40 on the Index and ranks them by cost per task.
You choose which failures fall back (the example lists rate limits, provider outages, timeouts and transport errors) and how many attempts a request gets. When a model has several providers, the default order is cheapest list price, then the model maker’s own API. Follow-up turns, such as one carrying a tool result, retry the same provider up to three times before moving on, to keep its prompt cache.
Running it
Locally it is docker compose up --no-build from a clone; the gateway prints a master key and serves a dashboard on port 4000 that writes setup for Claude Code, Codex, Cursor and other agents. The production guide asks for more: Kubernetes 1.32 or later, Helm, a managed Postgres database, managed Redis, a ReadWriteMany StorageClass and an ingress with TLS, with the tokedex/gateway image (amd64 and arm64) pinned by digest. The project takes bug reports as issues but does not accept outside pull requests.
A 0.1.2 release candidate followed on 4 December. It adds MiniMax M4 and changes catalogue updates: a new gateway release adopts its bundled catalogue at startup when nothing you configured would change, and TOKEDEX_CATALOGUE_UPGRADE=review keeps every upgrade manual. The quickstart still pins 0.1.1.
Why this matters
Self-hosted routing already exists, and LiteLLM is moving its router core to Rust, while Cloudflare’s Auto Router picks models for you on a hosted gateway. Tokedex’s difference is that its “Cheapest” and “Highest quality” choices come from Artificial Analysis’s own price and benchmark catalogue, so you get a published, inspectable rule instead of a black box, tied to one firm’s scores. It is a 0.1 release that needs Postgres, Redis and Kubernetes for production, so try it on one team’s traffic before putting it in front of everything.

The Campfire
CommentsThanks. Your comment is waiting for the desk. Once it is approved it appears here within about a minute.
Add a comment