Artificial Analysis Turns Benchmark Data Into an Open-Source AI Router
Artificial Analysis released Tokedex, a self-hosted LLM gateway that routes requests across providers using its own benchmark data, with full observability and no vendor lock-in.
Takeaways
- Artificial Analysis released Tokedex, an open-source, self-hosted LLM gateway and router
- Routes requests using Artificial Analysis intelligence, speed and cost benchmarks under constraints you define
- Translates between OpenAI Chat Completions, Responses and Anthropic Messages APIs across any model
- Works with Claude Code, Codex and Cursor, letting you swap in non-default models
- Includes traces, spend budgets, SSO, workspaces, smart retries and fallback models
- MIT-licensed with SDKs for Python, TypeScript and Rust; repo on GitHub
Artificial Analysis, which independently benchmarks AI models and inference providers, has released Tokedex, an MIT-licensed token router and API gateway. The software sits between an application and its model providers, selecting where each request goes with routing rules informed by the group’s quality, latency and pricing data.
Applications can point existing OpenAI, Anthropic or custom clients at one endpoint. The gateway then handles model selection, API translation, retries, fallback models, spend tracking and access controls. Self-hosting keeps provider credentials, configuration and traces inside the operator’s infrastructure. Requests still reach whichever model provider the operator configures.
One endpoint, two deployment paths
Tokedex offers a centralized gateway for teams and direct SDKs for applications that do not need a shared service.
| Mode | How it runs | Credentials | Best suited to |
|---|---|---|---|
| Gateway | A self-hosted server receives requests and forwards them to model providers. | Provider keys stay on the server; clients use Tokedex-issued API keys. | Teams that need shared routing, budgets, roles, traces and centralized policy. |
| Direct SDK | TypeScript, Python or Rust code calls providers from the application process. | Provider keys come from local environment variables. | Applications that want a common client without operating a gateway. |
The same SDK code can switch from direct provider calls to the gateway with a one-line configuration change. Existing OpenAI and Anthropic clients also work, as do plain HTTP requests, curl and coding agents such as Claude Code, Codex and Cursor.
Each team receives a workspace with separate API keys, roles and budgets. The gateway records request traces containing the selected model, token usage, latency and cost, giving operators a consistent view across providers.
A local deployment starts from the source repository with three commands:
git clone https://github.com/ArtificialAnalysis/Tokedex.git
cd Tokedex
docker compose up --no-build
Benchmark data becomes routing policy
Benchmark-driven routing lets developers express requirements without hardcoding a model name. A policy can request the cheapest model scoring at least 50 on the Artificial Analysis Intelligence Index, a composite measure of model capability, and the gateway selects an eligible option.
Artificial Analysis maintains pricing, latency and quality data across production models. Tokedex uses that dataset in its routing logic, reducing the need for teams to maintain model rankings and price tables in configuration files.
The gateway also translates among OpenAI Chat Completions, OpenAI Responses and Anthropic’s Messages API. An application written for one of those interfaces can call models exposed through another, including when a coding agent uses the gateway as its backend.
The gateway replaces a familiar patchwork
Production teams commonly assemble several components around model APIs:
- A proxy that normalizes OpenAI and Anthropic request formats
- Retry and fallback logic for provider outages or rate limits
- Dashboards that attribute token usage and cost to teams
- Routing rules that track changes in model quality, speed and price
Tokedex consolidates those functions in one self-hosted service. Operators can scope API keys, set budgets and alerts, enable single sign-on, organize users into workspaces and inspect traces when requests fail or slow down.
How Tokedex differs from other routers
Tokedex enters a market that already includes OpenRouter, LiteLLM, Portkey and Helicone. Its design centers on three characteristics:
- Benchmark-aware routing: Policies can use Artificial Analysis quality, latency and price data when selecting models.
- Three official SDKs: TypeScript, Python and Rust applications share the same routing interface.
- Self-hosted operation: The MIT license and local deployment model suit teams that cannot send prompts or traces through a hosted gateway.
Artificial Analysis retains control of the project’s development and does not accept pull requests. Users can report bugs and propose changes through GitHub issues, while implementation remains with the company’s team.
Teams that gain the most
Tokedex fits workloads that need one or more of the following capabilities:
- Multi-model agents that switch providers without rewriting request code
- Centralized cost controls through per-key budgets, alerts and workspace-level reporting
- Privacy-sensitive deployments that require the gateway and its traces to remain on controlled infrastructure
- Coding-agent experiments that connect Claude Code, Cursor or similar tools to alternative models
- Resilient model access through retries and configured fallback providers
A solo application using one provider may gain little from the additional service and operational surface. The value increases as the number of models, providers, users and cost controls grows.
Tokedex is available now under the MIT license and carries no software fee. Operators continue to pay the normal API charges imposed by their configured model providers.