Termux-AIChain Logo

Termux-AIChain

v1.0.9
Foundation
pip / npm
Sponsor GitHub Founder CV

Installation & Setup Guide

Hardware acceleration, Termux Bionic ARM64 setup, and one-touch CLI diagnostics

Hardware Prerequisites

Ensure Python 3.10+ or Node.js 18+ is installed on your Android Termux, Linux ARM64/x86_64, or macOS/Windows environment.

1. One-Touch Automatic Bootstrap (Android Termux)

The single-line bootstrap script automatically installs required system packages (python, nodejs-lts, termux-api, ffmpeg, git) and sets up the latest termux-aichain package:

curl -sSL https://raw.githubusercontent.com/uno-km/termux-aichain/main/scripts/install.sh | bash

2. Manual Package Manager Installation

Python (PyPI):

pip install --upgrade termux-aichain

Node.js / TypeScript (npm):

npm install termux-aichain

3. Command Line Interface (CLI) Diagnostics

termux-aichain provides a dedicated CLI utility for rapid hardware and environment diagnostics:

Verify Environment & Termux APIs:

termux-aichain setup

Output verifies Python version, SQLite3 ACID support, Termux-API presence, and kernel sysfs battery fallback paths.

Download Verified GGUF Model Checkpoints:

# Download Qwen-2.5-1.5B-Instruct quantized GGUF
termux-aichain pull qwen-2.5-1.5b

# Download Llama-3.2-3B-Instruct quantized GGUF
termux-aichain pull llama-3.2-3b

# Download BitNet-3B 1.58-bit quantized GGUF
termux-aichain pull bitnet-3b

Start 1-Line REST, SSE & Web Dashboard Server:

termux-aichain serve --port 8080 --host 0.0.0.0