Case study · Developer tooling
Switchyard
Published
The problem
Engineering teams run five AI coding tools, and every one sends every call to the biggest model, autocomplete included. Nobody could say which tool, engineer or team the bill came from.
What we built
One gateway every tool points at. It meters every call's tokens and cost by tool, engineer and team, routes each call to the cheapest model that can do it, and holds teams to their budgets.
Results
- $72k
- yearly saving
- 39%
- cheaper than unrouted
- 158k
- calls routed monthly
A projection, not a client's bill: Switchyard's own month simulation of 24 engineers making 158,400 calls over 22 working days through the gateway, at the default model prices in its config. $15,492 unrouted against $9,487 routed is $6,005 (38.8%) saved a month, about $72k a year.
How it’s built
Every coding tool
Claude Code
Cursor
Codex
Devin
Antigravity
SwitchyardExample callCursor · autocomplete · 800 tok
Metered by tool, engineer and teamIdentifyMeterRouteBudget
Rule: routine task → smallModel tiers
Frontierclaude-opus-5-5 · gpt-5
Standardclaude-sonnet-5-5 · gpt-5-mini
Smallclaude-haiku-4-5 · gpt-5-nano
Swipe sideways to see all of it.
Tech stack
Built with
TypeScript
Node.js
- SQLite
MCP
OpenTelemetry
Docker
Kubernetes
Connected to
Claude Code
Cursor
- Codex
Anthropic
- OpenAI
GitHub
Jira
Linear
ClickUp