Skip to content

Releases

opencode-hop 2.3.5

Choose a tag to compare

@TkgJamuKeliling TkgJamuKeliling released this 02 Dec 08:31

opencode-hop 2.3.5

This build provisions its own free account instead of asking you for one, then keeps a turn
flowing from a pool of them.

Existing users

Already running an older build? The app keeps the registrar it downloaded the first time, so it
will not pick up the updated one by itself. Quit opencode-hop, run the one command for your
system once, then open it again. The Playwright folder is kept, so the first-time setup is not
repeated.

macOS / Linux:

rm -f ~/.opencode-registrar/run.sh ~/.opencode-registrar/run_headless.js

Windows (PowerShell):

Remove-Item "$env:USERPROFILE\.opencode-registrar\run.sh","$env:USERPROFILE\.opencode-registrar\run_headless.js" -Force

Then open opencode-hop again. It fetches the updated registrar and resumes the first account.

The launcher now keeps everything under ~/.opencode-registrar. If an older build already
installed Playwright under ~/.tokenharbor-registrar, the launcher reuses that copy instead of
downloading it again. If setup ever fails, the reason is written to
~/.opencode-registrar/launcher.log so it is no longer silent.

Setup farm. The first run shows a short "setting up your account" screen while a headless
registrar registers a free account, then opens the TUI. Registered accounts land in
~/.config/opencode/tjk-hop-pool.txt; raw farm output stays in
~/.config/opencode/tjk-hop-harvest/. Once the pool holds at least one account the setup screen
is skipped on every later start.

The registrar fetches itself. A machine that has never seen the registrar now downloads it on
first use into ~/.opencode-registrar/run.sh (a self-extracting launcher; it installs its browser
once). It needs Node.js 20 or newer, which is the one thing this build cannot carry: without it,
the setup screen stays up and says so instead of opening a chat whose model has no key behind it.
TJK_FARM_LAUNCHER_URL points the download somewhere else; TJK_FARM_LAUNCHER, TJK_FARM_SCRIPT
and TJK_FARM_NODE still accept a hand-installed registrar and interpreter.

Credential pool. Every request to a pooled provider leaves with the next key in the pool, so a
key that hits its short cooldown is swapped for the next one instead of stalling the turn. The
gateway's free models are listed in the picker with a TH- prefix, and
tokenharbor/deepseek-v4.1-flash:free at max thinking is selected automatically once the first
account arrives. The pool-backed provider is published with no connection to set up by hand: a
connected key is not needed, and if one is present the pool still supplies every request.

Silent rotation. Key and network rotation no longer print anything in the transcript; the
screen stays as it is and every attempt is written to
~/.local/share/opencode/tjk-hop-warp/warp.log. A refused network is skipped for 30 minutes,
because a network often recovers within minutes.

OpenCode's own free models are left alone. opencode/...-free is the Console's anonymous tier,
so its refusal is a rate window a key pool and a fresh network both cannot move past. It is no
longer tunneled, the footer says Free usage limit reached — retrying while it waits, and the
provider's own message follows in the chat after about two minutes. Picking another model during
a turn stops that turn, so the footer and the request never name different models.

What changed since 2.3.4:

  • The model picker lists the gateway's free models again, with their TH- prefix, without a key
    connected by hand. The shared catalog started carrying its own entry for the gateway; that entry
    needs a connection before it shows up, so this build now publishes the provider itself and only
    takes the catalog's inventory along.
  • A fresh machine farms: the registrar is downloaded when it is missing, and when it cannot be
    (no Node.js, or no connection) the setup screen explains why instead of handing over silently.