English | 中文
HoyoDown is a Go command-line tool for browsing and downloading official miHoYo/HoYoverse PC game files and voice packs. It supports Sophon manifests and chunks, automatic CN/Global endpoint selection, package inspection, individual file downloads, and machine-readable JSON output.
go build -o hoyodown ./cmd/hoyodownOn Windows, you may name the output hoyodown.exe:
go build -o hoyodown.exe ./cmd/hoyodownThe game command is hierarchical. Add one positional argument at a time to move from games to versions, packages, files, and downloads.
# List games
./hoyodown game
# List the officially available versions
./hoyodown game hk4e
# List game, voice, and incremental packages for a version
./hoyodown game hk4e 6.7.0
# Show the package file count and total restored size
./hoyodown game hk4e 6.7.0 zh-cnUse --json when the complete file list or structured output is needed:
./hoyodown game --json
./hoyodown game hk4e --json
./hoyodown game hk4e 6.7.0 --json
./hoyodown game hk4e 6.7.0 zh-cn --jsonEvery command level supports --help.
Download and reconstruct an entire package:
./hoyodown game hk4e 6.7.0 zh-cn ./genshinDownload one file from the package:
./hoyodown game hk4e 6.7.0 zh-cn ./genshin \
YuanShen_Data/StreamingAssets/AudioAssets/Chinese/External0.pckResolve the manifest and calculate the download without writing files:
./hoyodown game nap 3.0.0 zh-cn ./zzz-voice --dry-runDownload a complete Sophon package:
./hoyodown sophon full gopR6Cufr3 zh-cn 6.7.0 ./output --region OSRELDownload an incremental update:
./hoyodown sophon update gopR6Cufr3 game 6.6.0 6.7.0 ./output --region OSRELThe Sophon commands take an official region-specific game ID instead of a short game code. They also support --launcherId, --platApp, --handles, --threads, --branch, --silent, and --dry-run for customized downloader workflows.
--region auto|cn|global: Select an API/CDN region.autoprobes both official endpoints and uses the lower-latency reachable endpoint.--branch main|predownload: Select the released or pre-download Sophon branch.--threads N: Set the number of concurrent Sophon file downloads.--yes: Start downloading without an interactive confirmation prompt.--silent: Suppress normal output, progress messages, and the interactive download confirmation. This is intended for scripts that only use the process exit status.--dry-run: Resolve APIs and manifests without writing files.--json: Print machine-readable JSON. At the package level, JSON includes the complete file list.-h,--help: Show help for the current command level.
Games:
hk4e: Genshin Impacthkrpg: Honkai: Star Railnap: Zenless Zone Zerobh3: Honkai Impact 3rd
Packages:
game: Base game fileszh-cn: Chinese voice packen-us: English voice packja-jp: Japanese voice packko-kr: Korean voice pack
- cocogoat — YuehaiTeam/cocogoat
- hoyoUpdates — Escartem/HoyoUpdates
- hoyo-files — orilights/hoyo-files, orilights/pkg_version
- SophonDownloader — Escartem/SophonDownloader