Book a call
Overview

Noria

A local, quota-aware proxy for the Codex and Claude accounts I already use. It places new sessions where their allowance is most useful, keeps conversations sticky for prompt caching, and fails over when an account hits its limit.

GoSwiftCLI
Coding AgentsCodexClaude CodeDeveloper Tools
Noria

I use more than one Codex account and more than one Claude account. The annoying part wasn’t signing into all of them. It was what came after: watching each account’s usage, remembering when the five-hour and weekly limits reset, and switching credentials in the middle of work because I’d picked the wrong account for a new session.

I didn’t want to change how I use my coding agents. I wanted to keep opening Codex and Claude Code normally and have the account decision disappear. So I built Noria, a local proxy that sits between those clients and their providers. I sign in to my accounts once, point the clients at Noria, and it decides which account should handle a conversation.

The account with the most quota isn’t always the best choice

My first instinct was round-robin. Then I looked at what I was actually trying to use up. An account with 5% of its weekly allowance left and a reset in 45 minutes may be more valuable for a new session than one with 80% left and six days until reset. Saving the first account’s allowance would just let it expire unused.

But five-hour and weekly percentages aren’t interchangeable units, and a session that is already doing work consumes capacity even between requests. Noria tracks each window separately, considers reset times and active sessions, and learns roughly how much allowance a completed request uses. Its routing algorithm scores new placements by useful capacity, not just the biggest number on a dashboard.

There’s a limit to what it can know. If a provider stops reporting usage, Noria treats it as unknown, not free quota. An actual rate-limit response takes priority over any estimate. It never invents a reset time just to make an account look usable.

Switching on every request would defeat the point

Prompt caches are account-specific. If request one goes to account A and request two goes to B, the second account doesn’t inherit the first one’s cache. A naive load balancer would keep shuffling a conversation between accounts and throw that reuse away.

So Noria makes its decision when a conversation begins, then keeps that conversation on the same account for as long as it can. The binding survives a proxy restart. If the provider rejects an unfulfilled request because the account has exhausted a limit, Noria can choose another eligible account of the same provider, retry safely, and keep subsequent requests there. It doesn’t bounce an active conversation back just because the old account reset.

That distinction matters at the streaming boundary. Once a client has received part of a response, I can’t pretend the next account can pick up the exact same stream. Noria doesn’t splice model output or replay completed tool actions. Sometimes a normal Continue is the right answer.

The proxy stays local, and the providers stay separate

The Go service listens on localhost and keeps account credentials, usage snapshots, and routing state on my machine. Codex requests stay with OpenAI accounts; Claude requests stay with Anthropic accounts. Noria doesn’t switch models, buy quota, or manufacture more allowance. It’s a better way to use the subscriptions I already have.

I also wanted to manage it without opening a terminal every time. There’s a native Swift menu bar app on macOS and lightweight tray apps on Windows and Linux for account status, reset times, and start/stop controls. They’re frontends to the same CLI, not separate sources of truth.

The Codex side is the path I built this for first. Claude Code routing is still experimental, particularly around OAuth refresh and client compatibility, and I don’t want to pretend otherwise. The useful idea is narrower and more durable: an account pool should behave like a scheduler with sticky sessions, not a collection of logins I have to babysit.

Use ← and → to navigate