A Modern, Better, Native Android SSH client powered by libghostty
![]() |
![]() |
![]() |
![]() |
Tafh is a native Android SSH client powered by libghostty, with a terminal-first Compose UI and support for both standard SSH and Tailscale SSH workflows.
- tailscale, ssh password + key authentication
- image display using libghostty's kitty image protocol support
- more than 400 themes from the official ghostty repository
- configurable accessory keys and custom terminal actions
- per-host post-connect actions that autorun a selected custom action after SSH/Mosh connects or reconnects
- encrypted local import/export backups for SSH keys and server profiles
- beautiful and working terminal renderer with fully working resize, scrollback, focus, modifier keys, mouse actions
Tafh is in active development. Bug reports and contributions are welcome.
Grab the APK from the releases page.
- Stable: the latest non-prerelease build
- Nightly: every push to
mainpublishes a rolling prerelease at thenightlytag
- Kotlin + Jetpack Compose for the Android app
- Zig for native build orchestration and JNI/native bridge code
- Ghostty VT for terminal emulation
libssh2+opensslfor the current native SSH path- Room for local data storage
If you have nix installed, the following three steps will get you started
- nix develop - will set you up with everything you will need.
- running 'make build' will build the native code needed
- running 'make app' will build the apk and install it in a connected device.
If you don't have nix installed, you will need
- setup tools
- Android Studio - This will set up the needed Android SDK, Android NDK and Java runtime (JDK 17+; the nix devshell pins
JAVA_HOMEto JDK 17). - Zig 0.15.2
- build the native library
Set ANDROID_NDK_HOME or ANDROID_NDK_ROOT, then build the JNI library for Android arm64:
cd zig-src && zig build jni -Dtarget=aarch64-linux-androidThat copies libtafh_jni.so into app/src/main/jniLibs/arm64-v8a/.
The encrypted backup container is a separate Rust library. Build it into the same folder, otherwise backup export/import fails at runtime only:
rustup target add aarch64-linux-android
cargo install cargo-ndk # once
cd rust && cargo ndk -t arm64-v8a -t x86_64 \
-o ../android/app/src/main/jniLibs build --release -p tafh-backupmake build runs both native builds; it needs ANDROID_NDK_HOME, Zig 0.15.2 and
cargo-ndk on PATH.
- From android studio run
./gradlew assembleDebugFor a manual debug APK, run the native build first, then assemble the app:
make build
cd android && ./gradlew assembleDebugThe APK should include lib/arm64-v8a/libtafh_jni.so; without it native SSH/key generation will fail on device.
Without nix, export ANDROID_NDK_HOME (the NDK path) and ANDROID_HOME (the SDK path), and put Zig 0.15.2 on PATH (or pass ZIG=/path/to/zig). Then:
make test # Android JVM unit tests (no NDK needed)
make native-test # Zig bridge unit tests
make fmt-check # ktfmt --set-exit-if-changed
make lint # ktlint with android/.editorconfig
make native-fmt-checkRelease APKs must be signed, and an unsigned one will not install. Signing material is per repository (GitHub secrets do not transfer across forks), so a fresh clone publishes nothing until you add four repository secrets:
| Secret | Value |
|---|---|
KEYSTORE_BASE64 |
base64 -w0 release.jks of your keystore |
KEYSTORE_PASSWORD |
keystore password |
KEY_ALIAS |
key alias inside the keystore |
KEY_PASSWORD |
key password |
Create one once, then keep it safe: losing it means you can never update an installed app again.
keytool -genkeypair -v -keystore release.jks -alias tafh \
-keyalg RSA -keysize 4096 -validity 10000The reliable way to install the secrets is the helper, which validates the keystore first and then uploads it without any copy-paste (base64 pasted into a web form is where this normally goes wrong):
tools/set-signing-secrets.sh release.jksIt prompts for the store password, lists the aliases inside the file, picks the
alias, proves the key is usable, and uploads all four secrets via gh.
To check a keystore without uploading anything:
tools/verify-signing.sh release.jksIt reports whether the password opens the keystore, lists the aliases inside, and
prints the exact KEY_ALIAS values to use. The signing step in CI applies the
same normalisation to the secrets, so a value that works here works there.
For local release builds, put key.jks in android/app/ and export the same
three KEYSTORE_*/KEY_* variables; without them assembleRelease produces an
unsigned APK. Both publishing workflows now refuse to upload when
KEYSTORE_BASE64 is missing, rather than shipping an APK that cannot install.
Tafh is a community continuation of the original chuchu project by jossephus, who wrote the original Android SSH client and remains credited as its author. The fork keeps that work under the MIT license — see LICENSE, which retains the upstream copyright alongside the fork's.
The original project was started because its author wanted a native Android SSH client with the kind of terminal experience vvterm offers on iOS; Tafh continues along that line.
Tafh is short for "terminal away from home".
The package changed from com.jossephus.chuchu to dev.nero.tafh, so Android treats
Tafh as a separate app with its own sandbox — it does not see the old app's data, and
the two can be installed side by side.
The supported upgrade path is a backup export/import:
- In the old chuchu app, export an encrypted backup.
- In Tafh, import that backup.
The backup container (CHBK/CHPL v1) is unchanged and byte-compatible with previous chuchu releases, so existing backups import cleanly into Tafh.




