Native DeepSeek TUI for Termux / Android ARM64.
This fork tracks upstream DeepSeek TUI and carries only the Android/Termux compatibility delta needed to build and run it on ARM64 Android devices.
- Android 7+ / API 24+
- ARM64 device (aarch64, test on Xiaomi 15)
- Termux (latest from F-Droid)
- Rust toolchain (rustc >= 1.88, cargo)
- Git, make, binutils, pkg-config, OpenSSL
# 1. Install build dependencies
pkg update && pkg upgrade -y
pkg install -y git rust binutils make pkg-config openssl-tool dbus
# 2. Clone this repo
git clone https://github.com/whao22/DeepSeek-TUI-termux.git
cd DeepSeek-TUI-termux
# 3. Build (the repo includes the necessary patches via [patch.crates-io])
cargo build --release
# 4. Verify
./target/release/deepseek --version
./target/release/deepseek exec "hello world"cp target/release/deepseek target/release/deepseek-tui target/release/deepseek-app-server $PREFIX/bin/
deepseek --versionWhat this fork does:
- tracks upstream Hmbown/DeepSeek-TUI closely
- applies only the compatibility patches upstream does not ship for Android/Termux
- keeps a clean
[patch.crates-io]delta inpatches/socargo buildworks out of the box - builds native
aarch64-linux-androidbinaries
What this fork does not do:
- maintain a broad feature fork
- replace upstream DeepSeek TUI
- carry fork-only product features unrelated to Termux compatibility
Three crates are patched via [patch.crates-io] in Cargo.toml:
| Crate | Issue | Fix |
|---|---|---|
termios v0.2.2 |
Missing target_os = "android" gate |
Added android alongside linux in patches/termios |
arboard v3.6.1 |
Clipboard crate excludes Android; X11/wayland not available | Removed Android exclusion, provided empty x11.rs stub in patches/arboard |
rustls-platform-verifier v0.6.2 |
Relies on JNI on Android (not available in Termux); rustls_native_certs crate not compiled for Android |
Switched Android to webpki verifier, inlined PEM CA certificate loading from Termux paths in patches/rustls-platform-verifier |
After building, set up your DeepSeek API key:
mkdir -p ~/.deepseek
cat > ~/.deepseek/config.toml << EOF
api_key = "sk-your-api-key-here"
model = "deepseek-chat"
EOFFor CA certificates on Termux, set SSL_CERT_FILE if needed:
export SSL_CERT_FILE=/data/data/com.termux/files/usr/etc/tls/cert.pemThis is a Termux/Android-focused fork maintained by whao22.
- Fork issues (build, packaging, Termux-specific bugs): open an issue on this repo
For upstream-relevant issues that are not Termux/Android specific, please open them on Hmbown/DeepSeek-TUI.
This project remains under the MIT License inherited from upstream DeepSeek TUI.
- Original work: Hmbown and contributors
- Termux port: minimal Android compatibility patches
See LICENSE.