📦 Epic Free Games — Epic 免费游戏

v1.0.1

Epic 免费游戏工具。

1· 206·4 当前·4 累计
by @anlinxi·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/27
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
medium confidence
The skill's code and instructions match its stated purpose (automating Epic Store free-game claims via a browser automation CLI), with no obvious attempts to access unrelated secrets or exfiltrate data — but you should vet the third‑party agent-browser tool and the full script before use.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.12026/3/18

Added troubleshooting section for common claim issues: scroll to find Get button, persist login state, Cloudflare bypass, checkout popup handling.

无害

安装命令

点击复制
官方npx clawhub@latest install epic-free-games
🇨🇳 镜像加速npx clawhub@latest install epic-free-games --registry https://cn.longxiaskill.com

技能文档

Auto-claim weekly free games from Epic Games Store.

自动领取 Epic Games Store 每周免费游戏。

⚠️ Risk Warning / 风险提示

English:

  • 账户 Risk: Automated tools 可能 violate Epic's Terms 的 服务. 使用 在 own risk. 账户 suspension possible.
  • Human Verification: hCaptcha/Cloudflare verification cannot bypassed automatically. Manual intervention 必填 当...时 prompted.
  • Educational Purpose: tool 对于 learning purposes 仅. 做 不 abuse .
  • 否 Warranty: 使用 在 own risk. author 不 responsible 对于 任何 consequences.

中文:

  • 账号风险:自动化工具可能违反 Epic 服务条款,使用风险自负。可能导致账号封禁。
  • 人机验证:无法自动绕过 hCaptcha/Cloudflare 验证,需要手动处理。
  • 仅供学习:本工具仅供学习研究使用,请勿滥用。
  • 免责声明:使用风险自负,作者不对任何后果负责。

Features / 功能特点

  • 2026 Latest Adaptation / 2026年最新适配 - Uses stable data-testid selectors / 使用稳定的 data-testid 选择器
  • Persistent 登录 / 持久化登录 - 登录 once, works forever (saves cookies) / 一次登录,永久生效(保存 Cookie)
  • 满 Claim Process / 完整领取流程 - 获取 → Place Order → Confirm / 获取 → 0元下订单 → 确认领取
  • Cron Support / 定时任务支持 - Auto-claim every Thursday / 每周四自动领取

Quick 开始 / 快速开始

# First time login (manual login required) / 首次登录(需要手动登录一次)
python scripts/claim.py --login

# Auto-claim free games / 自动领取免费游戏 python scripts/claim.py

# Show browser window (for captcha handling) / 显示浏览器窗口(用于处理验证码) python scripts/claim.py --headed

# View help / 查看帮助 python scripts/claim.py --help

Usage Steps / 使用步骤

1. 第一个 登录 / 首次登录

python scripts/claim.py --login

Opens browser window for manual Epic login. After login, auth state is saved to epic_auth.json.

打开浏览器窗口,手动登录 Epic 账号。登录完成后,登录状态会保存到 epic_auth.json

2. Auto Claim / 自动领取

python scripts/claim.py

Automatically:

  • Opens Epic free games page / 打开 Epic 免费游戏页面
  • Loads saved auth state / 加载保存的登录状态
  • Clicks "获取" 按钮 / 点击"获取"按钮
  • Clicks "Place Order" 对于 $0 purchase / 点击"下订单"完成 0 元购买
  • Confirms 成功 / 确认领取成功

3. Cron Task / 定时任务

Set up cron for weekly auto-claim:

设置定时任务,每周四自动领取:

# Every Thursday at 00:20 / 每周四 00:20 执行
20 0   4 cd /path/to/epic-free-games && python scripts/claim.py

CLI Arguments / 命令行参数

ArgumentDescription
--loginFirst-time login mode / 首次登录模式
--headedShow browser window / 显示浏览器窗口
--timeout NWait timeout in seconds / 等待超时时间(秒)
--auth-file FILEAuth state file path / 登录状态文件路径

Files / 文件说明

epic-free-games/
├── SKILL.md           # This file / 本说明文件
├── scripts/
│   └── claim.py       # Main script / 主脚本
└── epic_auth.json     # Auth state (auto-generated) / 登录状态缓存(自动生成)

Dependencies / 依赖

Install / 安装:

npm install -g agent-browser
agent-browser install

Limitations / 限制

  • Cloudflare/hCaptcha - Cannot bypass automatically, 使用 --headed 对于 manual handling / 无法自动绕过,使用 --headed 手动处理
  • 登录 Expiry - Re-run --登录 如果 会话 expires / 登录过期时重新运行 --登录
  • 已经 Owned - Script detects 和 skips owned games / 脚本会检测并跳过已拥有游戏

🔒 Security Best Practices / 安全最佳实践

IMPORTANT: skill 做 不 contain 任何 pre-filled authentication files.

重要:本技能不包含任何预填充的认证文件。

对于 Users / 用户须知

  • Generate Own Auth File / 自行生成认证文件
- Run python scripts/claim.py --登录 到 创建 own epic_auth.json - Never 分享 auth file 带有 others / 不要分享你的认证文件 - auth file contains sensitive credentials / 认证文件包含敏感凭证

  • Keep Auth File 私有 / 保护认证文件
- 添加 epic_auth.json.gitignore 如果 使用 git - 做 不 上传 到 公开 repositories / 不要上传到公开仓库

  • Isolated Environment / 隔离环境
- Consider running 在...中 sandbox 或 VM / 建议在沙箱或虚拟机中运行 - Review source code 之前 running / 运行前请审查源代码

对于 Developers / 开发者须知

  • Never Commit Sensitive Files / 不要提交敏感文件
   # These files should NEVER be in the distribution:
   # 以下文件绝对不应出现在分发包中:
   - epic_auth.json
   - browser-profile/
   - browser_profile/
   - .png (screenshots may contain sensitive info)
   
  • 使用 .gitignore / 使用 .gitignore
- skill includes .gitignore file 到 prevent accidental commits - 本技能包含 .gitignore 文件,防止意外提交

  • Security 第一个 / 安全第一
- 用户 credentials 私有 / 用户凭证是私密的 - Never bundle auth files 在...中 distributions / 分发时绝不要打包认证文件

Usage Tips / 使用技巧

Cloudflare 验证绕过

Epic 网站使用 Cloudflare 验证检测自动化访问。使用 --headed 显示浏览器窗口手动处理验证:

# 显示浏览器窗口 + 禁用自动化检测标志
agent-browser --headed --session epic \
  --args "--disable-blink-features=AutomationControlled" \
  open "https://store.epicgames.com/zh-CN/free-games"

推荐的手动 + 自动混合流程

  • 打开浏览器窗口 (自动)
  • 用户手动完成验证和登录 (手动)
  • 自动领取游戏 (自动)

agent-browser 常用命令

agent-browser --session epic snapshot -i  # 查看页面快照
agent-browser --session epic click "ref=e55"  # 点击元素
agent-browser --session epic close  # 关闭浏览器

领取流程中的常见问题 (2026-03-27 更新)

1. 获取按钮不在可视区域

问题描述:游戏页面的"获取"按钮可能不在首屏可视区域内,需要向下滚动才能看到。

解决方案

# 先滚动页面,再查找获取按钮
agent-browser --session epic scroll down 300
agent-browser --session epic snapshot -i --json
# 查找 "获取" 按钮的 ref 值,然后点击
agent-browser --session epic click "ref=e50"

最佳实践:每次打开游戏页面后,先截图确认"获取"按钮是否可见,如不可见则滚动页面。

2. 登录状态未持久化

问题描述:每次运行都需要重新登录,因为登录状态没有保存到文件。

解决方案

# 登录成功后,保存登录状态到文件
agent-browser --session epic state save "epic_auth.json"

# 下次运行时加载登录状态 agent-browser --session epic state load "epic_auth.json"

3. Cloudflare 验证拦截

问题描述:默认的自动化浏览器会被 Cloudflare 检测并拦截。

解决方案:使用 --args 参数禁用自动化检测标志:

agent-browser --session epic --headed \
  --args "--disable-blink-features=AutomationControlled" \
  open "https://store.epicgames.com/zh-CN/free-games"

4. 结账弹窗处理

问题描述:点击"获取"按钮后会弹出结账窗口,需要勾选协议复选框。

解决方案

# 等待结账弹窗出现
agent-browser --session epic wait 3000
# 勾选协议复选框(checkbox 类型元素)
agent-browser --session epic check "ref=e134"
# 点击"下订单"按钮
agent-browser --session epic click "ref=e132"

完整领取流程示例

# 1. 打开浏览器(带反自动化检测)
agent-browser --session epic --headed \
  --args "--disable-blink-features=AutomationControlled" \
  open "https://store.epicgames.com/zh-CN/free-games"

# 2. 等待页面加载 agent-browser --session epic wait 3000

# 3. 截图确认页面状态 agent-browser --session epic screenshot

# 4. 获取游戏链接 agent-browser --session epic eval "document.querySelector('a[href=\"游戏名\"]')?.href"

# 5. 打开游戏页面 agent-browser --session epic open "游戏链接"

# 6. 滚动到获取按钮位置 agent-browser --session epic scroll down 300

# 7. 点击获取按钮 agent-browser --session epic click "ref=获取按钮ref"

# 8. 处理结账弹窗 agent-browser --session epic wait 3000 agent-browser --session epic check "协议复选框ref" agent-browser --session epic click "下订单按钮ref"

# 9. 保存登录状态 agent-browser --session epic state save "epic_auth.json"

License / 许可证

MIT License - Use at your own risk / 使用风险自负

数据来源:ClawHub ↗ · 中文优化:龙虾技能库