Skip to content

Termux support 🙏 #961

Closed as not planned
Closed as not planned

Description

@keeganmccallum
No description provided.

Activity

  1. changed the title [-]Termux[/-] [+]Termux support :pray:[/+] on Jul 14, 2025
  2. assigned and unassigned on Jul 14, 2025
  3. paperbenni commented on Nov 15, 2025

    @paperbenni

    Please I want this!!

  4. ferdinandyb commented on Dec 17, 2025

    @ferdinandyb
    Contributor

    @rekram1-node Do you guys have any plans for supporting termux?

  5. rekram1-node commented on Dec 17, 2025

    @rekram1-node
    Contributor

    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

  6. bign8 commented on Jan 22, 2026

    @bign8

    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)

  7. danielpcampagna commented on Feb 4, 2026

    @danielpcampagna

    I could do this within proot-distro, but with a lazy start, and it just worked once. :(

    Image

  8. danielpcampagna commented on Feb 4, 2026

    @danielpcampagna

    Following Issue #3143

  9. enesofbyte commented on Feb 4, 2026

    @enesofbyte

    @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.

  10. wiilwaalka commented on Mar 22, 2026

    @wiilwaalka

    I could do this within proot-distro, but with a lazy start, and it just worked once. :(

    Image

    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.

    Image

    Image

  11. shc0743 commented on May 2, 2026

    @shc0743

    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/claude-code@2.1.112 && (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.

  12. rekram1-node commented on May 3, 2026

    @rekram1-node
    Contributor

    opencode will be able to run just with node soon no longer having bun dep, which will resolve this issue for yall

  13. furai commented on May 21, 2026

    @furai
    Contributor

    So how is it looking on that node front? Is bun being removed or just it will be optional to use bun or node?

  14. guilt commented on Jun 29, 2026

    @guilt

    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.

  15. github-actions commented on Aug 28, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  16. furai commented on Aug 28, 2026

    @furai
    Contributor

    This is still very much relevant. @rekram1-node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions