Tokedex: Artificial Analysis reduces AI agents' dependence on individual model providers
Artificial Analysis releases Tokedex, an open-source model router combining benchmark data, spending controls and agent infrastructure. Its strategic significance goes beyond another API gateway.

What is Tokedex?
Tokedex is an open-source model gateway and routing system from Artificial Analysis. Released on December 3, 2026, it takes the benchmarking company beyond comparing language models toward operational use of its evaluation data. The source code is available on GitHub under the MIT license. At the time of our review, the documentation identifies version v0.1.1.
A gateway is a shared access layer between AI applications and connected model providers. Tokedex supports different API formats and documents SDKs for Python, TypeScript and Rust. Existing applications and coding agents can use compatible interfaces to access alternative models. This does not imply that every model-specific capability transfers automatically.
Tokedex is neither an autonomous agent nor a new language model. It selects a model path within a configured request and provides administrative capabilities. Task planning, tool execution and acceptance remain responsibilities of the calling application.
How benchmark-based routing works
The distinguishing feature is the connection between Artificial Analysis evaluation data and model selection. Documented built-in routers can rank eligible models by Intelligence Index, benchmarked cost per task or measured time per task. For example, aa/most-intelligent selects the highest measured intelligence among eligible models, aa/cheapest prioritizes benchmarked task cost, and aa/fastest prioritizes measured task duration.
The aa/cheapest-50-intelligence route limits candidates to models scoring at least 50 on the Intelligence Index; corresponding thresholds of 40 and 30 are documented. Built-in routes only use providers actually connected to the gateway. The documentation recommends custom routers for applications that require a stable candidate list across releases.
None of these rules guarantees an optimal business decision. A general index aggregates particular measurements. Workloads involving confidential data, unusual programming languages or special tool formats need additional constraints. Low benchmark costs do not guarantee low costs in an organization's own workflow.
Why model selection matters for agents
A complex assignment can involve dozens or hundreds of model calls. An agent breaks down the objective, gathers information, prepares tool arguments, reviews results and responds to failures. Not every step needs the same kind of intelligence.
An application might use a low-cost model route for straightforward classification and reserve a stronger model for architectural decisions. In a software project, one model could summarize documentation while another reviews a patch. Such decisions require task decomposition in the application; Tokedex does not automatically classify every assignment by its true business difficulty.
A central access layer gives developers a way to test model strategies without rebuilding each integration. Overall quality still depends on the combination of model, harness, tools, context and control mechanisms.
From token prices to cost per successful task
Price per million tokens is useful but captures only part of the economics. An inexpensive model may require repeated attempts or more human correction than a more expensive model.
Consider a purely hypothetical illustration: Model A costs $0.10 per attempt and succeeds with probability 50 percent. Model B costs $0.16 and succeeds with probability 90 percent. Under independent repetitions with constant costs and success probabilities, the expected cost per success is $0.20 and about $0.18 respectively. The more expensive model per attempt is cheaper per success in this simplified example.
These numbers are not Tokedex measurements. Real agent workflows also involve tool costs, latency, retry limits, failures and human review. Result quality may differ as well. A meaningful evaluation should therefore measure cost per accepted outcome and document consequences of failures.
| Metric | Model A | Model B |
|---|---|---|
| Cost per attempt | $0.10 | $0.16 |
| Success probability | 50% | 90% |
| Expected cost per success | $0.20 | $0.18 |
Reduced vendor dependency, not unlimited model switching
A shared access layer can simplify switching model providers. Tokedex documents retries and fallback for particular failures. Alternative candidates must support the features actually required by the request. A streaming response can move to another model only before the gateway has emitted any output.
The documentation also distinguishes context windows, pinned continuations and requests using special formats. A context overflow may trigger fallback under documented conditions, while an invalid max_tokens parameter terminates the request with an error. Not every unsuccessful request can be recovered automatically.
For agents, a failed model call must not be confused with a failed external action. If an agent has already modified an application, its harness must inspect the actual state before restarting the task. An API gateway cannot automatically undo business actions that have already occurred.
Independence is therefore relative: differences in model capabilities, tool formats, data processing and provider terms remain.
Budgets, roles and spending controls
Tokedex documents workspaces, API keys, roles, model access, budgets and spending reports. These capabilities are relevant to continuously operating agents whose individual requests are not manually initiated.
The dashboard and observability API can expose the model, provider, status, token usage, estimated cost and request duration. An important limitation is also documented: request and response text appears only if the gateway captured it. Failed attempts before a successful fallback are not listed as individual answered calls in the request view.
Operators should configure capture to provide enough information for fault analysis without unnecessarily retaining confidential conversation content. Cost reports should be reconciled with actual provider invoices. In particular, teams should test how budget boundaries behave with parallel requests and retries before relying on them in production.
Self-hosting is not automatic privacy
Open source and self-hosting give organizations greater control of gateway infrastructure. Provider credentials, logs and permissions can be managed in an environment under their control. The gateway's software license must be distinguished from the licenses and terms of the models it calls.
When external model APIs are used, the information required for a request still leaves the organization's system. Operating the gateway yourself does not change this fact. Fallback must not silently transmit sensitive content to a provider that is not approved for the particular workflow.
European organizations must still assess processing regions, contractual terms, retention, technical access controls and operational responsibilities. Updates, backups, credential rotation and central gateway availability require planning. The MIT license is neither a security certification nor proof of GDPR compliance.
Tokedex compared with existing model gateways
Tokedex enters a market with several existing approaches. OpenRouter provides managed model access; LiteLLM is known for configurable multi-provider infrastructure and proxy capabilities. Vercel AI Gateway targets AI applications with managed model access. These are broad distinctions, not a complete feature or price ranking.
Tokedex's distinctive approach is direct use of Artificial Analysis benchmark data when selecting eligible models. Comparisons should look beyond the number of models available and examine actual access, fallback rules, data flows, logging and operational costs.
A self-hosted gateway may suit teams with specific control requirements but introduces operational responsibilities. Suitability depends on the use case. We have not tested these alternatives side by side in a common environment.
The critical question: who controls model selection?
Artificial Analysis evaluates models and now provides infrastructure that uses its evaluations for operational decisions. This is strategically interesting but requires transparency about selection criteria. Changes to benchmarks or candidate lists can alter which model an application actually uses.
For a regulated or business-critical workflow, the organization should be able to identify the model version, evaluation basis and routing rule associated with a request. Changes to a default route must not silently alter the boundaries of an already validated use case.
An initial pilot could compare two models using a fixed set of real tasks. Evaluation should measure accepted outcomes, total cost, latency, undesirable tool choices and handling of missing permissions. A separate test should simulate model failures and check that fallback remains within the approved candidate set. These are our proposed acceptance checks, not completed Tokedex tests.
Our assessment: the next infrastructure layer for agents
Competition in artificial intelligence currently emphasizes model scale, benchmarks and new capabilities. As agent systems spread, a significant share of value may move into the infrastructure above models. Whoever determines which model handles which task influences the cost, performance and reliability of complete applications.
Artificial Analysis has a natural starting point in its benchmark data. Tokedex turns observation of the model market into a means of acting on that information. Whether this becomes a durable advantage depends on evaluation quality, transparent routing rules, integration with agent harnesses and operational reliability.
The decisive question may shift away from which model is best in general toward which combination of models, tools and controls delivers the best verifiable result for a particular assignment.
Conclusion
Tokedex expands options for developers and organizations building agents with multiple models. Combining open source, benchmark-based routing and centralized spending management is particularly relevant. The initial Perplexity report could not be retrieved in full; this analysis relies on the project repository and publicly available original documentation on routing, budgets and request observability. AgentenCode has not independently tested Tokedex in production.
Frequently asked questions
What is Tokedex?
A model gateway and routing system from Artificial Analysis, released under the MIT license, not a standalone AI agent.
How does Tokedex select a model?
Documented built-in routes order eligible models by Intelligence Index, benchmarked cost or time. Custom routers can be configured for stable candidate lists.
Can Tokedex switch models after a failure?
Yes, under documented fallback conditions. Streaming fallback is limited to before output begins, and alternate models must support the required features.
Is Tokedex free?
The gateway software is MIT-licensed. Hosting, model providers and other services involve separate costs.
Does self-hosting keep all data local?
Not necessarily. External model providers still receive required request data. Local logs also need protection.
Has AgentenCode tested Tokedex?
No. This analysis uses original documentation and the public repository. The cost example is hypothetical.
Sources and evidence notes
- Artificial Analysis · Tokedex — official open-source repository
- Artificial Analysis · Tokedex documentation
- Routers and fallback
- Budgets
- Find and inspect a request
- Perplexity Discover · Ausgangsmeldung / initial lead; full text unavailable