Token pool
The pool is the free and paid model sources on your computer, ranked in one place. When one runs dry, the next serves, and your session keeps its context. Full detail: Pool.
What it is
Each computer runs its own pool (OmniRoute on 127.0.0.1:20128), holding your own free accounts. kun decides which sources exist and how they rank; Machine installs the pool, takes your keys, and shows its health. Claude on your plan is never pooled.
The free agents use it: f (Claude Code on the Pool) and o -m omniroute/code (opencode).
Join
- Open Settings → Model → Providers.
- Pick a source and press Get key; sign up at the source and copy the key.
- Paste it, then Save and connect, then Test.
The key goes to this computer's credential store only. The pool re-ranks at once. Three connected sources turn the Free model keys connected step in Setup green.
| Source | Key from |
|---|---|
| NVIDIA | build.nvidia.com |
| Google AI Studio | aistudio.google.com |
| Groq | console.groq.com |
| Mistral | console.mistral.ai (free Experiment plan) |
| OpenRouter | openrouter.ai (set an expiry and a credit limit of 0) |
If a key is needed for a step you cannot get yourself, Ask Abdout sends the request.
Check it
lane poolSettings → Health shows the pool line: green ready, yellow a source dry, red the gateway down. Free sources are public: only our own work runs on them, never client data or secrets.
Windows
On Windows the pool is the same OmniRoute, started a different way. One script does it, the twin of the macOS one:
powershell -NoProfile -ExecutionPolicy Bypass -File .claude/scripts/harvest/omniroute.ps1 install| Verb | What it does |
|---|---|
init | Writes ~/.omniroute/.env once: the gateway's own secrets, loopback only, an API key required |
install | Runs init, registers the task, starts it, and waits until the gateway answers |
uninstall | Removes the task. Your data in ~/.omniroute stays |
status | One word: ok, down or missing. Exit 0, 1 or 2 |
key | Prints the OmniRoute API key. Exits 1 if none is minted yet |
admin | Prints the dashboard password |
init, install and uninstall take --dry-run: they say what would change and change nothing.
The task. install registers a Scheduled Task named "Databayt OmniRoute" that starts when you sign in. It needs no administrator rights and runs as you, only while you are signed in. It runs OmniRoute from ~/.omniroute through a run.ps1 that install generates, and writes the output to omniroute.log in the same folder. If it fails, Windows restarts it, up to five times a minute apart.
Secrets. A second init never replaces an existing .env: its keys may be what the gateway's database is encrypted with. The admin password and the API key live in Windows Credential Manager, not in a file you copy around. The layout is the one Machine's keyring uses: target OMNIROUTE_ADMIN_PASSWORD.org.databayt.kun.machine (the account name, then .org.databayt.kun.machine), the value in UTF-16. The shared code is .claude/scripts/lib/credstore.ps1, which PowerShell and Node both read, so a key one writes the other sees.
Probes. pool-probe.mjs replaced the python3 probes on every system, so the same two checks run on macOS, Linux and Windows. It reads the harvest ledger and never prints a secret.
In Setup
| Step | Checks | Fix |
|---|---|---|
win.omniroute.cli | OmniRoute is installed | Automatic: npm install -g of the pinned version |
win.omniroute.service | The gateway is running | Automatic: omniroute.ps1 install |
win.pool.ready | The ledger is fresh and the free code combo has members | Automatic: omni.mjs setup --harvest |
win.pool.keys | At least three free sources have a key | You: add your keys under Brain → Providers |
What CI proves
The workflow server-mode.yml runs on windows-latest. It proves that:
initwrites every value, with no byte-order mark;- a second
initkeeps them; - the admin password in Credential Manager sits under keyring's target name, and is the one in the
.env; - Node and PowerShell read each other's item;
- a real Scheduled Task, with a stand-in gateway, answers on
127.0.0.1:20128, and is removed after.
The last step is marked experimental: a hosted runner may refuse an interactive task, so a red result there is information, not a verdict on the script.
Known gaps
- It has not yet been run on a real teammate's laptop. CI is the only proof so far.
- The context overrides in
omni.mjsneedsqlite3, which Windows does not ship. hermesKey()and theagycheck inharvest.mjsassume Unix.- The 30-minute harvest job is not ported to Windows. The ledger is refreshed when you run
omni.mjs setup --harvest, not on a timer.