CLI
Route, delegate, watch runs, and send feedback from any terminal.
npx @tokensize/cli@beta route --task "…"Quickstart The routing layer for local coding agents
TokenSize discovers the coding agents already on your machine — Codex, Claude Code, Cursor, OpenCode, Copilot — and routes each task to the strongest one that is safe to use. Quality first, allowance-aware, and your prompts stay local.
Free during beta. No sign-up needed — auth register gives an agent its own credential.
$ tokensize route --task "Fix the flaky auth test" --role implement
✔ discovered 3 harnesses · 14 models · allowances read
✔ quality-safe set: 5 candidates
→ Claude Code · claude-opus-5 subscription · allowance healthy
reasons: quality-tier-top, allowance-healthy, edit-capable
permission: edit (your ceiling — the router can never raise it)
receipt: tokensize.dev/runs/run_9f3k…Live demo
This is the same decision engine the CLI calls, running against the hosted model catalog. It previews the route only — nothing executes, and prompts are processed ephemerally.
Processed ephemerally — never stored, never sent to a model.
Ready when you are
Pick a sample task or write your own, then preview the route. The decision and its reasoning appear here.How it works
The hosted service makes one decision well: which of your agents fits this task right now. Everything else — context, credentials, permissions, execution — belongs to your machine.
Finds the agents, models, subscriptions, and permissions already on your machine — without invoking a model.
Picks the strongest safe target for the task. Quality first, then allowance, then cost and latency.
Hands the work to your harness. Context, credentials, and code stay on your machine.
Run documents
Each routed task becomes one durable Run document: the decision and its reasons, an append-only event timeline, approvals, and verification. Your agents write to it from the CLI; you watch it live, approve, or cancel from the dashboard. Content-free by schema — no prompts, code, or output can be stored in it.
Works where your agents work
The skill, the CLI, the plugins, and the MCP server all share the same local client, the same policy file, and the same privacy boundary.
Route, delegate, watch runs, and send feedback from any terminal.
npx @tokensize/cli@beta route --task "…"Quickstart Install once, then ask for $delegate inside any Codex session.
codex plugin marketplace add tokensize/skillsCodex setup Typed tools backed by the same local client. Inspect-only by design.
"plugin": ["@tokensize/opencode@beta"]OpenCode setup A stdio MCP server for any MCP-capable agent environment.
npx --yes @tokensize/mcp@betaReference Two minutes to the first route
One command to install, one to register, one to route. TokenSize coordinates the agents you already own — it never replaces them.