Native, not emulated
Bionic aarch64 build — links Android's own libc directly. No proot, no chroot, no VM, no root.
Run the open-source opencode terminal coding agent natively on your Android phone: a self-hosted alternative to cloud coding agents, rebuilt for Bionic aarch64 — no proot, no chroot, no root, no glibc.
Pick a channel, paste the command inside Termux. Afterwards pkg upgrade opencode keeps you current on that channel.
curl -fsSL https://raw.githubusercontent.com/bd-loser/opencode-bionic/main/repo-setup.sh | bashcurl -fsSL https://raw.githubusercontent.com/bd-loser/opencode-bionic/main/repo-setup.sh | OPENCODE_CHANNEL=v1 bashcurl -fsSL https://raw.githubusercontent.com/bd-loser/opencode-bionic/main/repo-setup.sh | OPENCODE_CHANNEL=dev bashstable tracks whatever upstream tags newest (2.x now, recommended) · v1 keeps the 1.x line · dev is the 2.x rolling edge · signed repository, one package: opencode.
Bionic aarch64 build — links Android's own libc directly. No proot, no chroot, no VM, no root.
The TUI runs on opentui, rebuilt for Android as the @androidtui packages — rendered on-device, 16 KiB page aligned.
Interactive PTYs via a Bionic-rebuilt bun-pty and a static-Bionic persistent pty service — real shell sessions, real tmux-style workflows.
Three channels (stable / v1 / dev) in a GPG-signed repo. One build per upstream version, auto-synced from upstream about hourly.
bun-termux is Bun rebuilt for Bionic: SELinux-safe JIT, syscall traps, shebang remapping — the engine the agent runs on.
Same MIT license as upstream opencode. Nothing collected, nothing phoned home, everything open.
Model-agnostic: Anthropic, OpenAI, OpenRouter, Ollama — any OpenAI-compatible endpoint, configured exactly like upstream (opencode.ai/docs).
The same signed pipeline also ships bun-termux — the Bun runtime rebuilt to link Android's Bionic libc, so any Bun tooling runs in Termux without glibc tricks.
curl -fsSL https://raw.githubusercontent.com/bd-loser/bun-termux/main/scripts/install.sh | bashCurrent: v1.4.5-patched · MIT · repository
Any aarch64 Android phone on Android 10 or newer — essentially all devices from the last seven years. Only Termux is required; no root.
pkg upgrade opencode on your chosen channel. Stable tracks whatever upstream tags newest; v1 keeps the 1.x line; dev tracks upstream's rolling branch — one release per upstream version, typically within the hour.
No. No analytics, no cookies, no third-party runtime requests on this site, and no telemetry in the packages. Sync state is anonymous.
It's the patched Bun runtime the agent itself runs on — and a general Bun for Termux if you want to build your own tools. Install with the command above.