Token pool

What the pool is, and how to add your free model keys to it

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

  1. Open Settings → Model → Providers.
  2. Pick a source and press Get key; sign up at the source and copy the key.
  3. 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.

SourceKey from
NVIDIAbuild.nvidia.com
Google AI Studioaistudio.google.com
Groqconsole.groq.com
Mistralconsole.mistral.ai (free Experiment plan)
OpenRouteropenrouter.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 pool

Settings → 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
VerbWhat it does
initWrites ~/.omniroute/.env once: the gateway's own secrets, loopback only, an API key required
installRuns init, registers the task, starts it, and waits until the gateway answers
uninstallRemoves the task. Your data in ~/.omniroute stays
statusOne word: ok, down or missing. Exit 0, 1 or 2
keyPrints the OmniRoute API key. Exits 1 if none is minted yet
adminPrints 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

StepChecksFix
win.omniroute.cliOmniRoute is installedAutomatic: npm install -g of the pinned version
win.omniroute.serviceThe gateway is runningAutomatic: omniroute.ps1 install
win.pool.readyThe ledger is fresh and the free code combo has membersAutomatic: omni.mjs setup --harvest
win.pool.keysAt least three free sources have a keyYou: add your keys under Brain → Providers

What CI proves

The workflow server-mode.yml runs on windows-latest. It proves that:

  • init writes every value, with no byte-order mark;
  • a second init keeps 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.mjs need sqlite3, which Windows does not ship.
  • hermesKey() and the agy check in harvest.mjs assume 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.