Repository navigation
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Hello,
I'm a user who frequently works in mobile scenarios and relies on opencode for AI-assisted coding. The desktop experience is solid, but there's currently no Android version at all — and mobile is exactly where many developers do fragmented coding and quick debugging. I'd like to propose an implementation approach that I believe is technically feasible and cost-effective for the team to consider.
Core proposal: wrap a lightweight Linux terminal environment (tens of MB) inside an Android shell, rather than rewriting a native app from scratch.
The idea in detail:
- Host layer: A minimal Android shell app handling file picking, clipboard, notifications, permissions, and lifecycle. This can be kept to a few MB.
- Terminal layer: Embed a lightweight Linux userland (e.g., a minimal Alpine/Debian rootfs via proot, or a Termux-style package management approach), compressible to tens of MB. The opencode CLI itself runs directly inside this Linux environment — requiring almost no Android-specific code changes, reusing the existing CLI logic as-is.
- Models & networking: Users configure API keys in the app; traffic goes through the system network. No additional model adaptation needed on the Android side.
- File interop: Mount user-selected directories into the Linux environment via Android's Storage Access Framework, enabling project file read/write.
- UX optimization: The shell app provides a simple terminal UI (or reuses an existing terminal emulator component) plus a "one-tap launch opencode" entry point, lowering the barrier for ordinary users.
Advantages of this approach:
· Low development cost: No separate native Android codebase to maintain; the CLI core stays untouched, and future desktop updates benefit Android automatically.
· Controllable size: A tens-of-MB Linux rootfs plus shell is far smaller than bundling a full Node/Python runtime into a native app.
· Ecosystem consistency: Models, plugins, and workflows configured in opencode remain consistent across platforms.
· Mature technology: proot, the Termux ecosystem, and SAF mounting all have extensive real-world practice on Android; risk is manageable.
Boundaries to consider upfront:
· Android restricts background processes strictly; long-running sessions need a foreground service with a persistent notification.
· Some binaries require ARM64-compatible builds.
· First-launch extraction/initialization time needs UX optimization (a pre-bundled rootfs image helps).
· App store policies regarding "embedded Linux environments" should be confirmed in advance.
My request: I'd appreciate the team evaluating this direction. If an official Android build isn't planned in the near term, I'd also suggest documenting the mobile usage boundaries (e.g., whether installing via Termux is recommended) — that alone would help mobile users significantly.
Thanks for your work, and I look forward to seeing opencode available on more platforms.
Best regards,
A mobile developer user
"I should mention that my English isn't strong, so I used AI to translate and expand my words — but the message reflects exactly what I originally meant."
Activity
opencodejr commentedon Oct 31, 2026
Thanks for the detailed proposal, and no worries about the English, it's clear.
You're asking for an official Android version of OpenCode, built as a light Android shell around an embedded Linux environment that runs the existing CLI unchanged. If that isn't planned, you'd like documentation on how to use OpenCode on mobile, including whether Termux is recommended. Maintainers will consider it; I can't promise anything about whether or when it would happen.
Related issues you may want to follow:
--forceplus a wrapper fix)In the meantime, you can use OpenCode from your phone today without running it on the phone. Run
opencode serveon a computer, thenopencode pairand open the link or QR code it shows in your mobile browser. To connect from outside your local network, useopencode pair --remote, which goes through OpenTunnel. The web UI can also be installed as a PWA.Eslamasabry commentedon Oct 31, 2026
I'm the author of OpenCode Mobile, an unofficial, independent, MIT Android app that does roughly this: it sets up its own Ubuntu with proot on the phone and runs OpenCode inside, with a native chat on top and notifications for permission requests. Repo: https://github.com/Eslamasabry/opencode-mobile-next. It's a separate project, not an official OpenCode build, so take it as an example of the approach rather than a replacement for what you're asking the team for.