---
type: "post"
id: "artificial-analysis-open-sources-tokedex-a-router-and-ea814a"
slug: "artificial-analysis-open-sources-tokedex-a-router-and-ea814a"
title: "Artificial Analysis open-sources Tokedex, a router and token management gateway"
description: "Choose an agent in Tokedex’s dashboard, create an API key, then use its generated setup prompt to connect Claude Code, Codex, Cursor or another coding agent."
retrieval_nugget: "Choose an agent in Tokedex’s dashboard, create an API key, then use its generated setup prompt to connect Claude Code, Codex, Cursor or another coding agent."
published_at: "2026-12-04"
updated_at: "2026-12-04"
record_date: "2026-12-04"
date_kind: "published_at"
topics: ["claude","claude-code","codex"]
entities: ["Artificial Analysis","Tokedex","Claude Code","Codex","Cursor"]
related_patterns: ["agent-economics-moves-to-completed-work","harness-architecture-outlives-model-choice"]
novelty_label: "new_fact"
what_changed: "Artificial Analysis open-sources Tokedex, a router and token-management gateway for AI coding tools."
prior_refs: ["https://newruntime.com/posts/openrouter-launches-auto-code-router-for-coding-agents-80b0b2/","https://newruntime.com/posts/llm-router-v0-1-0-go-service-exposing-43bb2e/"]
source_url: "https://github.com/ArtificialAnalysis/tokedex"
source_urls: ["https://github.com/ArtificialAnalysis/tokedex"]
production: {"schema":"newruntime-production-v1","desk":"newsroom","first_seen_at":"2026-12-04T07:20:45.495Z","independent_sources":1,"notes_synthesized":null,"writer_model":"gpt-6-luna","critic":null,"checks":["primary_source_verified","source_fresh","one_story","copy_contract"],"novelty":{"label":"new_fact","confidence":"high"},"editorial_value":"high","human_review":"selective"}
citations: [{"claim":"","quotes":["Artificial Analysis published the Tokedex repository on GitHub, described as an open-source router and token management gateway. The team says it packages what they learned benchmarking models and inference providers, and that it is MIT licensed.","Connect a coding agent The dashboard writes the setup for Claude Code, Codex, Cursor and other coding agents."],"cite_url":"https://github.com/ArtificialAnalysis/tokedex#:~:text=Artificial%20Analysis%20published%20the%20Tokedex%20repository%20on%20GitHub%2C%20described%20as%20an%20open%2Dsource%20router%20and%20token%20management%20gateway.%20The%20team%20says%20it%20packages%20what%20they%20learned%20benchmarking%20models%20and%20inference%20providers%2C%20and%20that%20it%20is%20MIT%20licensed.&text=Connect%20a%20coding%20agent%20The%20dashboard%20writes%20the%20setup%20for%20Claude%20Code%2C%20Codex%2C%20Cursor%20and%20other%20coding%20agents.","source_url":"https://github.com/ArtificialAnalysis/tokedex","publisher":"github.com"},{"claim":"The README also lists trace inspection, with data not sent to a third party, plus spend budgets, alerts, scoped keys, SSO and team workspaces.","quotes":["Use Artificial Analysis intelligence, speed and cost benchmarks to automatically pick the best model for your constraints, such as the cheapest model scoring 50+ on the Intelligence Index."],"cite_url":"https://github.com/ArtificialAnalysis/tokedex#:~:text=Use%20Artificial%20Analysis%20intelligence%2C%20speed%20and%20cost%20benchmarks%20to%20automatically%20pick%20the%20best%20model%20for%20your%20constraints%2C%20such%20as%20the%20cheapest%20model%20scoring%2050%2B%20on%20the%20Intelligence%20Index.","source_url":"https://github.com/ArtificialAnalysis/tokedex","publisher":"github.com"},{"claim":"Retries and fallback models are supported.","quotes":["Set spend budgets and alerts, scope API keys, enable SSO and organize teams into workspaces."],"cite_url":"https://github.com/ArtificialAnalysis/tokedex#:~:text=Set%20spend%20budgets%20and%20alerts%2C%20scope%20API%20keys%2C%20enable%20SSO%20and%20organize%20teams%20into%20workspaces.","source_url":"https://github.com/ArtificialAnalysis/tokedex","publisher":"github.com"},{"claim":"Python, TypeScript and Rust SDKs offer streaming, structured output and tool calling, either directly or through the gateway; direct provider calls can read keys from environment variables.","quotes":["Increase availability with smart retries and fallback models to ensure your agents don't go down."],"cite_url":"https://github.com/ArtificialAnalysis/tokedex#:~:text=Increase%20availability%20with%20smart%20retries%20and%20fallback%20models%20to%20ensure%20your%20agents%20don%27t%20go%20down.","source_url":"https://github.com/ArtificialAnalysis/tokedex","publisher":"github.com"},{"claim":"Plain HTTP and curl are also supported.","quotes":["📦 SDKs for Python, TypeScript and Rust . Call models from your own code with streaming, structured output and tool calling, directly or through your gateway.","Call a provider directly The Router reads provider keys such as ANTHROPIC_API_KEY from your environment."],"cite_url":"https://github.com/ArtificialAnalysis/tokedex#:~:text=%F0%9F%93%A6%20SDKs%20for%20Python%2C%20TypeScript%20and%20Rust%20.%20Call%20models%20from%20your%20own%20code%20with%20streaming%2C%20structured%20output%20and%20tool%20calling%2C%20directly%20or%20through%20your%20gateway.&text=Call%20a%20provider%20directly%20The%20Router%20reads%20provider%20keys%20such%20as%20ANTHROPIC_API_KEY%20from%20your%20environment.","source_url":"https://github.com/ArtificialAnalysis/tokedex","publisher":"github.com"},{"claim":"Tokedex is MIT-licensed.","quotes":["Plain HTTP and curl work too."],"cite_url":"https://github.com/ArtificialAnalysis/tokedex#:~:text=Plain%20HTTP%20and%20curl%20work%20too.","source_url":"https://github.com/ArtificialAnalysis/tokedex","publisher":"github.com"},{"claim":"","quotes":["Artificial Analysis published the Tokedex repository on GitHub, described as an open-source router and token management gateway. The team says it packages what they learned benchmarking models and inference providers, and that it is MIT licensed."],"cite_url":"https://github.com/ArtificialAnalysis/tokedex#:~:text=Artificial%20Analysis%20published%20the%20Tokedex%20repository%20on%20GitHub%2C%20described%20as%20an%20open%2Dsource%20router%20and%20token%20management%20gateway.%20The%20team%20says%20it%20packages%20what%20they%20learned%20benchmarking%20models%20and%20inference%20providers%2C%20and%20that%20it%20is%20MIT%20licensed.","source_url":"https://github.com/ArtificialAnalysis/tokedex","publisher":"github.com"},{"claim":"Artificial Analysis accepts bug reports, feature requests and documentation fixes as GitHub issues, but does not accept outside pull requests.","quotes":["The sample can incur provider charges."],"cite_url":"https://github.com/ArtificialAnalysis/tokedex#:~:text=The%20sample%20can%20incur%20provider%20charges.","source_url":"https://github.com/ArtificialAnalysis/tokedex","publisher":"github.com"},{"claim":"","quotes":["} ) ; Contributing We take bug reports, feature requests and docs fixes as GitHub issues . We do not accept outside pull requests; CONTRIBUTING.md explains what to put in an issue."],"cite_url":"https://github.com/ArtificialAnalysis/tokedex#:~:text=%7D%20%29%20%3B%20Contributing%20We%20take%20bug%20reports%2C%20feature%20requests%20and%20docs%20fixes%20as%20GitHub%20issues%20.%20We%20do%20not%20accept%20outside%20pull%20requests%3B%20CONTRIBUTING.md%20explains%20what%20to%20put%20in%20an%20issue.","source_url":"https://github.com/ArtificialAnalysis/tokedex","publisher":"github.com"},{"claim":"The gateway prints a master key in its log; sign in at http://127.0.0.1:4000, connect a provider from Home and send a request.","quotes":["Quick start git clone https://github.com/ArtificialAnalysis/Tokedex.git cd Tokedex # Docker (recommended) docker compose up --no-build # or npm npm install # or: pnpm install npm start # or: pnpm start The gateway prints its master key in the log."],"cite_url":"https://github.com/ArtificialAnalysis/tokedex#:~:text=Quick%20start%20git%20clone%20https%3A%2F%2Fgithub.com%2FArtificialAnalysis%2FTokedex.git%20cd%20Tokedex%20%23%20Docker%20%28recommended%29%20docker%20compose%20up%20%2D%2Dno%2Dbuild%20%23%20or%20npm%20npm%20install%20%23%20or%3A%20pnpm%20install%20npm%20start%20%23%20or%3A%20pnpm%20start%20The%20gateway%20prints%20its%20master%20key%20in%20the%20log.","source_url":"https://github.com/ArtificialAnalysis/tokedex","publisher":"github.com"},{"claim":"To connect an agent, use Home’s “Connect your coding agent” flow: create an API key, add its copied line to your shell profile, choose a model and paste the setup prompt into the agent.","quotes":["Quick start git clone https://github.com/ArtificialAnalysis/Tokedex.git … and send your first request."],"cite_url":"https://github.com/ArtificialAnalysis/tokedex#:~:text=Quick%20start%20git%20clone%20https%3A%2F%2Fgithub.com%2FArtificialAnalysis%2FTokedex.git,and%20send%20your%20first%20request.","source_url":"https://github.com/ArtificialAnalysis/tokedex","publisher":"github.com"},{"claim":"npm or pnpm are alternative startup options, and the SDK installs via npm install @tokedex/sdk, uv add tokedex or cargo add tokedex.","quotes":["Choose Create API key , then Copy key line , and add the line to your shell profile. Choose a model, then Copy setup prompt , and paste the prompt into your agent."],"cite_url":"https://github.com/ArtificialAnalysis/tokedex#:~:text=Choose%20Create%20API%20key%20%2C%20then%20Copy%20key%20line%20%2C%20and%20add%20the%20line%20to%20your%20shell%20profile.%20Choose%20a%20model%2C%20then%20Copy%20setup%20prompt%20%2C%20and%20paste%20the%20prompt%20into%20your%20agent.","source_url":"https://github.com/ArtificialAnalysis/tokedex","publisher":"github.com"},{"claim":"The README points to Kubernetes for production deployment.","quotes":["Quick start git clone https://github.com/ArtificialAnalysis/Tokedex.git cd Tokedex # Docker (recommended) docker compose up --no-build # or npm npm install # or: pnpm install npm start # or: pnpm start The gateway prints its master key in the log.","Use the SDK Install it with npm install @tokedex/sdk , uv add tokedex or cargo add tokedex ."],"cite_url":"https://github.com/ArtificialAnalysis/tokedex#:~:text=Quick%20start%20git%20clone%20https%3A%2F%2Fgithub.com%2FArtificialAnalysis%2FTokedex.git%20cd%20Tokedex%20%23%20Docker%20%28recommended%29%20docker%20compose%20up%20%2D%2Dno%2Dbuild%20%23%20or%20npm%20npm%20install%20%23%20or%3A%20pnpm%20install%20npm%20start%20%23%20or%3A%20pnpm%20start%20The%20gateway%20prints%20its%20master%20key%20in%20the%20log.&text=Use%20the%20SDK%20Install%20it%20with%20npm%20install%20%40tokedex%2Fsdk%20%2C%20uv%20add%20tokedex%20or%20cargo%20add%20tokedex%20.","source_url":"https://github.com/ArtificialAnalysis/tokedex","publisher":"github.com"}]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:artificial-analysis-open-sources-tokedex-a-router-and-ea814a"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/artificial-analysis-open-sources-tokedex-a-router-and-ea814a/","markdown":"https://newruntime.com/posts/artificial-analysis-open-sources-tokedex-a-router-and-ea814a.md","json":"https://newruntime.com/posts/artificial-analysis-open-sources-tokedex-a-router-and-ea814a.json"}
markdown_url: "https://newruntime.com/posts/artificial-analysis-open-sources-tokedex-a-router-and-ea814a.md"
---

# Artificial Analysis open-sources Tokedex, a router and token management gateway

## Retrieval answer

Choose an agent in Tokedex’s dashboard, create an API key, then use its generated setup prompt to connect Claude Code, Codex, Cursor or another coding agent.

## Summary

Choose an agent in Tokedex’s dashboard, create an API key, then use its generated setup prompt to connect Claude Code, Codex, Cursor or another coding agent. Artificial Analysis presents Tokedex as an open-source router and token-management gateway. ([github.com](https://github.com/ArtificialAnalysis/tokedex#:~:text=Artificial%20Analysis%20published%20the%20Tokedex%20repository%20on%20GitHub%2C%20described%20as%20an%20open%2Dsource%20router%20and%20token%20management%20gateway.%20The%20team%20says%20it%20packages%20what%20they%20learned%20benchmarking%20models%20and%20inference%20providers%2C%20and%20that%20it%20is%20MIT%20licensed.&text=Connect%20a%20coding%20agent%20The%20dashboard%20writes%20the%20setup%20for%20Claude%20Code%2C%20Codex%2C%20Cursor%20and%20other%20coding%20agents.))

## What happened

The README says Tokedex supports OpenAI Chat Completions, OpenAI Responses and Anthropic Messages APIs with any model. Its router can select models against Artificial Analysis intelligence, speed and cost benchmarks and specified constraints. ([github.com](https://github.com/ArtificialAnalysis/tokedex#:~:text=Use%20Artificial%20Analysis%20intelligence%2C%20speed%20and%20cost%20benchmarks%20to%20automatically%20pick%20the%20best%20model%20for%20your%20constraints%2C%20such%20as%20the%20cheapest%20model%20scoring%2050%2B%20on%20the%20Intelligence%20Index.)) The README also lists trace inspection, with data not sent to a third party, plus spend budgets, alerts, scoped keys, SSO and team workspaces. ([github.com](https://github.com/ArtificialAnalysis/tokedex#:~:text=Set%20spend%20budgets%20and%20alerts%2C%20scope%20API%20keys%2C%20enable%20SSO%20and%20organize%20teams%20into%20workspaces.)) Retries and fallback models are supported. ([github.com](https://github.com/ArtificialAnalysis/tokedex#:~:text=Increase%20availability%20with%20smart%20retries%20and%20fallback%20models%20to%20ensure%20your%20agents%20don%27t%20go%20down.)) Python, TypeScript and Rust SDKs offer streaming, structured output and tool calling, either directly or through the gateway; direct provider calls can read keys from environment variables. ([github.com](https://github.com/ArtificialAnalysis/tokedex#:~:text=%F0%9F%93%A6%20SDKs%20for%20Python%2C%20TypeScript%20and%20Rust%20.%20Call%20models%20from%20your%20own%20code%20with%20streaming%2C%20structured%20output%20and%20tool%20calling%2C%20directly%20or%20through%20your%20gateway.&text=Call%20a%20provider%20directly%20The%20Router%20reads%20provider%20keys%20such%20as%20ANTHROPIC_API_KEY%20from%20your%20environment.)) Plain HTTP and curl are also supported. ([github.com](https://github.com/ArtificialAnalysis/tokedex#:~:text=Plain%20HTTP%20and%20curl%20work%20too.)) Tokedex is MIT-licensed. ([github.com](https://github.com/ArtificialAnalysis/tokedex#:~:text=Artificial%20Analysis%20published%20the%20Tokedex%20repository%20on%20GitHub%2C%20described%20as%20an%20open%2Dsource%20router%20and%20token%20management%20gateway.%20The%20team%20says%20it%20packages%20what%20they%20learned%20benchmarking%20models%20and%20inference%20providers%2C%20and%20that%20it%20is%20MIT%20licensed.))

One README example routes to the cheapest model scoring 50+ on the Intelligence Index.

## What the archive adds

This connects Artificial Analysis’s benchmark work, including its Coding Agent Index update, with the growing use of model gateways for coding agents. ([earlier New Runtime note](https://newruntime.com/posts/artificial-analysis-publishes-coding-agent-index-v2-1-983801/)) It also sits alongside coverage of OpenRouter’s Auto Code router. ([earlier New Runtime note](https://newruntime.com/posts/openrouter-launches-auto-code-router-for-coding-agents-80b0b2/))

## Why it matters

For a team lead, the useful test is whether one shared routing policy can replace per-agent model choices while keeping spend and access controls in one place. That could simplify governance, but benchmark thresholds still need validation against the team’s own coding tasks.

## Limits and uncertainty

The README warns that its direct-provider sample can incur provider charges. ([github.com](https://github.com/ArtificialAnalysis/tokedex#:~:text=The%20sample%20can%20incur%20provider%20charges.)) Artificial Analysis accepts bug reports, feature requests and documentation fixes as GitHub issues, but does not accept outside pull requests. ([github.com](https://github.com/ArtificialAnalysis/tokedex#:~:text=%7D%20%29%20%3B%20Contributing%20We%20take%20bug%20reports%2C%20feature%20requests%20and%20docs%20fixes%20as%20GitHub%20issues%20.%20We%20do%20not%20accept%20outside%20pull%20requests%3B%20CONTRIBUTING.md%20explains%20what%20to%20put%20in%20an%20issue.))

## Skill to build now

For a local test, the README recommends Docker: `git clone https://github.com/ArtificialAnalysis/Tokedex.git`, `cd Tokedex`, then `docker compose up --no-build`. ([github.com](https://github.com/ArtificialAnalysis/tokedex#:~:text=Quick%20start%20git%20clone%20https%3A%2F%2Fgithub.com%2FArtificialAnalysis%2FTokedex.git%20cd%20Tokedex%20%23%20Docker%20%28recommended%29%20docker%20compose%20up%20%2D%2Dno%2Dbuild%20%23%20or%20npm%20npm%20install%20%23%20or%3A%20pnpm%20install%20npm%20start%20%23%20or%3A%20pnpm%20start%20The%20gateway%20prints%20its%20master%20key%20in%20the%20log.)) The gateway prints a master key in its log; sign in at `http://127.0.0.1:4000`, connect a provider from Home and send a request. ([github.com](https://github.com/ArtificialAnalysis/tokedex#:~:text=Quick%20start%20git%20clone%20https%3A%2F%2Fgithub.com%2FArtificialAnalysis%2FTokedex.git,and%20send%20your%20first%20request.)) To connect an agent, use Home’s “Connect your coding agent” flow: create an API key, add its copied line to your shell profile, choose a model and paste the setup prompt into the agent. ([github.com](https://github.com/ArtificialAnalysis/tokedex#:~:text=Choose%20Create%20API%20key%20%2C%20then%20Copy%20key%20line%20%2C%20and%20add%20the%20line%20to%20your%20shell%20profile.%20Choose%20a%20model%2C%20then%20Copy%20setup%20prompt%20%2C%20and%20paste%20the%20prompt%20into%20your%20agent.)) npm or pnpm are alternative startup options, and the SDK installs via `npm install @tokedex/sdk`, `uv add tokedex` or `cargo add tokedex`. ([github.com](https://github.com/ArtificialAnalysis/tokedex#:~:text=Quick%20start%20git%20clone%20https%3A%2F%2Fgithub.com%2FArtificialAnalysis%2FTokedex.git%20cd%20Tokedex%20%23%20Docker%20%28recommended%29%20docker%20compose%20up%20%2D%2Dno%2Dbuild%20%23%20or%20npm%20npm%20install%20%23%20or%3A%20pnpm%20install%20npm%20start%20%23%20or%3A%20pnpm%20start%20The%20gateway%20prints%20its%20master%20key%20in%20the%20log.&text=Use%20the%20SDK%20Install%20it%20with%20npm%20install%20%40tokedex%2Fsdk%20%2C%20uv%20add%20tokedex%20or%20cargo%20add%20tokedex%20.)) The README points to Kubernetes for production deployment.

## Reader takeaway

Tokedex gives teams a self-hosted place to connect coding agents, route across models using Artificial Analysis benchmarks, and manage spend and access. The README’s Docker quick start gets a local instance running; test the routing rule and provider setup against your own workloads before making it a shared control plane.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Claude](https://newruntime.com/topics/claude.md): Explore the claude topic hub.
- topic hub: [Claude Code](https://newruntime.com/topics/claude-code.md): Explore the claude-code topic hub.
- topic hub: [Codex](https://newruntime.com/topics/codex.md): Explore the codex topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
