Navigator / Projects / command-code-termux

DOSSIER // command-code-termux

command-code-termux

Run the Command Code coding-agent CLI on Termux: one-command installer plus a launcher that survives Android's missing /usr/bin/env

VISIBILITYPUBLIC
CLASSDeveloper Tooling
PLATFORMTermux / Shell
LANGUAGEShell
REPOSITORYGitHub ↗
UPDATED2026-10-02
CREATED2026-10-02

01 // OVERVIEW

Overview

An installer and portable launcher that run the Command Code coding-agent CLI on Termux. The repository contains no Command Code source — it installs the published npm package at run time.

02 // PROBLEM

Problem

Two reproducible failures on stock Termux: the published bin name collides with termux-tools ($PREFIX/bin/cmd already exists), and the bins cannot execute because their shebang '/usr/bin/env node' has no target on Android.

03 // APPROACH

Approach

Install the package into a private npm prefix (~/.local) so nothing collides, and ship a launcher that repoints the interpreter for Android.

04 // IMPLEMENTATION

Implementation

scripts/install.sh performs the install; bin/cmdcode is the launcher; the whole setup is documented.

05 // LIMITATIONS

Limitations

Termux-specific tooling; depends on the upstream Command Code package and its licence.