GeezerVison is showing github.com — Termux support :pray: · Issue #961 · anomalyco/opencode
DescriptionNo description provided. Reacted by Ajay Mamtora, Ali Mohammed, Jude Etuka, Nguyễn Duy Anh, paperbenni, U Cirello, Jacopo Secchiero, Bence Ferdinandy, Alok Regmi, Pablo Vitasso and 13 more Reacted by bowber, Animesh, Amos Wong and Christoph Döllinger Activitychanged the title [-]Termux[/-] [+]Termux support :pray:[/+] on Jul 14, 2025paperbenni commented on Nov 15, 2025 Reacted by Ue1i7on and Christoph Döllinger Reacted by Pablo Vitasso, zhangchen and Christoph Döllinger ferdinandyb commented on Dec 17, 2025 rekram1-node commented on Dec 17, 2025 we have had some discussions, if claude code works on termux opencode should be able to as well
havnt looked into it enough to see what the issue is Reacted by Ue1i7on Reacted by Bence Ferdinandy, Ajay Mamtora, paperbenni and Thybault bign8 commented on Jan 22, 2026 Not sure if this is the same issue for everyone, but this is the error I see in Termux:
~ $ curl -fsSL https://opencode.ai/install | bash
Installed version: .
Installing opencode version: 1.1.30
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 100%
▄
█▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
█░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀
▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀ ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀
OpenCode includes free models, to start:
cd <project> # Open directory
opencode # Run command
For more information visit https://opencode.ai/docs
~ $ opencode
bash: /data/data/com.termux/files/home/.opencode/bin/opencode: cannot execute: required file not found
~ $
Or
~ $ npm i -g opencode-ai@latest
> [email protected] postinstall
> bun ./postinstall.mjs || node ./postinstall.mjs
sh: 1: bun: not found
Failed to setup opencode binary: Could not find package opencode-android-arm64: Cannot find module 'opencode-android-arm64/package.json'
Require stack:
- /data/data/com.termux/files/usr/lib/node_modules/opencode-ai/postinstall.mjs
npm error code 1
npm error path /data/data/com.termux/files/usr/lib/node_modules/opencode-ai
npm error command failed
npm error command sh -c bun ./postinstall.mjs || node ./postinstall.mjs
npm error A complete log of this run can be found in: /data/data/com.termux/files/home/.npm/_logs/2026-01-24T06_11_52_133Z-debug-0.log
Even bun had a similar issue
~ $ curl -fsSL https://bun.com/install | bash
bun was installed successfully to ~/.bun/bin/bun
Added "~/.bun/bin" to $PATH in "~/.bash_profile"
To get started, run:
source /data/data/com.termux/files/home/.bash_profile
bun --help
~ $ source ~/.bash_profile
~ $ bun -h
bash: /data/data/com.termux/files/home/.bun/bin/bun: cannot execute: required file not found
~ $
update Not certain, but this looks suspicious:
(Termux has weird fs mappings, so lib isn't necessarily at /)
~ $ strings $(which bun) | head -n 1
/lib/ld-linux-aarch64.so.1
~ $ strings $(which opencode) | head -n 1
/lib/ld-linux-aarch64.so.1
~ $ pwd
/data/data/com.termux/files/home
~ $ ls /lib
ls: cannot access '/lib': No such file or directory
~ $
(Sorry, idk if this is helpful or just noise. It's been a while since I've been up to speed in the npm world, and I'm far from an expert in termux. Just trying to help) danielpcampagna commented on Feb 4, 2026 I could do this within proot-distro, but with a lazy start, and it just worked once. :(

danielpcampagna commented on Feb 4, 2026 enesofbyte commented on Feb 4, 2026 @danielpcampagna please use "opencode web" to run opencode. It should say something like "anthropic-auth module not found". If this happens go to that directory and run "npm install". I do not remember which directory it is but it should say it there (might be [.config/opencode/node_modules]). If the same problem appears with another module, just do the fix again. you may need to install opencode with npm. Reacted by danielpcampagna wiilwaalka commented on Mar 22, 2026
I could do this within proot-distro, but with a lazy start, and it just worked once. :(

By using the Termux glibc packages, it runs efficiently in Termux without any proot overhead. However, I haven't thoroughly tested it yet; I've only tried to see if it functions. and it opens more faster than gemini last time i tried it.


shc0743 commented on May 2, 2026
we have had some discussions, if claude code works on termux opencode should be able to as well
havnt looked into it enough to see what the issue is
In fact you can simply use Claude Code on Termux by using:
npm i -g @anthropic-ai/[email protected] && (cd "$PREFIX/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep"; ln -s arm64-linux/ arm64-android)
Claude code v2.1.113+ uses native binary so it can't run on Android
At least I think supporting Android is necessary since README mentions This, for example, can allow OpenCode to run on your computer while you drive it remotely from a mobile app, meaning that the TUI frontend is just one of the possible clients. On the one hand, if the only way to use OpenCode is inside a mobile app, not a real terminal, it sounds disappointing; on the other hand Claude Code can run in Android. rekram1-node commented on May 3, 2026 opencode will be able to run just with node soon no longer having bun dep, which will resolve this issue for yall Reacted by Lucas Grzegorczyk, Amos Wong and Den le Reacted by Jean-Claude, imm, Bonveio Abitona and rayfadh furai commented on May 21, 2026 So how is it looking on that node front? Is bun being removed or just it will be optional to use bun or node? guilt commented on Jun 29, 2026 I'm here to +1 and say this is important for me; I know bun already has an Android version now, so really looking forward to a working version. When try this and report what I find. github-actions commented on Aug 28, 2026 To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one. furai commented on Aug 28, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|