Skip to content

Anyrouter Check In

支持 AnyRouter、AgentRouter 的多平台多账号签到,理论兼容所有基于 NewAPI、OneAPI 的平台。

Install

$git clone https://github.com/millylee/anyrouter-check-in

Install command taken from the project's README or registry entry. Always review code before running it.

Any Router 多账号自动签到

多平台多账号自动签到,理论上支持所有 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 模型。

功能特性

  • ✅ 多平台(兼容 NewAPI 与 OneAPI)
  • ✅ 单个/多账号自动签到
  • ✅ 多种机器人通知(可选)
  • ✅ 绕过 WAF 限制

使用方法

1. Fork 本仓库

点击右上角的 "Fork" 按钮,将本仓库 fork 到你的账户。

2. 获取账号信息

对于每个需要签到的账号,你需要获取:(可借助 在线 Secrets 配置生成器)

  1. Cookies: 用于身份验证
  2. API User: 用于请求头的 new-api-user 参数(自己配置其它平台时该值需要注意匹配)

获取 Cookies:

  1. 打开浏览器,访问 https://anyrouter.top/
  2. 登录你的账户
  3. 打开开发者工具 (F12)
  4. 切换到 "Application" 或 "存储" 选项卡
  5. 找到 "Cookies" 选项
  6. 复制所有 cookies

获取 API User:

按照下方图片教程操作获得。

3. 设置 GitHub Environment Secret

  1. 在你 fork 的仓库中,点击 "Settings" 选项卡
  2. 在左侧菜单中找到 "Environments" -> "New environment"
  3. 新建一个名为 production 的环境
  4. 点击新建的 production 环境进入环境配置页
  5. 点击 "Add environment secret" 创建 secret:
    • Name: ANYROUTER_ACCOUNTS
    • Value: 你的多账号配置数据

4. 多账号配置格式

支持单个与多个账号配置,可选 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 (可选):指定使用的服务商,默认为 anyrouter
  • name (可选):自定义账号显示名称,用于通知和日志中标识账号

默认值说明:

  • 如果未提供 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 位数,如果是负数或者个位数,正常是未登录。

5. 启用 GitHub Actions

  1. 在你的仓库中,点击 "Actions" 选项卡
  2. 如果提示启用 Actions,请点击启用
  3. 找到 "AnyRouter 自动签到" workflow
  4. 点击 "Enable workflow"

6. 测试运行

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

  1. 在 "Actions" 选项卡中,点击 "AnyRouter 自动签到"
  2. 点击 "Run workflow" 按钮
  3. 确认运行

执行时间

  • 脚本每 6 小时执行一次(1. action 无法准确触发,基本延时 1~1.5h;2. 目前观测到 anyrouter 的签到是每 24h 而不是零点就可签到)
  • 你也可以随时手动触发签到

注意事项

  • 请确保每个账号的 cookies 和 API User 都是正确的
  • 可以在 Actions 页面查看详细的运行日志
  • 支持部分账号失败,只要有账号成功签到,整个任务就不会失败
  • 报 401 错误,请重新获取 cookies,理论 1 个月失效,但有 Bug,详见 #6
  • 请求 200,但出现 Error 1040(08004):Too many connections,官方数据库问题,目前已修复,但遇到几次了,详见 #7

配置示例

基础配置(向后兼容)

假设你有两个账号需要签到,不指定 provider 时默认使用 anyrouter:

[
  {
    "cookies": {
      "session": "abc123session"
    },
    "api_user": "user123"
  },
  {
    "cookies": {
      "session": "xyz789session"
    },
    "api_user": "user456"
  }
]

多服务商配置

如果你需要同时使用多个服务商(如 anyrouter 和 agentrouter):

Similar plugs

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

PluginDev tools+1,072 this week

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro,…

Explore related