Skip to main content

oc — OpenCode installer for Termux

oc is a small CLI that keeps Termux packages updated and installs/updates OpenCode from bd-loser/opencode-bionic in a single command.

Nothing runs at pip install time — the steps execute only when you run oc.

What it does

pkg update && pkg upgrade -y
curl -fsSL https://raw.githubusercontent.com/bd-loser/opencode-bionic/main/install.sh | bash
opencode --version

Install

pip install ./seika-oc   # local
pip install seika-oc     # from PyPI

Termux APT repository

curl -fsSL https://raw.githubusercontent.com/lynxhubeta-cell/seika-oc-apt/main/add-repo.sh | sh

Or manually:

echo "deb [trusted=yes] https://raw.githubusercontent.com/lynxhubeta-cell/seika-oc-apt/main ./" \
  > $PREFIX/etc/apt/sources.list.d/seika-oc.list
pkg update
pkg install seika-oc

Usage

oc              # smart: installs if missing, updates if outdated, else says "up to date"
oc -y           # same, without the confirmation prompt
oc --check      # show installed vs latest version (no changes)
oc --force      # reinstall even if already up to date
oc --skip-upgrade  # skip the pkg update/upgrade step (faster)
oc --report     # write a support report with system info + last install log

Version check: oc compares the installed opencode --version against the latest stable release tag from the GitHub API and only re-runs the installer when an update is actually available.

Clean installer UI

While updating, oc shows a clean animated TUI (spinner + sliding loading bar

  • elapsed time). Raw installer output is not dumped to the terminal — it is written to a log file under ~/.local/share/oc-backups/.

Automatic repair

If the installer hits an unexpected error, oc shows a friendly message and tries to recover on its own, in order:

  1. Re-download and retry the installer.
  2. Reinstall required packages (curl, dpkg, jq, zstd).
  3. Install the standalone release binary as a last resort.

If everything fails, the full log path is printed and oc --report creates a single support file you can share. Detection is deterministic — no data leaves your device.

Session safety

Before any update/reinstall, oc snapshots your opencode data (~/.local/share/opencode/*.db via the SQLite backup API — WAL included — plus the legacy storage/ folder) to ~/.local/share/oc-backups/sessions-<timestamp>/.

  • The update runs only after a successful backup.
  • If the installer fails, the exit code, last output lines and full log path are printed, and the backup is kept.
  • After a successful update, any session files missing from the new install are merged back from the backup (newer files are never overwritten).
  • The last 5 session backups are kept; older ones are pruned.

Metadata

Release files for seika-oc 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seika-oc 0.4.1
File Size Uploaded Provenance Actions
seika_oc-0.4.1.tar.gz 11.4 kB Without provenance Details for seika_oc-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for seika-oc 0.4.1
File Interpreter ABI Platform Actions
seika_oc-0.4.1-py3-none-any.whl Python 3 none any Details for seika_oc-0.4.1-py3-none-any.whl

Total release size: 22.4 kB

Release files / seika_oc-0.4.1.tar.gz

Download URL seika_oc-0.4.1.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6fa09a1a8fba615e8a67bda565f76295a4b5adde83a9e2ea3d2dc261bc608698
BLAKE2b-256 checksum
How to use checksums
4c87b33fbd1cb99b62e90b97866812daebff4acacbb7e2f6e78bd9240ee1cca5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via seika-oc-uploader/1.0

Release files / seika_oc-0.4.1-py3-none-any.whl

Download URL seika_oc-0.4.1-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9986446fe43b17fbdf5d52272c06d54520d7e25732eea7aef1029feb5f41e980
BLAKE2b-256 checksum
How to use checksums
217bb890f0091fc4c06ebd28a0a63dddc81a26f9d11d9c8c963d6174e8cd825b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via seika-oc-uploader/1.0

Security for seika-oc 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page