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)

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.

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.3.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.3.0
File Size Uploaded Provenance Actions
seika_oc-0.3.0.tar.gz 6.7 kB Without provenance Details for seika_oc-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 14.0 kB

Release files / seika_oc-0.3.0.tar.gz

Download URL seika_oc-0.3.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
553bc4d877d1111a5251986ed5c916ea8ec4ac237fecacfb3149f525471eb4eb
BLAKE2b-256 checksum
How to use checksums
7739ab21a24d3fd1fbcb8cb3dafefef4e458f510aab455eeffa30c8768bce22d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via seika-oc-uploader/1.0

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

Download URL seika_oc-0.3.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
035097a0f34700873ff64342d5eba455bab7ce0725a18734028d08ab485a16f0
BLAKE2b-256 checksum
How to use checksums
665ee7b6b32d9a9bf90a70aae1e6fb1d2c72477b359b2b75cb14a376ac58dbad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via seika-oc-uploader/1.0

Security for seika-oc 0.3.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