torikushiii/starrail-auto
Auto check-in and others for Honkai: Star Rail
Notice
This project only receives bug fixes. Please use hoyolab-auto instead

Honkai: Star Rail Helper
Honkai: Star Rail Helper
A multi-purpose tool for the Honkai Impact: Star Rail that can be used to automate the daily check-in process, check stamina and expedition status.
Services
If you don't want to use Node.js and simply only want to use it for auto check-in, you can use one of the following services:
Features
- Auto Check-in
- Multiple accounts
- Stamina check (Node only)
- Will send you notification if your stamina is above set threshold (default: 170)
- Expedition check (Node only)
- Will send you notification if your expedition is done
- Reminders (Node only)
- Dailies
- Remind you to do your daily commission every day at 09:00 PM or your specified time (Only if you haven't done it yet)
- Weeklies
- Remind you to do your weekly boss every your specified time or Sunday 09:00 PM (Only if you haven't done it yet)
- Remind you to do your Simulated Universe points every your specified time or Sunday 09:00 PM (Only if you haven't done it yet)
- Dailies
- Code Redeem (Node only)
- Will send you notification if there's a new code available
- Will automatically redeem the code for you
- Discord notifications
- Telegram notifications (Node only)
- Commands
- Check stamina
- Check expedition status
- Commands
Pre-requisites
- Node.js (You will need to run your computer 24/7 if you want to use this, Google Apps Script is recommended if you don't want to run your computer 24/7 but you can only use it for auto check-in)
Installation
- Clone the repository.
- Run
npm installto install the dependencies. - Create a
config.jsonor renamedefault.config.jsontoconfig.json. - Follow the instructions in the
config.jsonfile.
Usage
- Go to your HoyoLab profile here.
- Log in with your Hoyoverse account.
- Open the browser console (F12).
- Click on the "Network" tab.
- Refresh the page.
- Search for
getGameRecordCardand click on it. - Click on the "Cookies" tab.
- Look for
account_mid_v2,cookie_token_v2, andltuid_v2. - Double click the value of each cookie and copy it.
- Paste the values in your
default.config.jsorconfig.jsfile. - Run
index.jswithnode index.jsif you want to run it indefinitely everytime the daily reset occurs. - Run
index.jswithnode index.js --signif you want to run it once. - Additonal arguments:
--staminato check all accounts stamina. (You need to set your in-gameuidfor it to work)--expeditionto check all accounts expedition status. (You need to set your in-gameuidfor it to work)--helpto show the help menu.
Notifications
For Discord notifications or Telegram setup, refer to this folder: setup
Docker
To start the project, you can use Docker.
How to run
For the application to work, the configuration file must be mounted under /app/config.json or /app/default.config.json, respectively (refer to docker-compose.yml for details).
- Prepare the configuration file as described in the Installation and Usage sections.
- Build the base image with
docker compose buildor without cache withdocker compose build --no-cache. - Start the container with
docker compose up -d. - Check logs with
docker compose logs -f.
Makefile
There is a handy Makefile that can be used with GNU Make or GNU Make for Windows.
List of generally used commands:
make run- Start application.make run-once- Start application once.make install- Download node modules.make start- Start the Docker container instance.make stop- Stop the Docker container instance.make logs- Read logs generated by the Docker container.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. If there's any bugs, please open an issue.
New here?
To get started, fork the repo, make your changes, add, commit and push your changes to your fork, then come back here and open a pull request. If you're new to GitHub, this tutorial may help.
You can support the project by giving it a star, sharing it with your friends, contributing to the project, and report any bugs you find.
Buy me a coffee
If this repo is useful to you, you can buy me a coffee to support me. Thank you!
Similar Projects
Discover other similar projects and AI models.
Fan-made shaders for Unity URP attempting to replicate the shading of Honkai: Star Rail.
Scanner for exporting light cone, relic, and character data from Honkai: Star Rail to JSON format.
A Honkai Star Rail optimizer, relic scorer, damage calculator, and various other tools for building and gearing characters
An example of a custom rendering pipeline that restores the rendering of HSR
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
Easiest, full free, and no BS Hoyolab daily check-in using GitHub Actions. Supports Zenless Zone Zero, Honkai: Star Rail, Genshin Impact, Honkai Impact 3rd, and Tears of Themis.