Skip to content
المشاريع

حول

Unofficial opencode build that sets up its own free accounts, rotates them per request, and reconnects over a fresh address when the free tier still refuses — no key to bring.

أدوات التطوير

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
جارٍ جمع السجل
خلال 7 أيام
جارٍ جمع السجل
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

opencode-hop

An unofficial opencode build that keeps a free-tier turn moving. It prepares a free account for you on first run and then keeps working from a pool of them, so you do not bring your own account and you do not set anything up by hand.

All credit for the editor, the TUI and the whole foundation goes to the opencode project — https://github.com/anomalyco/opencode. This is a build on top of it, not a fork of its authors; see NOTICE.

opencode-hop: the setup screen, then a turn running on a pooled free key

What it does

  • You run opencode-hop and get the usual opencode TUI, with your own settings and folders.
  • The first run spends a short moment preparing a free account for you ("setting up your account"), then opens the TUI and keeps preparing more in the background while you work.
  • Requests go out on a free key taken in turn from that pool, so a key that temporarily runs out is simply skipped. This happens silently: the screen does not change.
  • If the moment is bad for the whole network, it reconnects by itself and carries on with the same request. It writes what it did to a log instead of into your chat.
  • Its free models appear in the model picker with a TH- prefix, and one of them is selected for you as soon as the first account is ready.
  • Nothing is asked of you: no sign-up page, no key to paste. The one thing it needs from the machine is Node.js 20 or newer, used by the account helper on the first run — if it is missing, the setup screen says so instead of opening a chat that cannot answer.

Install

Automatic (recommended)

macOS and Linux:

curl -fsSL https://github.com/TkgJamuKeliling/opencode-hop/releases/latest/download/install.sh | sh

If curl is not installed, use wget:

wget -qO- https://github.com/TkgJamuKeliling/opencode-hop/releases/latest/download/install.sh | sh

Windows (PowerShell):

$p = "$env:TEMP\opencode-hop-install.cmd"
Invoke-WebRequest -UseBasicParsing -Uri "https://github.com/TkgJamuKeliling/opencode-hop/releases/latest/download/install.cmd" -OutFile $p
Unblock-File $p
& $p

The installer picks the file for your machine, checks it, installs it to ~/.local/bin (Windows: %USERPROFILE%\bin), puts that folder on your PATH, and prints the version. Run the same command again later to upgrade.

Want to look first? Add --check to see what it would do, or --dry-run to see the plan. To pin a release: ... | sh -s -- --tag v2.3.5.

By hand

  1. Download the file for your machine from the latest release, plus SHA256SUMS:

    File Machine
    opencode-hop-darwin-arm64 macOS, Apple Silicon
    opencode-hop-darwin-x64 macOS, Intel
    opencode-hop-linux-x64 Linux, x86_64
    opencode-hop-linux-arm64 Linux, ARM64
    opencode-hop-windows-x64.exe Windows, x86_64
    opencode-hop-windows-arm64.exe Windows, ARM64
  2. Verify it (optional, but it tells you the download finished):

    cd ~/Downloads
    shasum -a 256 -c SHA256SUMS --ignore-missing     # Linux: sha256sum -c SHA256SUMS
    
  3. Install it:

    mkdir -p ~/.local/bin
    mv ~/Downloads/opencode-hop-darwin-arm64 ~/.local/bin/opencode-hop
    chmod +x ~/.local/bin/opencode-hop
    

    macOS may block the first start, because the file is not signed with a paid Apple certificate. Clear the flag once:

    xattr -dr com.apple.quarantine ~/.local/bin/opencode-hop
    

    Or try to open it, then use System Settings → Privacy & Security → Open Anyway. Windows:

    New-Item -ItemType Directory -Force "$env:USERPROFILE\bin" | Out-Null
    Move-Item "$env:USERPROFILE\Downloads\opencode-hop-windows-x64.exe" `
              "$env:USERPROFILE\bin\opencode-hop.exe"
    Unblock-File "$env:USERPROFILE\bin\opencode-hop.exe"
    
  4. Make it callable (once):

    echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc   # macOS
    echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc  # Linux
    source ~/.zshrc      # or ~/.bashrc
    

    Windows: setx PATH "$env:USERPROFILE\bin;$env:Path", then open a new terminal.

  5. Run it:

    opencode-hop
    

Using it

opencode-hop                                   # the TUI
opencode-hop run "explain what this repository does"   # one-shot, no TUI
opencode-hop service restart                   # after replacing the binary with a newer build

After the first run, the account helper is already installed, so later starts skip the setup screen and open the TUI straight away.

Where things live

~/.config/opencode/tjk-hop-pool.txt     the free accounts it rotates over
~/.config/opencode/tjk-hop-harvest/     leftover output from the account helper
~/.opencode-registrar/                  the account helper itself (installed on first use)
~/.local/share/opencode/tjk-hop-warp/   what it did when it reconnected, in warp.log

After upgrading the binary, run opencode-hop service restart once: a running process keeps the code it already loaded.

To remove everything: delete ~/.local/bin/opencode-hop, then those four folders.

License

MIT, inherited from the upstream project. LICENSE must travel with any binary taken from here; NOTICE lists third-party components and the non-affiliation statement.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…