Ronchy2000/epic-freebies-helper
About
Automatically claim Epic Games weekly free titles with GitHub Actions and GLM-powered captcha solving.
Games & EmulationMeasured star growth
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +8
- 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
OriginalEpic Weekly Free Games Helper
A fully free Epic weekly free-games claimer powered by GitHub Actions.
Epic Weekly Free Games Helper is built for regular users. It runs on GitHub Actions by default, so you do not need a server, a permanently running local machine, or any extra deployment. If you have a GitHub account, you can get started by following the setup steps below.
The key point is simple: it is fully free. In the common setup, you do not need to pay for a server or keep a local machine online. GitHub Actions is enough to run the weekly claim flow automatically.
The project is built upon community open-source solutions and incorporates GLM multimodal support. Its core objective is to ensure the stability of auto-login, captcha recognition, and checkout processes. Compared to Gemini, the GLM setup process is more straightforward, and its free quota is sufficient for regular automated execution.
If you choose the GLM route, make sure the related Zhipu account has already passed real-name verification, or the API may remain unavailable.
2026.4.28: Some users reported that the API can be called without real-name verification, so if you encounter unavailability, please check this setting.
If you do not have a Zhipu account yet, you can register through this invite link: BigModel.cn invite link.
Community discussion and feedback are welcome on LINUX DO.
If the project worked for you, feel free to leave a message here too: 🎉 Success Stories / Successful runs.
If you run into an error, please feel free to open an Issue. The choice is always yours, and I respect that; still, if you are willing to leave feedback instead of deleting the repo and walking away, those real reports and user experiences directly help improve the project and keep this effort moving forward.
Feature Overview
| Feature | Description |
|---|---|
| Auto login | Signs in to your Epic account automatically |
| Weekly free games discovery | Fetches and identifies currently claimable free titles |
| Auto claim | Opens product pages and completes the checkout flow |
| Claim result notifications | Optionally sends a Telegram / WXPush (WeChat) run summary |
| Multi-account support | Optional; single-account behavior is unchanged when not configured |
| Captcha handling | Supports login captcha and checkout security checks |
| Scheduled execution | Runs once every Thursday by default on GitHub Actions and can be adjusted |
Why GLM Is Recommended
The GLM path is primarily recommended for the following advantages:
- Less configuration: in most cases you only need
GLM_API_KEYandGLM_MODEL. - Lower cost: the free quota of
glm-4.6vis often enough for the weekly-claim use case. - More stable for this project:
glm-4.6v-flashcan occasionally fail under load with "the current model is too busy", soglm-4.6vis the safer default. - Better fit for users in China: you do not need to solve Google AI Studio registration or availability first.
- Capability already validated: login captcha, checkout verification, drag, click, and multi-select challenges have all been verified in real runs.
Prerequisites
- Your Epic account email and password.
- Disable Epic email/SMS 2FA. Authenticator-app 2FA is supported when
EPIC_TOTP_SECRETis configured. - A GLM account with
GLM_API_KEYprepared for captcha solving.
🚀 Quick Start
Basic configuration and execution steps:
1. Fork the repository and enable Actions
[!TIP] If you have already forked this repository before, go to your fork on GitHub first and click
Sync fork->Update branchso your copy is aligned with the latest upstream changes before you continue.
After forking, open the Actions page in your fork, enter Epic Awesome Gamer (Scheduled), and click Enable workflow once, or GitHub will not activate the scheduled run for that fork.
- Fork the repo to your own GitHub account.
- Open
Actionsand enable the workflow namedEpic Awesome Gamer (Scheduled).
2. Configure Secrets and Variables
Go to Settings -> Secrets and variables -> Actions.
Keep account credentials and API keys in Secrets. LLM_PROVIDER and all *_MODEL names are non-sensitive configuration and should be stored in Variables. The workflow reads Variables first while retaining fallback support for existing Secrets. Startup logs now print the effective model routing, including SPATIAL_PATH_REASONER_MODEL. GitHub masks any value that still exists as a Secret, so move the model name to Variables and remove the same-named Secret if you need the exact value to remain visible in logs.
Required in all single-account setups (default path):
| Setting | Example value |
|---|---|
EPIC_EMAIL |
[email protected] |
EPIC_PASSWORD |
your_epic_password |
If the Epic account uses authenticator-app 2FA, also configure:
| Setting | Example value |
|---|---|
EPIC_TOTP_SECRET |
The Base32 secret encoded in the authenticator QR code |
The workflow generates the current six-digit TOTP on the MFA page. Email codes, SMS codes, and Passkeys are not supported. Do not enter the currently displayed six-digit code as the Secret.
To receive Telegram claim summaries, optionally configure these Secrets:
| Setting | Example value |
|---|---|
TELEGRAM_BOT_TOKEN |
Telegram Bot Token |
TELEGRAM_CHAT_ID |
Telegram chat ID |
Both settings must be present before a notification is sent. The message includes run status, current weekly games, newly claimed games, previously owned games, unconfirmed items, and failure reasons. Telegram delivery failures do not affect the claim task; when these settings are absent, the existing behavior is preserved.
To also receive WXPush (WeChat template message) claim summaries, deploy your own wxpush service first (Cloudflare Workers or Docker), then add these Secrets to the repository:
| Setting | Example value |
|---|---|
WXPUSH_ENDPOINT |
https://your-worker.workers.dev (service root is fine; /wxsend is appended automatically) |
WXPUSH_TOKEN |
The API_TOKEN you set when deploying wxpush |
Optional settings:
| Setting | Example value | Description |
|---|---|---|
WXPUSH_USERID |
OPENID1|OPENID2 |
Overrides the wxpush default recipients; when absent, wxpush's WX_USERID is used |
WXPUSH_TEMPLATE_ID |
Template ID | Overrides the wxpush default template; when absent, wxpush's WX_TEMPLATE_ID is used |
WXPUSH_BASE_URL |
https://example.com/skin |
Tap-through URL for the template message; when absent, the wxpush /skin page is used to view the full content |
WXPush is independent from Telegram and both can be enabled at once. Because WeChat template title fields are limited (about 20 characters, no newlines), the WXPush title is a dense single-line summary carrying the key counts (for example Epic 周免领取:新领2/共7款, Epic 周免领取:新领2 失败1 on partial failure, or Epic 周免领取失败:<reason> on total failure); the content carries the full plain-text game list (run status, weekly games, newly claimed games, and so on). WeChat native popups usually show only the first ~20 characters of the content — tap the template message to open the wxpush /skin page for the complete list. If your WeChat template's content field is a strict type, an over-long body can fail the whole send (logged only, never affecting the claim task); Telegram remains available for the full summary. WXPush delivery failures do not affect the claim task; when these settings are absent, the existing behavior is preserved.
If shared cloud IP reputation causes unusually difficult hCaptcha challenges, you may optionally add a BROWSER_PROXY Secret. Supported forms are http://username:password@host:port, https://..., socks4://..., and socks5://.... Without it, browser networking is unchanged. Proxy quality, trust, and cost remain the user's responsibility.
If you use GLM, start with this set:
If you plan to use GLM_API_KEY, make sure the related Zhipu account has already passed real-name verification, or the API may remain unavailable.
If you set LLM_PROVIDER=glm, you must provide GLM_API_KEY; there is no need to create or fill GEMINI_API_KEY.
| Setting | Example value |
|---|---|
LLM_PROVIDER |
glm |
GLM_API_KEY |
Your Zhipu API key |
GLM_BASE_URL |
https://open.bigmodel.cn/api/paas/v4 |
GLM_MODEL |
glm-4.6v |
Configuration page example:


If you use the official Gemini API, use this set:
If you set LLM_PROVIDER=gemini, you must provide GEMINI_API_KEY; there is no need to create or fill GLM_API_KEY.
| Setting | Example value |
|---|---|
LLM_PROVIDER |
gemini |
GEMINI_API_KEY |
Your Gemini API key |
GEMINI_BASE_URL |
leave empty |
GEMINI_MODEL |
gemini-2.5-pro |
If you use a Gemini-compatible relay such as AiHubMix, use this set:
| Setting | Example value |
|---|---|
LLM_PROVIDER |
gemini |
GEMINI_API_KEY |
Your AiHubMix key |
GEMINI_BASE_URL |
https://aihubmix.com |
GEMINI_MODEL |
gemini-2.5-pro |
Notes:
- The current codebase supports both the
official Gemini APIand Gemini-compatible relays such asAiHubMix. - The variable name is
GEMINI_BASE_URL, notGEMINI_BASE_MODEL. - When
LLM_PROVIDER=glm, fillGLM_API_KEY; there is no need to create or fillGEMINI_API_KEY. - When
LLM_PROVIDER=gemini, fillGEMINI_API_KEY; there is no need to create or fillGLM_API_KEY. - When you use the
official Gemini API, leaveGEMINI_BASE_URLempty so the SDK uses Google's default endpoint. - Only set
GEMINI_BASE_URLwhen you useAiHubMixor another Gemini-compatible relay. - For
GLM,glm-4.6vis the recommended starting value;glm-4.6v-flashcan fail during peak traffic. - For
Gemini/AiHubMix,GEMINI_MODEL=gemini-2.5-prois the recommended starting value. - If
CHALLENGE_CLASSIFIER_MODEL,IMAGE_CLASSIFIER_MODEL,SPATIAL_POINT_REASONER_MODEL, andSPATIAL_PATH_REASONER_MODELare left empty, they automatically follow the active provider default, meaningGLM_MODELorGEMINI_MODEL. - If you do not want to split models by task yet, leave all four override fields empty.
- The
GLMpath does not require an extraGEMINI_API_KEY.
If you do want to override those four model fields explicitly, use values like these:
| Setting | GLM example | Gemini / AiHubMix example |
|---|---|---|
CHALLENGE_CLASSIFIER_MODEL |
empty or glm-4.6v |
empty or gemini-2.5-pro |
IMAGE_CLASSIFIER_MODEL |
empty or glm-4.6v |
empty or gemini-2.5-pro |
SPATIAL_POINT_REASONER_MODEL |
empty or glm-4.6v |
empty or gemini-2.5-pro |
SPATIAL_PATH_REASONER_MODEL |
empty or glm-4.6v |
empty or gemini-2.5-pro |
Multi-account support (optional)
This feature is fully optional. If you only configure EPIC_EMAIL / EPIC_PASSWORD, the existing single-account path is used unchanged.
If you have multiple Epic accounts, you can manage them all in a single Secret without forking the repo multiple times.
Go to Settings -> Secrets and variables -> Actions and create a new Secret:
| Setting | Example value |
|---|---|
EPIC_ACCOUNTS |
One account per line, format: email:password |
Example:
[email protected]:password1
[email protected]:password2
[email protected]:password3
Notes:
- If
EPIC_ACCOUNTSis unset or empty, the exact legacy single-account path is used. There is no credential swapping and no aggregated exception wrapping. - If
EPIC_ACCOUNTSis set and every non-empty line is valid, the multi-account path runs sequentially. - If
EPIC_ACCOUNTScontains no valid lines, the job falls back only when bothEPIC_EMAILandEPIC_PASSWORDare configured. Otherwise, it fails with a configuration error before starting a browser with empty credentials. - If
EPIC_ACCOUNTSis set with some valid and some invalid lines, the job fails with a configuration error that lists the invalid line numbers. It will not silently skip bad lines and still report success. - Email shape is lightly validated, including rejection of path separators and control characters. If a password contains a colon
:, only the first colon is used as the separator. - Each account runs independently: one account's failure does not affect the others. Each account still reuses the current login, hCaptcha, TOTP, Telegram, WXPush, and browser runtime path.
- Each account automatically gets its own isolated browser profile directory keyed by email.
- Multi-account Telegram / WXPush messages include a masked account label. Single-account formatting is unchanged when no label is supplied.
EPIC_TOTP_SECRETremains a global setting for now. It fits a shared authenticator secret, or enabling TOTP for only one of the accounts. Per-account TOTP is not supported yet.- Multiple accounts run sequentially in one job. Since a single account can take 15-20 minutes, raise the workflow timeout for multiple accounts (see below).
[!IMPORTANT] The workflow
timeout-minutesdefaults to 60, which fits a single account with room to spare. For more accounts, set a repository variableJOB_TIMEOUT_MINUTES(Settings -> Secrets and variables -> Actions -> Variables) to roughly 20 minutes per account, or the job may be killed before all accounts finish.
3. Run the workflow manually once
- Open the
Actionspage. - Select
Epic Awesome Gamer (Scheduled). - Click
Run workflow.
[!IMPORTANT] Note: Due to Epic's risk-control mechanisms, the script may trigger multiple retries during captcha and checkout stages, which can extend the total runtime to 15-20 minutes. It is recommended not to interrupt the workflow manually while it is in progress.
4. Check the logs
When the run succeeds, the logs usually contain lines like:
Login success
Right account validation success
Authentication completed
Starting free games collection process
All week-free games are already in the library
Example log with warnings but final success:

If the logs show repeated retries and you cancel the run manually, like the example below, that still does not prove the automation had already failed. In many cases it simply had not finished yet:
Run Logs and Artifacts
Each GitHub Actions run attempts to upload the artifacts below. GitHub only shows artifacts that actually contain files, so different users may see only some of them. That is normal.
| Artifact | Content | When it usually appears |
| --- | --- |
| epic-logs-<run_id> | Runtime logs | Almost every run |
| epic-runtime-<run_id> | promotions.json, purchase_debug screenshots, and debug text | Common after the run reaches freebie discovery, product pages, or checkout |
| epic-screenshots-<run_id> | Extra screenshots for login failures, risk-control pages, and auth debugging | Only when the login, risk-control, or auth flow saved screenshots |
Download location:
- Open the specific Actions run page.
- Scroll to the bottom.
- Find
Artifacts. - Download the zip files.
What to inspect first:
| Package | What to inspect first |
|---|---|
epic-logs-<run_id>.zip |
After extraction, open the log files directly |
epic-runtime-<run_id>.zip |
If present, check the screenshots and debug text inside purchase_debug/ first |
epic-screenshots-<run_id>.zip |
If present, check login, risk-control, or auth screenshots first |
These files are generated and uploaded after each GitHub Actions run. They are not fixed directories pre-shipped in the repository root.
If you need to open an issue, do not paste only a short log excerpt.
- If your fork is public, the Actions run URL is usually enough because maintainers can inspect the run page directly.
- If your fork is private, you must upload the artifact zip files that were actually generated for that run. Maintainers cannot access private Actions pages or private run artifacts.
Local One-Shot Debugging
If you want to reproduce the same entrypoint locally, use the repository's built-in one-shot run path:
- Copy
.env.exampleto.env - Fill in your own account and model configuration
- Run
uv sync --group dev - Run
ENABLE_APSCHEDULER=false uv run app/deploy.py
.env, .venv, and app/volumes/ are already ignored by .gitignore, so they will not be committed to GitHub.
[!TIP] If your password or API key contains
$,\,#, or`, wrap the value in single quotes (e.g.EPIC_PASSWORD='abc$def') so thatpython-dotenvdoes not treat$xxxas variable interpolation and silently drop characters. GitHub Actions Secrets are not affected.
FAQ
1. Login randomly fails
Cause: GitHub Actions environments use shared cloud IPs, which easily trigger Epic's strict risk control, causing fluctuations in captcha success rates. This is an expected behavioral pattern.
2. Logs mention privacy-policy correction or the run gets stuck on a privacy-policy page
This is usually not a model-provider issue. It is an Epic account state issue. Some accounts are redirected after login to a page like /id/login/correction/privacy-policy, which requires a one-time privacy-policy confirmation.
The fix is simple: sign in to Epic once in a normal browser, complete that confirmation page manually, and then rerun the workflow.
3. Logs show two_factor_authentication.required or the page goes to /id/login/mfa
This means the Epic account entered its two-factor authentication flow. For authenticator-app 2FA, add EPIC_TOTP_SECRET to GitHub Secrets and the workflow will generate and submit the current six-digit TOTP. Email codes, SMS codes, and Passkeys are not supported.
If you see signals like these, treat them as “Epic requires 2FA verification”:
errors.com.epicgames.common.two_factor_authentication.requiredTwo-Factor authentication required to process request- A redirect to
/id/login/mfa
How to fix it:
- Sign in to the Epic account in a normal browser
- Open the account security settings page
- For authenticator-app 2FA, add the QR code's Base32 secret to GitHub Secrets as
EPIC_TOTP_SECRET - If you do not want automatic authenticator codes, click
Removefor the enabled verification method - Rerun the workflow
Reference page:

4. The page shows One more step
This is not automatically a bug. It is Epic's extra human-verification step during checkout.
Description: This is an additional security verification step during checkout. The workflow already contains automation logic for this stage, so seeing the prompt below does not automatically mean the script is broken.

5. The page shows Device not supported
This usually happens when the product officially supports Windows while GitHub Actions is running on Linux.
By itself, this does not always mean the claim failed. The current automation will try to click Continue on that dialog and keep going.
6. Why can the workflow report success while the game is not in the library?
Historically, the common root causes were:
| Cause | Description |
|---|---|
| Product-page state recognition was inaccurate | The page copy and the real state did not match |
Place Order was clicked but checkout was still incomplete |
The checkout page was still blocked by a security check |
| Another popup interrupted the flow | For example Device not supported or an extra confirmation |
| Older logic misclassified page text | Some non-ownership text was previously misread as "already owned" |
Docker Deployment
If you do not want to use GitHub Actions, you can also run the project on your own server, NAS, or local Docker environment.
1. Clone the repository
git clone https://github.com/Ronchy2000/epic-freebies-helper.git
cd epic-freebies-helper
2. Edit the configuration
The main entry is docker/docker-compose.yaml.
GLM example:
environment:
- LLM_PROVIDER=glm
- GLM_API_KEY=your_glm_key
- GLM_BASE_URL=https://open.bigmodel.cn/api/paas/v4
- GLM_MODEL=glm-4.6v
Official Gemini API example:
environment:
- LLM_PROVIDER=gemini
- GEMINI_API_KEY=your_gemini_key
- GEMINI_BASE_URL=
- GEMINI_MODEL=gemini-2.5-pro
AiHubMix example:
environment:
- LLM_PROVIDER=gemini
- GEMINI_API_KEY=your_key
- GEMINI_BASE_URL=https://aihubmix.com
- GEMINI_MODEL=gemini-2.5-pro
3. Start the stack
docker compose up -d --build
Additional Documentation
If you want the project structure, adapter details, and developer-oriented troubleshooting notes, continue with:
Project Origins and References
This project is based on QIN2DIM/epic-awesome-gamer and also references 10000ge10000/epic-kiosk:
| Project | Description |
|---|---|
| QIN2DIM/epic-awesome-gamer | Original project and source of the core automation ideas |
| 10000ge10000/epic-kiosk | Important reference for GitHub Actions packaging and documentation layout |
| LINUX DO | Community discussion, feedback, and project promotion support |
Thanks to the original authors, maintainers, and the community work that made this project possible.
Disclaimer
- This project is for learning and research around automation flows.
- Automated actions may violate the target platform's terms of service. Evaluate the risk yourself.
- You are responsible for any consequences caused by using this project.
Star History
Community Thanks
The continuous improvement of this project relies not only on code iterations, but heavily on every user who, upon encountering an error, chose not to give up, but patiently submitted a complete error report.
The resolution of many edge cases did not stem from unilateral developer testing, but was built upon the detailed logs, screenshots, and reproduction steps actively provided by the community. It is this authentic diagnostic data that enabled obscure and hidden issues to be accurately isolated and resolved.
We extend our most genuine gratitude to everyone who has submitted feedback. The time you invested and the real-world data you shared have steadily illuminated the blind spots in development, allowing this project to mature and genuinely benefit a wider audience.
Explore related projects
Loading…








