For people who live in Claude Code & Codex
Relay runs your Claude and Codex subscriptions, and your own API keys, as one endpoint on your Mac. It switches accounts before limits hit, routes each task to the model that's good enough, and squeezes every token on the way through.
The wall
You're deep in a task, the agent's mid-thought, and Claude tells you you've hit your five-hour limit. Come back in three hours.
You've probably got another account sitting right there with plenty left. You just can't reach it without logging out, dropping your session, and starting the whole thing again. Relay reaches it for you, between turns, so nothing breaks mid-request.
Multi-account
Relay watches every account's five-hour and weekly windows live. When the one you're on gets close, it quietly moves the next turn to another account. No limit, no error, no pause; the session just carries on.
Leave some in the tank. Sharing an account with your team? Set a reserve (say 85%) and Relay stops there and moves on.
When everything's spent, you still don't stop. Relay keeps the session going on another model: GLM or Gemini through OpenRouter, or Codex on GPT. It's not Claude, and Relay shows you exactly which model you've dropped to. But it beats a hard stop and a three-hour wait.
A real Mac app, not a browser tab. Menubar meter, statusline, per-project bindings. Quiet until it matters.
Four ways Relay stretches every token
Every request passes through four disciplines. Each one either cuts the cost or raises the quality, and each one explains itself.
An agent re-reads its whole conversation on every turn. Relay's compression layer trims what the model no longer needs, without ever breaking the provider's prompt cache, so the savings are real, not shuffled around.
Profiles are labelled with the evidence behind them: benchmark results, sample sizes, freshness. Relay stays on the warm route unless a switch clearly wins after cache costs. Preview before apply, one-step undo.
For plans and reviews that are expensive to get wrong. You see who'll be asked and what it costs before anything is sent, and nothing gets built until you approve the result.
Reserves, pre-emptive switching, and honest model fallback when every account is spent. Every hand-off happens at a turn boundary, so nothing breaks mid-request.
Everything in the box
Five-hour and weekly windows per account, in your menubar and statusline. Relay pings you before one gets tight.
Economy, Balanced, Quality; each labelled with the evidence behind it. Preview before apply, one-step undo, and manual edits always win.
Ask two models independently, let a judge compare, approve before anything gets built. Costs shown before a single call is made.
Trims what the model no longer needs from long sessions; cache-safe by design, so a smaller prompt never costs you a cache re-read.
What you actually used, per model and per project, with cached and fresh tokens counted separately, so fallback models never surprise you.
Reusable instructions that keep answers short where short is right, because output tokens are the ones that quietly eat a budget.
Local first
Relay is a loopback proxy: your editor talks to 127.0.0.1, and Relay talks only to the providers you've connected. Your prompts, your code, and your keys never route through anyone else's cloud, including ours.
OAuth tokens and API keys live in the macOS Keychain. They never appear in logs, state files, or exports.
Never logged, never stored, never used to train anything. Relay's local scorebook keeps token counts and outcomes, not content.
Binds to localhost only. Block every Relay host at your firewall and the app keeps working.
Off by default. If you opt in, only thresholded, content-free totals leave, and you can preview exactly what they contain.
One idea, three shapes
The native macOS app. Multi-account switching, routing, fusion, compression, spend tracking; all local, all yours.
The same endpoint, hosted: for CI, remote boxes, and machines that aren't your Mac. Bring your own keys; they're envelope-encrypted with per-tenant locks.
Pool the subscriptions your team already pays for. Reserves keep everyone working; shared routing evidence makes every seat smarter.
A month of heavy agent use, three ways; then Relay stacks the rest.
illustrative comparison · your mix of models, tasks and caching will move these numbers
Optional companion · built on Ghostty
Tandem is a native macOS terminal where two or more Macs share the same session: same cells, same cursor, same scrollback, one authoritative shell. Your agent sessions stop being trapped in the laptop that started them.
Start a session on a Relay cloud runner; it keeps working after your lid closes.
Move a Git-backed session between Macs (agent conversation and background jobs included) and pick up exactly where you left off.
A session on one Mac appears as an ordinary, quietly cloud-marked tab on your other Mac.
Share a live terminal read-only, or grant short write turns; one writer at a time, revocable instantly.
Pricing
The full native app, yours forever. Every feature on this page that says “available now.”
Pooled subscriptions beat metered API pricing; Relay makes them work like one well-behaved endpoint.
The hosted endpoint for CI and remote machines. Your keys, encrypted; your requests, never retained.
beta pricing, illustrative · cloud & teams ship after the app
ok, the simple version
Relay is like having four spare robots and one very organised friend who swaps them in mid-homework. Nobody notices the swap. The homework doesn't stop.
Sam is careful but pricey. Terry is quick and cheap. Fran spots mistakes but writes essays about them. Relay picks whoever will still get an A on this question, for the least pocket money.
Sam already read your 100-page project notebook. Swap to Terry and Terry reads the whole thing again, and you pay for every page. Relay does this maths before every swap so you don't have to.
For the big scary questions, Relay asks two helpers separately, then a judge compares their answers. Like asking both your parents, then getting gran to pick.
Everything happens on your own computer. Relay doesn't send your work to anyone. Not even us. Especially not us.
$59, once. That's about 15 ice creams, but it lasts longer.
(That button does nothing. It's very popular anyway.)