Skip to content

Guide

An LLM router for home: fast, smart and backup models

An LLM router decides which model answers a request — by how hard it is, what it costs, how fast it must be. Developers put one in front of their code with a config file.

Updated

A home assistant needs the same thing without the config: a quick model for “what’s the time in Tokyo”, a strong one for “plan our trip”, and something that still answers when the first choice is down. DuoWave, a free and open-source assistant on your computer, has this router built in. Here is how it decides, and how you see each decision.

Three models: Fast, Smart, Backup

In Brain you choose three models, any you have — at home through Ollama or LM Studio, or from a provider: Claude, OpenAI, OpenRouter (sign in to your account; no key to copy) or any compatible service.

ModelWhat it answers
Fastconversation and commands
Smartstories, games and hard questions
Backupanything, if the chosen one does not answer — the limit of a plan ran out, there is no connection or the service refused

The panel says where the Backup sends the question: over the internet, or at home, offline.

Sources: DuoWave, release 0.15.0: README, DuoWave, release 0.6.0, DuoWave, release 0.15.0: panel texts in English, brain.ts

Why this model: a reason on every answer

Each answer of a model is written down as a deal: which place asked — the conversation, an app, a job — which model answered and why, tokens in and out, and dollars at the day’s price. The reasons are plain:

  • *rule: a command* — a short instruction went to Fast;
  • *rule: a short phrase* — small talk went to Fast;
  • *rule: a hard phrase* — a long or hard question went to Smart;
  • *Backup took over* — the chosen model did not answer.

Sources: DuoWave, release 0.13.0, DuoWave, release 0.15.0

Spending: dollars and tokens side by side

Brain → Spending shows today, the week or the month: dollars and tokens by day, by place and by model; how much went at home (free) and how much by a plan — as a key would have cost. Click a model to see its price per million tokens: written by hand, the provider’s, or from the built-in price snapshot. A model with no known price says so, and you can write one in. The dollars are an estimate, not a bill.

Sources: DuoWave, release 0.13.0, DuoWave, release 0.15.0

A fallback that does not wait

  • The chosen model is down — the Backup answers the same question.
  • The machine at home that runs the model is asleep — the Backup answers at once, with no ten-second wait; no Backup — another machine with a model; nobody — honest words in under a second.
  • The main model is at home and there is no Backup — DuoWave sets a fast cloud model on your key by itself, only while you allow clouds; choose “not needed” to refuse it.
  • A model whose VPN route is down does not stand in: all it could say is that the VPN does not answer.
  • A limit runs out — a ChatGPT plan’s, a daily or weekly one, or the money on an OpenAI, OpenRouter or Claude account — and the speaker says so in plain words, with the time it renews. Until then the Backup answers at once, without asking the model that ran out first, and says once that it is standing in. Every 15 minutes the main model is asked again, and it is back as soon as it answers.

Sources: DuoWave, release 0.15.0, DuoWave, release 0.18.4

Your apps use the same router

Apps you make in DuoWave ask the same Brain: they write with Fast or Smart, or with any model you connected. They never see your keys, and each call is in the app’s own journal — which model wrote, how many tokens, the cloud ones marked.

Sources: DuoWave, release 0.9.0

Where it runs

The router lives in DuoWave’s gateway on your computer, and the keys stay in its vault. With What may leave home set to Home only, the router picks only among models on your own machines — see hybrid inference at home.

Sources: DuoWave, release 0.15.0

When LiteLLM or OpenRouter is the better choice

  • You need an endpoint for your own code — one API in front of many providers, with retries, rate limits and team keys. That is LiteLLM, run on your own server, or OpenRouter, a service. DuoWave routes the questions of your assistant and its apps, not the requests of programs you write.
  • You want hundreds of models behind one key. Use OpenRouter — and you can still sign in to it from DuoWave’s Brain and use it as a provider.

Sources: BerriAI, OpenRouter

Questions

Do I have to write rules?

No. Choose three models; the rules are built in, and each answer tells which one fired.

Can the router use my ChatGPT subscription?

Yes. A provider in Brain answers from a ChatGPT Plus or Pro plan with no API key. When its limit runs out, the Backup answers at once until the limit renews.

Can I keep everything at home?

Yes: models at home for all three, and Home only in What may leave home.

Is it free?

DuoWave is free and open source. Models at home cost nothing; the cloud costs what your key or plan costs, and Spending shows it. Download DuoWave.

Sources

Checked on 17 November 2026.

  1. DuoWave, release 0.15.0: README — any model; a Fast model for short answers, a Smart one for hard ones
  2. DuoWave, release 0.6.0: changelog — release 0.6.0: the Backup model; answers from a ChatGPT plan; OpenRouter without a key
  3. DuoWave, release 0.9.0: changelog — release 0.9.0: models for apps — Fast, Smart or any of Brain; apps never see the keys
  4. DuoWave, release 0.13.0: changelog — release 0.13.0: the count of model spending; Spending; deals with reasons; prices
  5. DuoWave, release 0.15.0: changelog — release 0.15.0: Brain does not go silent; the Backup by default; a model behind a VPN that does not answer does not stand in
  6. DuoWave, release 0.18.4: changelog — release 0.18.4: a model’s limit said plainly, with the time it renews; while a limit is out, the backup answers at once
  7. DuoWave, release 0.15.0: panel texts in English, brain.ts — Fast, Smart, Backup; where the Backup sends the question
  8. DuoWave, release 0.15.0: panel texts in English, router.ts — Spending; the reasons of deals; prices
  9. BerriAI: LiteLLM
  10. OpenRouter: OpenRouter

DuoWave

One small program between your things and any AI

DuoWave is a free, open-source AI assistant. Say what you need — it builds small apps, automates your routine and reports back when it's done.

DuoWave is an independent project. It is not affiliated with or endorsed by any speaker maker or AI company. Product names belong to their owners.