Skip to content

CCRouter 0.2.0

Latest

Choose a tag to compare

@HiderX HiderX released this 06 Nov 02:36

English

  • Switch accounts mid-conversation: continue a conversation under another account from the panel or with --switch-account. There is still only one copy of your conversations: each account's conversation folders are now shared with ~/.claude, so a switch moves no files. Quit the conversation first. The first request after a switch rebuilds the prompt cache.
  • Recent conversations open inline in the panel. Each row shows its account; click the account to continue on another one.
  • Automatic scheduling, optional and off by default: new conversations pick an account by strategy (5h/7d optimal, round robin or 5h max), with a threshold and an on/off choice per account. A resumed conversation moves only when its account reaches its threshold, and you can turn that off. Set it up in the panel or with ccrouter schedule. While it is on, the menu bar app runs claude -p /usage every 10 minutes. Before you turn it on, check that it fits the terms of each account's plan.
  • The exit IP now follows Claude's own route: CCRouter reads Cloudflare's trace page on api.anthropic.com, the host Claude Code talks to, instead of ipify and ipinfo. The request carries no account information, and it is the only one CCRouter sends to an Anthropic domain. The panel catches a change within a minute, and refresh always probes again.

Upgrading: the next time you launch an account through ccrouter, its conversation folders move into ~/.claude. Files are moved, not copied, and this waits until that account has no Claude running.

简体中文

  • 对话中途换账户:在面板里或用 --switch-account,换另一个账户继续同一个对话。对话仍然只有一份:各账户的对话目录现在与 ~/.claude 共享,换号不移动任何文件。换号前请先退出该对话。换号后的第一次请求会重建提示缓存。
  • 最近对话在面板里原地展开。每一行显示所属账户,点账户名可以换到其他账户继续。
  • 自动调度(可选,默认关闭):新对话按策略选账户(5h/7d 最优、轮询或 5h 最大利用),每个账户可以单独设置阈值和是否参与。续聊只有在原账户达到阈值时才换号,这一项也可以关闭。在面板里或用 ccrouter schedule 设置。开启后,菜单栏每 10 分钟运行一次 claude -p /usage。开启前请自行确认它符合各账户所属套餐的条款。
  • 出口 IP 现在跟随 Claude 自己的线路:CCRouter 改为读取 api.anthropic.com(Claude Code 连接的域名)上的 Cloudflare 诊断页面,不再使用 ipify 和 ipinfo。这个请求不带任何账户信息,也是 CCRouter 唯一发往 Anthropic 域名的请求。出口变化后一分钟内就能显示,点刷新一定会重新查询。

升级说明: 下次用 ccrouter 启动某个账户时,它的对话目录会合并到 ~/.claude。文件只移动不复制,并且会等该账户的 Claude 全部退出后才进行。

Install / 安装: Apple Silicon, macOS 13+. Unzip, move CCRouter.app to /Applications, then run once / 解压后移到「应用程序」,然后运行一次:

xattr -dr com.apple.quarantine /Applications/CCRouter.app
open /Applications/CCRouter.app