This repository contains a setup script to install and configure the GitHub Copilot CLI on Termux (Android). It automates the installation of system dependencies, builds required native modules, and sets up the environment for a smooth experience.
The setup.sh script performs the following tasks:
- Installs Node.js and build tools (clang, make, python, rust).
- Installs system libraries (glib, libvips, pkg-config).
- Installs the
@github/copilotCLI globally. - Compiles and configures native Node.js modules:
- node-pty: For pseudo-terminal support.
- sharp: For image processing.
- keytar: For secure credential storage.
- Sets up a clipboard wrapper using
termux-api. - Configures
ripgrepfor code search.
- Clone this repository or download the
setup.shfile to your Termux home directory. - Make the script executable:
chmod +x setup.sh
- Run the setup script:
./setup.sh
The script will guide you through the installation process. It may take some time to compile the native modules.
Once the installation is complete, you can start the GitHub Copilot CLI by running:
copilot