Skip to main content

icon

platform Static Badge Static Badge GitHub Downloads (all assets, all releases) GitHub Release mirrorc PyPI Version

主页 | Русский | English | 中文

问题排查 | FAQ | 下载和安装 | 使用方法

🌟 StarRailAssistant(SRA)

🎮 崩坏星穹铁道自动化助手
如果您在使用的过程中遇到问题,请先阅读问题排查。

如果项目对您有帮助,欢迎点个Star⭐支持一下!

❓ 什么是SRA?

🤖 一个基于图像识别的崩铁自动化程序,帮您完成从启动到退出的崩铁日常。

预览

⚠️ 免责声明

本软件是一个外部工具旨在自动化《崩坏:星穹铁道》的游戏玩法。 它被设计成仅通过现有用户界面与游戏交互,并遵守相关法律法规。 该软件包不打算以任何方式破坏游戏平衡或提供任何不公平的优势。 该软件包不会以任何方式修改任何游戏文件或游戏代码。

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.

本软件开源、免费,仅供学习交流使用。 开发者团队拥有本项目的最终解释权。 使用本软件产生的所有问题与本项目与开发者团队无关。 若您遇到商家使用本软件进行代练并收费,可能是设备与时间等费用,产生的问题及后果与本软件无关。

请注意,根据MiHoYo的 崩坏:星穹铁道的公平游戏宣言:

"严禁使用外挂、加速器、脚本或其他破坏游戏公平性的第三方工具。"
"一经发现,米哈游(下亦称“我们”)将视违规严重程度及违规次数,采取扣除违规收益、冻结游戏账号、永久封禁游戏账号等措施。"

✨ 有什么功能?

  • 🎯 启动游戏
    • 在这里选择好游戏路径,输入账号与密码,坐和放宽程序会帮你解决好一切。已经适配b服。
  • ⚡ 清体力
    • 自由选择关卡、挑战次数、挑战顺序,支持根据培养目标自动选择关卡和挑战次数。
  • 🎁 领取奖励
    • 包括:每日实训、无名勋礼、助战奖励、兑换码奖励、派遣奖励、巡星之礼、邮件奖励等。
  • 🚀 差分宇宙刷等级
    • 支持刷到每周积分上限后自动停止、自动领取积分奖励。
  • 🎲 货币战争
    • 标准博弈、超频博弈自动化(最高难度不一定能赢)
    • 刷开局:支持任意投资环境、投资策略、Boss名称、Boss词条,如叽米、砂金
  • 🚪 退出游戏
    • 可选退出SRA以及关闭计算机。
  • 📖 自动剧情
    • 解放双手,享受剧情,支持跳过
  • 🔄 多账号切换
  • 云星穹铁道
    • 支持使用云星穹铁道,实现后台运行。

⚠️ 注意事项

  • 📺 分辨率要求:
    • 如果你的屏幕分辨率大于1080p,请将游戏调整至1920x1080窗口模式下运行,否则可能出现识别错误!
    • 如果你的屏幕分辨率等于1080p,请将游戏调整至1920x1080全屏模式下运行,否则可能出现识别错误!
  • 🖱️ 操作提示:执行任务时不要进行其他键鼠操作!

🚀 我怎么才能使用SRA?急急急

⬇️ 下载链接:SRA

下载说明: ChangeLog2.0.md

运行时要求: 含有 StarRailAssistant_DesktopDLC 的版本需要安装.NET 桌面运行时 10.0 。 含有 StarRailAssistant_ServerDLC 的版本需要安装ASP.NET Core 运行时 10.0。

  • 在Release页面下载StarRailAssistant_vX.X.X.zip文件,一切都为您准备妥当,只需解压到您喜欢的位置,然后运行SRA.exe即可!
  • 如需使用 WebUI,无需单独下载:WebUI 已内嵌于包含服务端的完整包 StarRailAssistant_vX.X.X.zip 中(或安装 ServerDLC),解压后由服务端直接托管,启动服务端即可访问。
  • 从源码运行SRA,请阅读 贡献指南。

🐳 Docker 部署

容器里没有桌面会话,只能以云游戏模式运行,适合 Linux 服务器 / NAS 长期挂机。

docker compose up -d          # 默认拉取 ghcr.io/shasnow/starrailassistant:beta

浏览器打开 http://localhost:5073 即是 WebUI,用 docker-compose.yml 里的 SRA_ACCESS_TOKEN 登录(部署到公网前务必改掉默认值)。

  • 镜像标签:beta(预发布)、latest(正式版)、v<版本>、sha-<哈希>,可用 SRA_IMAGE_TAG 固定到具体版本。
  • 数据持久化:sra-data 卷挂载到 /root/.config/SRA(settings.json、configs/、cache/,云游戏登录态在 cache/selenium_profile 下),sra-log 卷挂载到 /app/log。
  • 开箱即用:镜像内置 Chromium 与 chromedriver,首次启动时入口脚本会自动写入云游戏开关、浏览器路径与无头模式;账号密码在 WebUI 中填写(加密存储)。
  • 本地构建:docker build -t sra-server:local .,再把 compose 里的 image: 换成它,或启用注释中的 build: .。
  • 环境变量:SRA_ACCESS_TOKEN(为空则 /api 全部放行)、SRA_HOST、SRA_PORT、SRA_LOG_LEVEL、SRA_VISITOR_MODE。
  • 本地游戏模式依赖 Windows 窗口句柄,在 Linux 容器内无法使用;Windows 桌面用户仍建议直接用桌面端。

🐛 你这代码保熟吗?

我们无法保证代码能完美的运行,这便是 issues 存在的意义。

  • 📝 通过 issues 反馈:https://github.com/Shasnow/StarRailAssisant/issues
  • 📧 通过 电子邮件 反馈:yukikage@qq.com
  • 💬 或者加入测试群 994571792 在这里,你可以:
    • ⚡ 获得更快的下载速度
    • 🆕 提前获取版本更新
    • 💌 反馈和意见得到及时回复
    • 🤝 与精通 Python , Java , C/C++ , SQL, C# , Go , Vue3 , HTML , JavaScript , CSS , TypeScript 的大佬交流。
    • ✨ 与 暮光闪闪 交流友谊的魔法
    • 🎮 和 青雀 一起摸鱼
    • 😺 体验 柔情猫娘 的温柔
    • 🧠 向 梦见月瑞希 获取心理咨询
  • 欢迎通过上述渠道反馈问题和提交意见!

🤝 想要为项目做出贡献

开发群:821445062

请阅读 贡献指南。


🙏 贡献者

感谢以下贡献者对本项目做出的贡献

contrib

⭐ Star History

Star History Chart

Metadata

Release files for starrailassistant 2.25.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for starrailassistant 2.25.5
File Size Uploaded Provenance Actions
starrailassistant-2.25.5.tar.gz 1.9 MB With provenance Details for starrailassistant-2.25.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for starrailassistant 2.25.5
File Interpreter ABI Platform Actions
starrailassistant-2.25.5-py3-none-any.whl Python 3 none any Details for starrailassistant-2.25.5-py3-none-any.whl

Total release size: 3.7 MB

Release files / starrailassistant-2.25.5.tar.gz

Download URL starrailassistant-2.25.5.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
bed888bcef1b6c255557e7e59ac8e83d48af95f7c84e47880fc57c35b9a262f0
BLAKE2b-256 checksum
How to use checksums
34cabd88d685dbe7d505f174d8365d2e57bba3978f3457cb27f6e5b92be3ae38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / starrailassistant-2.25.5-py3-none-any.whl

Download URL starrailassistant-2.25.5-py3-none-any.whl
Size 1.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1f6eed119c21acd613f109f7c671a74c7ed54aff8f4b7bf42bfb5c9264075edb
BLAKE2b-256 checksum
How to use checksums
d3c65dfe5660cba228161e09c1604b8ba5eaa2cd22df6af60158a3c4c8ed0c0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for starrailassistant 2.25.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for starrailassistant-2.25.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.25.5 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page