hs · Huasheng CLI
From one sentence to a finished, publishable video

简体中文 · English
hs brings Huasheng's video creation pipeline to the command line.
| Standard video | Flow video |
|---|
| What it is | Huasheng's built-in storyboard-based editor | A reusable workflow published to Huasheng, with its own agent and tools |
| Input | A sentence, a script, or a narration recording | A script you give the Flow; the Flow decides what to do with it |
| Control | You confirm the storyboard and can tweak each clip | You reply in conversation and follow the Flow's questions |
| Command | hs make --script "..." | hs make --flow <id> --script "..." |
For either path, install hs, sign in once, and optionally set up an AI client — then hs handles the rest.
A single self-contained binary. No Node, no Python, no runtime to install.
Every command supports --json, designed for scripts and AI clients.
Step 1: install and sign in
Do this once, regardless of which client you use later.
Install
Pick whichever suits you — all three give you the same binary.
macOS / Linux
curl -fsSL https://raw.githubusercontent.com/superlcr/huasheng-cli/main/install.sh | sh
Windows, in PowerShell:
irm https://raw.githubusercontent.com/superlcr/huasheng-cli/main/install.ps1 | iex
Either installer downloads the package for your platform, verifies its SHA256, and installs
it into ~/.hs/bin, where hs keeps all its files. On macOS and Linux, ~/.local/bin/hs becomes a
link to it (an existing file there is moved to ~/.hs/backups first); shell profiles are not
changed. On Windows, ~/.hs\bin is added to your user PATH and the current session. No
administrator rights are needed.
With npm, if you already live in the Node ecosystem or just want to try it first:
npx @superlcr/hs --help
npm install -g @superlcr/hs # the command is still `hs`
The npm package is a small launcher; the binary for your platform arrives as an optional
dependency, so nothing is downloaded or compiled at install time.
Manual download instead of the installer
Grab the package for your platform from
Releases, extract it, and place
the executable anywhere on your PATH:
| Platform | File |
|---|
| macOS · Apple Silicon | hs-darwin-arm64.tar.gz |
| macOS · Intel | hs-darwin-x64.tar.gz |
| Linux · x64 | hs-linux-x64.tar.gz |
| Windows · x64 | hs-windows-x64.zip |
Every release ships a SHA256SUMS file. Verifying it is recommended:
shasum -a 256 -c SHA256SUMS
Both macOS packages are signed and notarized by Apple (Developer ID Application).
The Windows package is unsigned; SmartScreen may prompt on first run — choose
"More info → Run anyway".
Sign in
Open a new terminal, sign in, and confirm that hs can read your credit balance:
hs auth login
hs account
The CLI and every AI client share ~/.hs/credentials.json; you do not sign in separately.
No browser on that machine (SSH, a cloud server, a container)? Run hs auth login --no-browser, open
the address it prints on any device, approve, and paste back the address the browser lands on (it
starts with http://127.0.0.1 and will not load — that is expected).
Step 2: choose how you use it
Both paths use the same hs binary and the same sign-in — pick either, or both.
Option 1: use hs CLI directly
Use this path for exact commands, scripts, or batch jobs. hs make can start from one sentence or
a complete script, run the creation workflow, wait for the finished video, and download it.
Create a video from one sentence:
hs make --script "Three little-known facts about West Lake" --out ./out.mp4
Request an MG-style video:
hs make --script "Explain Song dynasty tea whisking in 30 seconds" --mode mg --out ./tea.mp4
Read a long script from a file:
hs make --script @script.txt --out ./video.mp4
Or start from your own narration recording — a file on your computer or a public URL:
hs make --audio ./narration.m4a --out ./video.mp4
hs make --audio ./narration.m4a --transcript @words.txt --out ./video.mp4 # if you have the words