Shasnow/StarRailAssistant
About
An automation assistant for Honkai: Star Rail that handles your daily activities from launch to exit | Multi-account management | Currency War automation
Productivity & AutomationMeasured star growth
- in 24h
- +2
- in 7 days
- +6
- in 15 days
- +10
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
Original
Homepage | Русский | English | 中文
Troubleshooting | FAQ | Download & Install | Getting Started
The documentation site is currently available in Chinese only.
🌟 StarRailAssistant (SRA)
🎮 An automation assistant for Honkai: Star Rail If you run into any issues while using SRA, please read the Troubleshooting guide first.
If you find this project helpful, a Star ⭐ would be appreciated!
❓ What is SRA?
🤖 An image-recognition based automation program for Honkai: Star Rail that takes care of your dailies from launching the game to closing it.

⚠️ Disclaimer
This software is an external tool designed to automate gameplay in Honkai: Star Rail. It is designed to interact with the game only through the existing user interface, and complies with applicable laws and regulations. This package is not intended to break game balance in any way or to provide any unfair advantage. This package does not modify any game files or game code in any way.
This software is open source, free of charge and for learning and exchange purposes only. The developer team has the final right to interpret this project. All problems arising from the use of this software are not related to this project and the developer team. If you encounter a merchant using this software to practice on your behalf and charging for it, it may be the cost of equipment and time, etc. The problems and consequences arising from this software have nothing to do with it.
Please note that, according to miHoYo's Fair Gaming Declaration for Honkai: Star Rail:
"The use of cheats, accelerators, scripts, or other third-party tools that undermine the fairness of the game is strictly prohibited."
"Once detected, miHoYo (hereinafter also referred to as 'we') will, depending on the severity and frequency of the violations, take measures such as deducting illegitimate gains, freezing game accounts, and permanently banning game accounts."
✨ Features
- 🎯 Launch the game
- Select the game path, enter your account and password, then sit back and relax — SRA takes care of everything. The Bilibili server is supported.
- ⚡ Farm Trailblaze Power
- Freely choose the stage, challenge count and challenge order; automatically pick stages and counts based on your training goals.
- 🎁 Claim rewards
- Including: Daily Training, Nameless Honor, assist rewards, redeem code rewards, dispatch rewards, launch gifts for each version, mail rewards, and more.
- 🚀 Divergent Universe leveling
- Automatically stops when the weekly points cap is reached, and claims the points rewards.
- 🎲 Currency Wars
- Automate Standard and Overclock matches (the highest difficulty is not always winnable)
- Opening reroll: supports any investment environment, investment strategy, Boss name, and Boss affixes, e.g. Jimi and Aventurine
- 🚪 Exit the game
- Optionally exit SRA and shut down the computer.
- 📖 Auto story mode
- Enjoy the story hands-free, with skip support.
- 🔄 Multi-account switching
- Cloud Honkai: Star Rail (云星穹铁道)
- Supports the cloud version of the game for background operation.
⚠️ Notes
- 📺 Resolution requirements:
- If your screen resolution is higher than 1080p, run the game in 1920x1080 windowed mode, otherwise recognition errors may occur!
- If your screen resolution is exactly 1080p, run the game in 1920x1080 fullscreen mode, otherwise recognition errors may occur!
- 🖱️ Important: Do not perform any other mouse or keyboard operations while a task is running!
🚀 How do I use SRA?
⬇️ Download link: SRA
Release notes: ChangeLog2.0.md
Runtime requirements:
Builds containing StarRailAssistant_DesktopDLC require the .NET Desktop Runtime 10.0.
Builds containing StarRailAssistant_ServerDLC require the ASP.NET Core Runtime 10.0.
- Download the
StarRailAssistant_vX.X.X.zipfile from the Releases page — everything is ready to go. Just extract it to a location of your choice and runSRA.exe! - To use the WebUI, no separate download is needed: the WebUI is embedded in the full server package
StarRailAssistant_vX.X.X.zip(or install theServerDLC). After extraction it is hosted directly by the server — just start the server and access it from your browser. - To run SRA from source, read the Contributing Guide.
🐳 Docker deployment
There is no desktop session inside the container, so it can only run in cloud game mode. This suits long-running setups on a Linux server or NAS.
docker compose up -d # pulls ghcr.io/shasnow/starrailassistant:beta by default
Open http://localhost:5073 for the WebUI and sign in with the SRA_ACCESS_TOKEN from docker-compose.yml (change the default before exposing it to the internet).
- Image tags:
beta(pre-release),latest(stable),v<version>,sha-<hash>; pin one withSRA_IMAGE_TAG. - Persistence: the
sra-datavolume mounts at/root/.config/SRA(settings.json,configs/,cache/, with the cloud game session undercache/selenium_profile), andsra-logmounts at/app/log. - Works out of the box: Chromium and chromedriver are bundled, and the entrypoint writes the cloud game switch, browser path and headless mode into the settings on first start; fill in accounts and passwords in the WebUI (stored encrypted).
- Build locally:
docker build -t sra-server:local ., then pointimage:at it (or enable the commentedbuild: .). - Environment variables:
SRA_ACCESS_TOKEN(empty means/apiis wide open),SRA_HOST,SRA_PORT,SRA_LOG_LEVEL,SRA_VISITOR_MODE. - Local game mode relies on Win32 window handles and does not work in a Linux container; Windows desktop users should keep using the desktop build.
🐛 Any bugs?
We cannot guarantee that the code runs perfectly — that is what issues are for.
- 📝 Report via
issues: https://github.com/Shasnow/StarRailAssisant/issues - 📧 Report via email: [email protected]
- 💬 Or join the test group (QQ group: 994571792 — a Chinese-speaking community), where you can:
- ⚡ Get faster download speeds
- 🆕 Get early access to version updates
- 💌 Get prompt replies to feedback and suggestions
- 🤝 Chat with developers skilled in
Python,Java,C/C++,SQL,C#,Go,Vue3,HTML,JavaScript,CSS,TypeScript - ✨ Trade friendship magic with
Twilight Sparkle - 🎮 Slack off with
Qingque - 🧠 Get counseling from
Yumemizuki Mizuki
- Feedback and suggestions via any of the channels above are welcome!
🤝 Contributing
Please read the Contributing Guide.
🙏 Contributors
Thanks to the following contributors for their contributions to this project
⭐ Star History
Explore related projects
Loading…