Skip to content

About

Hoyolab Automatic Daily Check-in Bot Hoyoverse Game. A lightweight, secure, and FREE Supports Genshin Impact, Honkai Impact 3rd, Zenless Zone Zero, Honkai: Star Rail.

Topics

Resources

Code of conduct

Security policy

Stars

48 stars

Watchers

3 watching

Forks

Latest commit

ย 

History

142 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ go-hoyolab

Daily HoYoLAB check-in for every HoYoverse game โ€” set it up once, forget it forever.

Build Go Report Card Release License PRs welcome

English ยท เธ เธฒเธฉเธฒเน„เธ—เธข ยท Website ยท Discord

check-in log

โœจ Why

  • Zero setup for login โ€” it reuses the HoYoLAB session you already have in Firefox. No passwords, no tokens to copy.
  • One small binary โ€” a single hoyolab executable for Windows, macOS, Linux and FreeBSD. No runtime, no Docker.
  • Every game in one run โ€” all your enabled games are checked in together, for as many accounts as you have profiles.
  • Tells you what you got โ€” a Discord (or LINE) message lists today's reward for each game.
  • Updates itself โ€” picks up new releases from GitHub automatically.

๐Ÿ•น๏ธ Supported games

Game Key in hoyolab.yaml Default
Genshin Impact GSI โœ…
Honkai: Star Rail HSR โœ…
Zenless Zone Zero ZZZ โœ…
Honkai Impact 3rd HI3 โ€”

๐Ÿš€ Quick start

  1. Sign in to https://www.hoyolab.com/home in Firefox (or LibreWolf, Waterfox, Zen, Floorp).

  2. Download the archive for your OS from the latest release and unpack it.

  3. Run it:

    ./hoyolab          # Windows: hoyolab.exe

That is all. On the first run it writes a hoyolab.yaml next to the binary; edit it to add notifications or switch games on and off.

Important

Chrome, Edge and Brave are no longer supported. They encrypt cookies with App-Bound Encryption (v20), which cannot be read from outside the browser. If your old hoyolab.yaml has profile[].browser: chrome (or edge / brave), change it to firefox โ€” those entries are ignored with a warning.

To see which browser profiles were found:

./hoyolab --list

โš™๏ธ Configuration

notify:
  discord-webhook: "https://discord.com/api/webhooks/..."   # optional
  line-notify: ""                                           # optional
  mini: true
profile:
  - browser: firefox
    name: []            # empty = every Firefox profile; or list profile names
games:                  # remove or comment out the games you do not play
  - GSI
  - HSR
  - ZZZ

Existing configs that still use the old per-game config: blocks keep working and are migrated automatically the next time the file is written.

๐Ÿ”” Notifications

Provider How
Discord Create a webhook in Channel settings โ†’ Integrations and paste the URL into notify.discord-webhook.
LINE Notify Generate a token at notify-bot.line.me and paste it into notify.line-notify. LINE has retired this service, so prefer Discord.

Discord notification

โฐ Run it every day

Windows โ€” Task Scheduler โ†’ Create Basic Task โ†’ Daily (e.g. 5 am) โ†’ Start a program โ†’ hoyolab.exe. Or put a shortcut to hoyolab.exe in shell:startup to check in each time the PC boots.

macOS / Linux โ€” add a cron job:

0 5 * * * /path/to/hoyolab

๐Ÿ› ๏ธ Development

go test ./...
go vet ./...
go build ./...
  • Tests never touch a real browser profile, real credentials or an outbound notification service.
  • Cookie reading lives in go-kooky/v2; game endpoints are in act/games.go; notification delivery is in act/notify.go.
  • If go build fails on VCS stamping, use go build -buildvcs=false ./....

Contributions are welcome โ€” please open an issue first for anything large.

๐Ÿ’ฌ Help

Found a bug or want a game added? Open an issue, or come say hi on Discord.

Join us on Discord

๐Ÿ“„ License

MIT ยฉ Kananek Thongkam

About

Hoyolab Automatic Daily Check-in Bot Hoyoverse Game. A lightweight, secure, and FREE Supports Genshin Impact, Honkai Impact 3rd, Zenless Zone Zero, Honkai: Star Rail.

Topics

Resources

Code of conduct

Security policy

Stars

48 stars

Watchers

3 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages