Skip to content

[FEATURE]: Make a binary build for Android Aarch64 (Termux) #11689

@VikKalm

Description

@VikKalm

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

I would love to use OpenCode on Termux (android). Now it doesn't even build because OpenCode use precompiled binaries those are not compatible with Termux/Android format.

$ npm i -g opencode-ai
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 sh: line 1: bun: command not found
npm error Failed to setup opencode binary: Could not find package opencode-android-arm64: Cannot find module 'opencode-android-arm64/package.json'
npm error Require stack:
npm error - /data/data/com.termux/files/usr/lib/node_modules/opencode-ai/postinstall.mjs
npm error A complete log of this run can be found in: /root/.npm/_logs/2026-02-02T00_28_37_358Z-debug-0.log


$ curl -fsSL https://opencode.ai/install | bash

Installing opencode version: 1.1.48
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 100%
Command already exists in /data/data/com.termux/files/home/.bashrc, skipping write.

                                 ▄
█▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
█░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀
▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀  ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀


OpenCode includes free models, to start:

cd <project>  # Open directory
opencode      # Run command

For more information visit https://opencode.ai/docs


$ ~/.opencode/bin/opencode
error: "/data/data/com.termux/files/home/.opencode/bin/opencode" has unexpected e_type: 2

ENV:
Android 13
Xiaomi Pad 6

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions