A terminal-based streaming client with a themed UI, multi-source support, and MPV playback.
Linux / macOS:
curl -fsSL https://raw.githubusercontent.com/Thanukamax/h-cli/main/scripts/install.sh | bashWindows (PowerShell):
irm https://raw.githubusercontent.com/Thanukamax/h-cli/main/scripts/install.ps1 | iexThe installer automatically detects your OS and architecture, downloads the correct binary from GitHub Releases, verifies the SHA256 checksum, and installs to ~/.local/bin (Linux/macOS) or %LOCALAPPDATA%\Programs\hcli\bin (Windows).
Options (Linux/macOS):
# Install a specific version
curl -fsSL ... | bash -s -- --version v1.0.0
# Install to /usr/local/bin (requires sudo)
curl -fsSL ... | bash -s -- --sudo
# Install to a custom directory
curl -fsSL ... | bash -s -- --dir /opt/binOptions (Windows):
# Save and run with flags
Invoke-WebRequest -Uri https://raw.githubusercontent.com/Thanukamax/h-cli/main/scripts/install.ps1 -OutFile install.ps1
.\install.ps1 -Version v1.0.0
.\install.ps1 -InstallDir "C:\Tools"Download the latest release for your platform from Releases:
| Platform | File |
|---|---|
| Linux x86_64 | hcli-linux-x86_64.tar.gz |
| macOS arm64 (Apple Silicon) | hcli-macos-arm64.tar.gz |
| Windows x86_64 | hcli-windows-x86_64.zip |
# Linux / macOS
tar xzf hcli-linux-x86_64.tar.gz
sudo mv hcli /usr/local/bin/
# Windows — extract the zip, then add the folder to your PATHEach release includes a SHA256SUMS file:
# Linux
sha256sum -c SHA256SUMS --ignore-missing
# macOS
shasum -a 256 -c SHA256SUMS --ignore-missing
# Windows (PowerShell)
(Get-FileHash hcli-windows-x86_64.zip -Algorithm SHA256).Hash
# Compare with the hash in SHA256SUMSpipx install git+https://github.com/Thanukamax/h-cli.gitor with uv:
uv tool install git+https://github.com/Thanukamax/h-cli.git- MPV - Video player (mpv.io)
- yt-dlp - Required for downloads and some external mirrors (
pip install yt-dlp)
- chafa - Terminal image renderer (hpjansson.org/chafa)
- Pillow and chafa.py are Python dependencies (auto-installed via pip/pipx/uv)
- pyfiglet - ASCII art text banners (auto-installed)
If these are missing, H-CLI works fine — you just won't see the mascot art.
sudo apt update && sudo apt install mpv ffmpeg chafa
pip install yt-dlpsudo dnf install mpv ffmpeg chafa
pip install yt-dlpwinget install mpv
choco install chafa # or: scoop install chafa
pip install yt-dlp| Command | Description |
|---|---|
hcli |
Interactive mode |
hcli "search term" |
Search and stream |
hcli -q 1080 |
Stream at 1080p |
hcli -d |
Download mode |
hcli --clear-cache |
Clear stream cache |
| Key | Action |
|---|---|
n / enter |
Next episode |
p |
Previous episode |
s |
Skip to specific episode |
r |
Replay current |
d |
Download current episode |
q |
Quit |
Press space 3 times within 2 seconds at any point during the session to instantly kill the app. This works during loading screens, playback, prompts — everywhere. On trigger it kills MPV, wipes the stream cache, clears the terminal, and hard-exits.
- Search - Scrapes search results from the configured source
- Episode listing - Fetches and sorts episodes chronologically
- Stream extraction - Resolves direct MP4 URLs via AJAX + base64 decoding pipeline
- Caching - LRU cache (100 entries) persists resolved URLs between sessions
- Preloading - Background thread resolves the next 2 episodes while you watch
- Playback - Launches MPV with the resolved stream URL
| Path | Description |
|---|---|
~/.cache/h-cli/ |
Stream URL cache (Linux) |
~/.h-cli/ |
Stream URL cache (Windows) |
~/Videos/H-CLI/ |
Downloaded episodes |
This tool is for educational purposes only. Not affiliated with any streaming sites.
Made by Thanukamax