Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Stop running `claude login` on every machine — share your Claude Code accounts between your devices

说明与用途

作者在多台机器上使用 Claude Code,但闲置机器的登录会过期,需要重复登录。通过 ccdeck,他添加多个账户,导出并在其他机器上导入,然后启用本地网络同步,自动刷新过期令牌。

问题

Claude Code logins expire on machines that are not used, forcing a weekly claude login on the idle machine.

结果

After setting up ccdeck and enabling local network sync, the author no longer needs to run claude login on idle machines; expired logins are refreshed automatically.

工作流

  • 1. Add multiple Claude accounts to one machine using ccdeck’s accounts panel.
  • 2. Export the accounts from that machine and paste the share text into another machine to import the logins.
  • 3. Enable the Local network sync in ccdeck so that expired logins are automatically copied from a machine that still has a valid copy.
  • 4. Configure which accounts each machine may share and pair the decks on the same network.

证据

That setup has one boring, recurring problem: a Claude login expires on the machine that has not used it for a while, and stays alive on the one that has.

来源

With two or three machines that is a claude login about once a week, and it always happens on the machine I am not sitting at.

来源

The share carries logins only: no projects, sessions, MCP servers or deck settings.

来源

The share is not encrypted. It is claude-swap's export, compressed and base64-encoded.

来源

With it on, decks on the same network find each other, pair, and a login that has expired on one machine is copied from another machine that still has a working copy, about once a minute.

来源

  • 记录日期: 2026-10-19T05:56:07.696Z