Skip to content
 
 

Latest commit

 

History

1,391 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepSeek TUI Termux

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.

latest release license

Requirements

  • 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

Install

Build from source (recommended)

# 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"

Install system-wide (optional)

cp target/release/deepseek target/release/deepseek-tui target/release/deepseek-app-server $PREFIX/bin/
deepseek --version

Scope

What 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 in patches/ so cargo build works out of the box
  • builds native aarch64-linux-android binaries

What this fork does not do:

  • maintain a broad feature fork
  • replace upstream DeepSeek TUI
  • carry fork-only product features unrelated to Termux compatibility

Current Termux Delta

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

Configuration

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"
EOF

For CA certificates on Termux, set SSL_CERT_FILE if needed:

export SSL_CERT_FILE=/data/data/com.termux/files/usr/etc/tls/cert.pem

Documentation

Contact

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

License

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.

About

Coding agent for DeepSeek models that runs in your terminal

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages