by millylee
支持 AnyRouter、AgentRouter 的多平台多账号签到,理论兼容所有基于 NewAPI、OneAPI 的平台。
# Add to your Claude Code skills
git clone https://github.com/millylee/anyrouter-check-inGuides for using ai agents skills like anyrouter-check-in.
Last scanned: 5/3/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-03T06:26:46.766Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}anyrouter-check-in is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by millylee. 支持 AnyRouter、AgentRouter 的多平台多账号签到,理论兼容所有基于 NewAPI、OneAPI 的平台。. It has 1,205 GitHub stars.
Yes. anyrouter-check-in passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/millylee/anyrouter-check-in" and add it to your Claude Code skills directory (see the Installation section above).
anyrouter-check-in is primarily written in Python. It is open-source under millylee on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh anyrouter-check-in against similar tools.
No comments yet. Be the first to share your thoughts!
多平台多账号自动签到,理论上支持所有 NewAPI、OneAPI 平台,目前内置支持 Any Router 与 Agent Router,其它可根据文档进行摸索配置。
推荐搭配使用Auo,支持任意 Claude Code Token 切换的工具。
维护开源不易,如果本项目帮助到了你,请帮忙点个 Star,谢谢!
用于 Claude Code 中转站 Any Router 网站多账号每日签到,一次 $25,限时注册即送 100 美金,点击这里注册。业界良心,支持 Claude Sonnet 4.5、GPT-5-Codex、Claude Code 百万上下文(使用 /model sonnet[1m] 开启),gemini-2.5-pro 模型。
点击右上角的 "Fork" 按钮,将本仓库 fork 到你的账户。
对于每个需要签到的账号,你需要获取:(可借助 在线 Secrets 配置生成器)
按照下方图片教程操作获得。
production 的环境production 环境进入环境配置页ANYROUTER_ACCOUNTS支持单个与多个账号配置,可选 name 和 provider 字段:
[
{
"name": "我的主账号",
"email": "account1@example.com",
"password": "account1_password"
},
{
"name": "备用账号",
"provider": "agentrouter",
"email": "account2@example.com",
"password": "account2_password"
}
]
字段说明:
email + password:推荐的浏览器登录方式,登录成功后会自动获取 cookies 与用户标识cookies:兼容旧版的 session cookies 登录方式api_user:session cookies 登录时用于请求头的 new-api-user 参数;邮箱密码登录可省略provider (可选):指定使用的服务商,默认为 anyroutername (可选):自定义账号显示名称,用于通知和日志中标识账号默认值说明:
provider 字段,默认使用 anyrouter(向后兼容)name 字段,会使用 Account 1、Account 2 等默认名称anyrouter 与 agentrouter 配置已内置,无需填写如果使用 session cookies 登录,接下来获取 cookies 与 api_user 的值。
通过 F12 工具,切到 Application 面板,拿到 session 的值,最好重新登录下,该值 1 个月有效期,但有可能提前失效,失效后报 401 错误,到时请再重新获取。

通过 F12 工具,切到 Network 面板,可以过滤下,只要 Fetch/XHR,找到带 New-Api-User,这个值正常是 5 位数,如果是负数或者个位数,正常是未登录。

你可以手动触发一次签到来测试:

假设你有两个账号需要签到,不指定 provider 时默认使用 anyrouter:
[
{
"cookies": {
"session": "abc123session"
},
"api_user": "user123"
},
{
"cookies": {
"session": "xyz789session"
},
"api_user": "user456"
}
]
如果你需要同时使用多个服务商(如 anyrouter 和 agentrouter):
[
{
"name": "AnyRouter 主账号",
"provider": "anyrouter",
"cookies": {
"session": "abc123session"
},
"api_user": "user123"
},
{
"name": "AgentRouter 备用",
"provider": "agentrouter",
"cookies": {
"session": "xyz789session"
},
"api_user": "user456"
}
]
默认情况下,anyrouter、agentrouter 已内置配置,无需额外设置。如果你需要使用其他服务商,可以通过环境变量 PROVIDERS 配置:
大多数情况下,只需提供 domain 即可,其他路径会自动使用默认值:
{
"customrouter": {
"domain": "https://custom.example.com"
}
}
如果服务商使用了不同的 API 路径、请求头或需要 WAF 绕过,可以额外指定:
{
"customrouter": {
"domain": "https://custom.example.com",
"login_path": "/auth/login",
"sign_in_path": "/api/checkin",
"user_info_path": "/api/profile",
"api_user_key": "New-Api-User",
"bypass_method": "waf_cookies",
"waf_cookie_names": ["acw_tc", "cdn_sec_tc", "acw_sc__v2"]
}
}
关于 bypass_method:
null:直接使用用户提供的 cookies 进行请求(适合无 WAF 保护的网站)"waf_cookies":使用 CloakBrowser 打开浏览器获取 WAF cookies 后再进行请求(适合有 WAF 保护的网站)注:
anyrouter和agentrouter已内置默认配置,无需在PROVIDERS中配置
PROVIDERS字段说明:
domain (必需):服务商的域名login_path (可选):登录页面路径,默认为 /login(仅在 bypass_method 为 "waf_cookies" 时使用)sign_in_path (可选):签到 API 路径,默认为 /api/user/sign_inuser_info_path (可选):用户信息 API 路径,默认为 /api/user/selfapi_user_key (可选):API 用户标识请求头名称,默认为 new-api-userbypass_method (可选):WAF 绕过方法
"waf_cookies":使用 CloakBrowser 打开浏览器获取 WAF cookies 后再执行签到null:直接使用用户 cookies 执行签到(适合无 WAF 保护的网站)waf_cookie_names (可选):绕过 WAF 所需 cookie 的名称列表,bypass_method 为 waf_cookies 时必须设置配置示例(完整):
{
"customrouter": {
"domain": "https://custom.example.com",
"login_path": "/auth/login",
"sign_in_path": "/api/checkin",
"user_info_path": "/api/profile",
"api_user_key": "x-user-id",
"bypass_method": "waf_cookies"
}
}
内置配置说明:
anyrouter:
bypass_method: "waf_cookies"(需要先获取 WAF cookies,然后执行签到)sign_in_path: "/api/user/sign_in"agentrouter:
bypass_method: "waf_cookies"(需要获取 acw_tc)sign_in_path: null(查询用户信息时自动签到)use_proxy: true重要提示:
PROVIDERS 是可选的,不配置则使用内置的 anyrouter 和 agentrouter内置的 agentrouter 默认 use_proxy: true。如果你的运行环境访问该平台不稳定,可以在 GitHub Actions 中配置 mihomo 订阅代理。
在仓库 Settings -> Environments -> production -> Environment secrets 中添加:
PROXY_SUBSCRIPTION_URL:Clash/Mihomo 订阅链接。设置后,workflow 会运行 scripts/setup_mihomo_proxy.sh,启动本地代理并写入 CHECKIN_PROXY_URL。本地运行时也可以直接使用已有代理:
CHECKIN_PROXY_URL=http://127.0.0.1:7890
PROVIDERS={"agentrouter":{"use_proxy":true}}
如果使用订阅脚本,默认会用 https://www.google.com/generate_204 测试代理连通性;也可以通过 PROXY_TEST_URL 覆盖。
脚本支持多种通知方式,可以通过配置以下环境变量开启,如果 webhook 有要求安全设置,例如钉钉,可以在新建机器人时选择自定义关键词,填写 AnyRouter。
EMAIL_USER: 发件人邮箱地址/STMP 登录地址EMAIL_PASS: 发件人邮箱密码/授权码EMAIL_SENDER: 邮件显示的发件人地址(可选,默认: EMAIL_USER)CUSTOM_SMTP_SERVER: 自定义发件人 SMTP 服务器(可选)EMAIL_TO: 收件人邮箱地址DINGDING_WEBHOOK: 钉钉机器人的 Webhook 地址FEISHU_WEBHOOK: 飞书机器人的 Webhook 地址WEIXIN_WEBHOOK: 企业微信机器人的 Webhook 地址PUSHPLUS_TOKEN: PushPlus 的 TokenSERVERPUSHKEY: Server 酱的 SendKeyTELEGRAM_BOT_TOKEN: Telegram Bot 的 TokenTELEGRAM_CHAT_ID: Telegram Chat IDGOTIFY_URL: Gotify 服务的 URL 地址(例如: https://your-gotify-server/message)GOTIFY_TOKEN: Gotify 应用的访问令牌GOTIFY_PRIORITY: Gotify 消息优先级 (1-10, 默认为 9)BARK_KEY: Bark 应用的 Key(APP 打开时即可看到)BARK_SERVER: 自建 Bark 服务器地址 (可选,默认: https://api.day.app)配置步骤:
如果签到失败,请检查:
如果你需要在本地测试或开发,请按照以下步骤设置:
# 安装所有依赖
uv sync --dev
# 安装 CloakBrowser 浏览器
uv run python -m cloakbrowser install
# 如需使用本地浏览器,可设置 CLOAKBROWSER_BINARY_PATH=/path/to/browser
# 创建 .env 文件并配置(注意:JSON 必须是单行格式)
# 示例:
# ANYROUTER_ACCOUNTS=[{"name":"账号1","email":"your@email.com","password":"your_password"}]
# PROVIDERS={"agentrouter":{"domain":"https://agentrouter.org"}}
# PROXY_SUBSCRIPTION_URL=https://example.com/sub?token=xxx
# CHECKIN_PROXY_URL=http://127.0.0.1:7890
# 运行签到脚本
uv run checkin.py
uv sync --dev
# 浏览器相关测试或本地登录可安装 CloakBrowser,或设置 CLOAKBROWSER_BINARY_PATH 指向本地浏览器
uv run python -m cloakbrowser install
# 运行测试
uv run pytest tests/
# 查看测试覆盖率
uv run pytest tests/ --cov=. --cov-report=html
欢迎贡献代码!在提交 Pull Request 之前,请阅读贡献指南。
本项目使用以下工具确保代码质量:
所有 Pull Request 会自动运行以下检查:
# 安装开发依赖
uv sync --dev
# 安装 pre-commit 钩子
uv run pre-commit install
# 运行代码检查
uv run ruff check .
uv run ruff format .
uv run mypy .
uv run bandit -r . -c pyproject.toml
# 运行测试
uv run pytest tests/ --cov=.
本脚本仅用于学习和研究目的,使用前请确保遵守相关网站的使用条款.