You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
> opencode-ai@1.1.34 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 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.
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.
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.
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.
Activity
[-]Termux[/-][+]Termux support :pray:[/+]paperbenni commentedon Nov 15, 2025
Please I want this!!
ferdinandyb commentedon Dec 17, 2025
@rekram1-node Do you guys have any plans for supporting termux?
rekram1-node commentedon 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
bign8 commentedon Jan 22, 2026
Not sure if this is the same issue for everyone, but this is the error I see in Termux:
Or
Even bun had a similar issue
update Not certain, but this looks suspicious:
(Termux has weird fs mappings, so lib isn't necessarily at /)
(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 commentedon Feb 4, 2026
I could do this within
proot-distro, but with a lazy start, and it just worked once. :(danielpcampagna commentedon Feb 4, 2026
Following Issue #3143
enesofbyte commentedon 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.
wiilwaalka commentedon Mar 22, 2026
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 commentedon May 2, 2026
In fact you can simply use Claude Code on Termux by using:
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 commentedon 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
fix(den): accept bearer sessions for desktop auth (anomalyco#961)
furai commentedon 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 commentedon 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 commentedon 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 commentedon Aug 28, 2026
This is still very much relevant. @rekram1-node