Last updated: 2026-05-10
PC Installation
Detailed installation guide for hicli on Linux and macOS. Windows is supported via WSL2 only.
Prerequisite: Tailscale must be installed and logged in.
One-Click Install
curl -fsSL https://www.yinbin.ink/install.sh | bash
The installer:
- Detects your system architecture (OS + CPU)
- Downloads the binary from GitHub Releases (falls back to yinbin.ink mirror)
- Installs to
~/.local/bin/hicli - Checks if
~/.local/binis in your PATH
After installation, if PATH is not yet active, either restart your terminal or run the suggested command.
Alternative (direct from GitHub):
curl -fsSL https://raw.githubusercontent.com/wsyb/mobileterm/main/hiwebsite/public/install.sh | bash
Manual Install
If the one-click installer doesn’t work, download the binary directly:
| Platform | File |
|---|---|
| macOS ARM64 (Apple Silicon) | hicli-darwin-arm64 |
| macOS x86_64 (Intel) | hicli-darwin-amd64 |
| Linux ARM64 | hicli-linux-arm64 |
| Linux x86_64 | hicli-linux-amd64 |
chmod +x hicli-* && mv hicli-* ~/.local/bin/hicli
Verify installation:
hicli --version
Dependencies
hicli requires these tools to be installed on your PC:
| Dependency | Purpose | Required |
|---|---|---|
| sshd | Phone connects to PC via SSH | Yes |
| mosh | Optimized connection on weak/mobile networks | Recommended |
| tmux | Terminal session management and persistence | Recommended |
hicli pair checks all dependencies automatically and shows install commands if anything is missing.
Install Dependencies
macOS:
# Enable sshd
sudo systemsetup -setremotelogin on
# Install mosh and tmux (MacPorts — recommended)
sudo port install mosh tmux
# Or Homebrew
brew install mosh tmux
Linux (Debian/Ubuntu):
sudo apt install -y openssh-server mosh tmux
sudo systemctl start sshd
sudo systemctl enable sshd
Linux (Fedora/RHEL):
sudo dnf install -y openssh-server mosh tmux
sudo systemctl start sshd
sudo systemctl enable sshd
Linux (Arch):
sudo pacman -S openssh mosh tmux
sudo systemctl start sshd
Linux (Alpine):
sudo apk add openssh mosh tmux
rc-service sshd start
Verify Dependencies
# Check sshd
sshd -V 2>&1 || echo "sshd not found"
# Check mosh
mosh --version
# Check tmux
tmux -V
Pair Your Phone
Once dependencies are installed:
hicli pair
The command will:
- Get your Tailscale IP
- Check all dependencies
- Configure tmux mouse mode in
~/.tmux.conf - Install AI tool notification hooks
- Generate a QR code for your phone to scan
See Command Reference for detailed output and behavior.
Diagnostics
If something isn’t working:
hicli doctor
This checks Tailscale status, config permissions, SSH service, mosh installation, and notification hooks. It can auto-fix many issues.
See Command Reference for details.
macOS-Specific Notes
Gatekeeper Warning
If macOS blocks the binary with “unidentified developer”:
- Go to System Settings > Privacy & Security
- Find the blocked item and click “Allow Anyway”
Or remove the quarantine attribute:
xattr -d com.apple.quarantine ~/.local/bin/hicli
SSH on macOS
macOS uses systemsetup to enable remote login:
# Enable sshd
sudo systemsetup -setremotelogin on
# Check status
sudo systemsetup -getremotelogin
PATH on macOS
If hicli is not found after install, add ~/.local/bin to your PATH:
# For zsh (default on macOS)
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
# For bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
Next Steps
- Android Installation — Install the phone app and scan QR
- Command Reference — All hicli commands and options
- Troubleshooting — Common issues and solutions