Collei claims daily check-in rewards and new codes for you. ColleiTable of contents |
First you'll have to make a decision, whether you want to fork Collei or generate your own version from the template. Setup
Forking the repository has the benefit of being able to apply fixed and updates to your version easily, with the downside of having to have the repository publicly visible in your GitHub profile due to GitHub limitations.
If you wish to keep the repository private, you'll have to generate it from the template, with the downside of having to apply patches manually.
Option a: Fork the repository
Option b: Generate from template
Log in at Copy your cookieshoyolab.com, open the developer console by pressing
F12
on your keyboard and navigate to the console tab. Finally, paste the following in the console to copy your cookies to your clipboard copy(document.cookie)
. IMPORTANT: Never share your cookies with anyone!
Create a repository secret
Create a new secret called Paste your cookies in the repository secret
GENSHIN_COOKIES
or STARRAIL_COOKIES
respectively and
paste your cookies. If both your Star Rail and Genshin accounts are connected to the same Hoyoverse account, paste
the same cookie in each. If you don't have an account for one of the games, skip setting the cookie secret. Collei will only try to claim the rewards for games you provide her with and may fail otherwise.
Give the action write permissions
Run the action manually And you're set! From now on Collei will claim any new codes and redeem the daily check-in rewards at Hoyolab for you every 6 hours!
You can also run this repository locally if you do not wish to rely on GitHub. Running locally
$ git clone https://github.com/c4em/collei
$ cd collei
$ pip install -r requirements.txt
$ GENSHIN_COOKIES="your cookies" STARRAIL_COOKIES="your cookies" ./collei
If you wish to automate this process, read up on cron jobs for your distribution.
Help! My Collei broke! Troubleshooting
This section goes over some common reasons why Collei might break.
If you reset your password, you'll have to set your cookies again because they'll be reset. Simply delete the existing secrets in the repository and follow the step to set your cookies again. Changed Password
Collei will fail if you provide her with cookies to a game you don't play. Simply remove the cookie for the given game and she'll resume work like usual. Setting cookies for a game account you don't have
It could be that the script broke due to an oopsie on my side, in which case I'm sorry. Have a look at the Something elseoriginal repository to see if there have been any changes.
If there are, the easiest way to fix the issue, if you're not a developer, would be to set up collei again from scratch.
Why? You might ask. I know it sucks but GitHub doesn't allow you to create private forks, so you would have to have it publicly visible on your profile, which would turn away most people. So instead the repository is a public template, which you can set to be private after copying it. If you do not care that you have to keep the repository public, you can use the fork option in the top right instead.
If there are not, you can contact me about the issue by opening an issue in the GitHub repository or sending me a message directly somewhere. I'll be glad to help. My contact information is visible on my GitHub profile.