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 (after publishing)

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.0

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.0
File Size Uploaded Provenance Actions
seika_oc-0.4.0.tar.gz 11.2 kB Without provenance Details for seika_oc-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 22.0 kB

Release files / seika_oc-0.4.0.tar.gz

Download URL seika_oc-0.4.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5ef509478f0269df92431295bc1e209a5e3c1d1929584f3b9bf1aeb8b225968d
BLAKE2b-256 checksum
How to use checksums
c61cee692a27c432637fdb3c62f3449d47d6aee9af6d45f625e1a9d16eba7254
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via seika-oc-uploader/1.0

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

Download URL seika_oc-0.4.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6eb9d57c04126215c862fd678327fc8b227cb0f8b224ac922257b54e7dcdf602
BLAKE2b-256 checksum
How to use checksums
1e04c4758c96d3cbe7000984e3bc7e9de17cf06ac366ee47eb668a107cb91ce7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via seika-oc-uploader/1.0

Security for seika-oc 0.4.0

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