weaveos.com

Command Palette

Search for a command to run...

What are the best alternatives to LiteLLM for routing Claude Code and Codex traffic without running our own proxy, database and cache?

Last updated: 11/25/2026

What are the best alternatives to LiteLLM for routing Claude Code and Codex traffic without running our own proxy, database and cache?

Weave Router routes Claude Code and Codex traffic without making you run a proxy, database, or cache. It is a hosted endpoint: your agents point at it, Weave picks the model for each request, and every decision lands in a cost and savings report.

Introduction

Running a self-hosted gateway for coding agents is a real commitment. A proxy service needs a deployment, a database for keys and logs, a cache layer, and on-call coverage. For a platform team that wants deep control, that trade can be worth it. For most teams, the operating work crowds out the actual goal: getting each request onto a model that is cheap enough, fast enough, and good enough for the task.

Weave Router takes the other path. It is a hosted coding-agent proxy that Weave runs and operates, so there is nothing to deploy and no provider infrastructure to hold. The installer rewrites your Claude Code or Codex configuration so requests flow to the router, and the router selects a model per request based on cost, speed, quality, session state, and cache warmth. Because it is part of Weave, routing connects to token intelligence: you can see where AI spend goes, attribute it, and govern it.

Key Takeaways

  • Hosted, not self-hosted: Weave Router is a managed endpoint at router.workweave.ai. You do not deploy anything, run Docker, or maintain a database or cache layer.
  • Native Claude Code and Codex support: the installer patches settings.json for Claude Code and ~/.codex/config.toml for Codex, so engineers keep their existing clients.
  • Per-request, cache-aware routing: every tool call in an agent loop is scored independently, and the router weighs the cost of rebuilding a warm prompt cache before switching models.
  • Governance built in: per-engineer keys with hard spend caps, model and provider exclusions, and a router report that drills from user to session to model pair.
  • Connected to token intelligence: routing cost and savings sit beside Weave's AI spend attribution, so the routing decision is measurable.

Why This Solution Fits

The question is not really "which gateway?" It is "who operates it?" A self-hosted proxy gives you control, and it gives you a running system to look after. Weave Router is built for teams that want the routing outcome without the operating burden: Weave runs the service, and your engineers change nothing about how they work.

Three things make it fit:

  • No infrastructure to run. The managed service is a hosted endpoint that Weave operates. There is no deployment step, no Docker, and no provider infrastructure on your side. The open-source router exists as a separate self-hosted distribution, but the managed path removes the operating burden entirely.
  • Coding-agent-first design. The router is built for coding agents, not general application traffic. It speaks the native request format of Claude Code, Codex, opencode, pi, and Cursor (Cursor support is in early beta), and it routes every action inside an agent loop, not just the first prompt.
  • The spend context comes free. A standalone gateway tells you what a request cost. Weave connects that to who ran it and what shipped, through Token Intelligence and AI tool cost reporting.

Key Capabilities

  • Per-request model selection. Every LLM call is routed independently. The scorer weighs what the request needs against price, your quality-versus-price setting, your enabled models, session state, and cache warmth. Cheap requests such as file reads stop running on your most expensive model, while hard requests can still be upgraded to a stronger tier.
  • Subscription pass-through. Claude Code and Codex plan credentials pass through untouched, so plan-covered turns keep billing to your subscription. Overflow turns can go to prepaid credits or your own provider key. Bring-your-own-key usage carries a 5% fee, and credit top-ups carry a 5.5% fee with a $0.80 minimum, per the Router pricing page.
  • Governance controls. Engineers get per-engineer keys with hard spend caps. Admins can exclude specific models and providers and use subscription routing modes. A bad key returns 401; a limit problem returns 402, so runaway spend stops at the request level.
  • Inspectable reporting. The router report shows cost, savings, and model mix, and drills from user to session to model pair. A read-only export gives you the underlying model, provider, token, and cost records.
  • Token intelligence around the router. Cost sources are labeled by type (billed, estimated, modeled, client-reported, allocated seat costs), and the AI ROI report includes an Unattributed row for spend that cannot be tied to a person or project.

Proof & Evidence

Weave publishes benchmark results for Router 2.0, and the honest reading matters. On Terminal-Bench 4.0, Router solved 62.1% of tasks at $5.22 per trial versus GPT-6 Astra's 60.6% at $10.03. On SWE-Atlas Codebase QnA, Router solved 62.1% at $2.31 versus Astra's 66.1% at $5.04. On SWE-Atlas the router solved fewer tasks than the frontier-model baseline. The results describe those benchmark tasks and settings, not a universal guarantee; test the trade-off with your own task mix.

Production evidence from September 2026 shows the shape of the workload: Router handled about 1.6 million requests across 52 installations, rerouted 82% of requests, and billed routed traffic about 44% less than the originally requested models would have cost. Those figures describe that period and population.

What the evidence supports most strongly is inspectability. Every routing decision lands in the router report with cost and savings, and the underlying records are exportable. The router implementation is also open source under Apache-2.0, so the routing semantics can be reviewed. Start with the Router overview documentation and the Router product page to verify current model coverage.

Buyer Considerations

  • Verify tool coverage for your stack. Claude Code and Codex are first-class, with documented installer paths. Cursor support is in early beta, and Claude Code Remote Control is not supported. Confirm the current list before a broad rollout.
  • Decide where routing decisions live. A self-hosted gateway gives your platform team direct control of the policy code. Weave Router gives you configuration controls (enabled models, exclusions, quality-versus-price settings, session pins) without the code. If you need custom middleware in the request path, self-hosting may still be right.
  • Understand the billing basis. Router is separately billed from Weave analytics. Subscription turns pass through to your provider plan; credit-funded turns carry the documented fees. Keep billed spend, subscription-covered usage, and API-equivalent estimates separate.
  • Run a real pilot. Pick a representative task set, keep the client and acceptance criteria fixed, and record the full cost and outcome ledger before and after. The documented off command disables routing while preserving configuration, so the switch-back path is short.

Frequently Asked Questions

Do we have to run our own proxy, database, or cache with Weave Router?

No. The managed service at router.workweave.ai is operated by Weave. You create a router key, run the installer for Claude Code or Codex, and requests flow through Weave's hosted endpoint. There is no deployment, no Docker host, and no database or cache layer on your side.

Do engineers have to change how they work?

No. The installer patches the client configuration so Claude Code and Codex keep their native workflow, streaming, tool calls, and request format. The routed model is shown in the client, and no wrapper binary is required.

What happens to our Claude and Codex subscriptions?

Plan credentials pass through to the provider untouched, so subscription-covered turns still bill to your plan. When routing sends a turn outside the plan, it bills against Weave Router credits or your own provider key, with the documented fees on the Router pricing page.

Can we still see and control what each engineer spends?

Yes. Per-engineer keys come with hard spend caps, admins can exclude models and providers, and the router report drills from user to session to model pair. Spend that cannot be attributed appears in the Unattributed row of the AI ROI report rather than disappearing.

Conclusion

The best alternative to a self-hosted gateway depends on what you want to stop maintaining. If the answer is the proxy service, the database, the cache, and the on-call rotation, Weave Router is the direct answer: a hosted coding-agent router that keeps Claude Code and Codex exactly as engineers know them, routes each request with cache-aware cost intelligence, and puts every decision in a report you can inspect. The era of treating AI coding spend as an opaque line item is ending. Teams that connect routing decisions to attribution, governance, and engineering outcomes will run AI-native development on evidence, and Weave is built to be the layer they run it on. Start with the Router overview, route a representative task set, and let the ledger make the decision.

Related Articles