gitwtfhub

wtf is opencode-termux-installer?

superman-enamy/opencode-termux-installer — explained in plain English

Analysis updated 2026-05-18

1ShellAudience · vibe coderComplexity · 1/5LicenseSetup · easy

TL;DR

opencode-termux-installer is a one-command installer that gets the OpenCode AI coding agent running natively inside Termux on an Android phone.

Mindmap

mindmap
  root((opencode-termux-installer))
    What it does
      Installs OpenCode on Android
      Bridges Termux and OpenCode
      One command setup
    Tech stack
      Shell script
      Termux
      Bionic to glibc bridge
    Use cases
      Mobile AI coding
      Quick on phone fixes
      Portable assistant
    Requirements
      F-Droid Termux only
      64-bit ARM device
      Internet for packages

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Run an AI coding agent directly on your Android phone without a laptop or remote server.

REASON 2

Ask OpenCode to explain or modify a codebase using a one-shot command from Termux.

REASON 3

Set up a portable coding assistant for quick fixes while away from a desktop.

What's in the stack?

ShellTermuxAndroid

How it stacks up

superman-enamy/opencode-termux-installer100/dotfilesadams549659584/my-openwrt-actions
Stars111
LanguageShellShellShell
Last pushed2016-11-182020-06-06
MaintenanceDormantDormant
Setup difficultyeasyeasyhard
Complexity1/51/53/5
Audiencevibe coderdeveloperops devops

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Must use the F-Droid build of Termux, the Play Store version will not work.

MIT license: use freely for any purpose, including commercial use, as long as you keep the copyright notice.

Wtf does this do

opencode-termux-installer is a script that lets you run OpenCode, an AI coding agent that normally lives in a terminal on a computer, directly on an Android phone using an app called Termux. Termux gives you a Linux style terminal on Android, but OpenCode is built for a different underlying system than the one Android normally uses, so this project bridges that gap using pre built packages from a separate compatibility project. Installing it is meant to be a single command pasted into Termux, or you can clone the repository and run its install script instead. The instructions are firm that you must install Termux from F-Droid rather than the Google Play Store version, since the Play Store version has restrictions on storage and processes that stop OpenCode from working correctly. You also need a 64 bit ARM Android device, which covers most modern phones, and an internet connection to download roughly 100 megabytes of packages. After installing, you set an API key for whichever AI provider you plan to use, such as Anthropic, OpenAI, or Google, then launch OpenCode from any project folder either interactively or with a one shot command that answers a single question about your code. The README includes troubleshooting steps for common problems like the command not being found, permission errors, or picking the wrong version of Termux, along with a simple uninstall command that removes the binary and its files. The project credits the original OpenCode agent and the separate Termux packaging project it depends on. It is released under the MIT license.

Yoink these prompts

Prompt 1
Install Termux from F-Droid and run the opencode-termux-installer one-line install command.
Prompt 2
Set my ANTHROPIC_API_KEY in Termux and launch OpenCode to explain this codebase.
Prompt 3
Troubleshoot a 'command not found: opencode' error after installing with opencode-termux-installer.
Prompt 4
Uninstall OpenCode cleanly from Termux using the commands in this project's README.

Frequently asked questions

wtf is opencode-termux-installer?

opencode-termux-installer is a one-command installer that gets the OpenCode AI coding agent running natively inside Termux on an Android phone.

What language is opencode-termux-installer written in?

Mainly Shell. The stack also includes Shell, Termux, Android.

What license does opencode-termux-installer use?

MIT license: use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is opencode-termux-installer to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is opencode-termux-installer for?

Mainly vibe coder.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.