我看到 Claude Code 更新日志写,2.1.325 修了一个后台会话的问题:
Fixed background sessions started on your login using (and billing) an API key or token from the shell that started the background service
(之前用 登录开的后台会话,会拿启动后台服务那个 shell 里的 API key 或 token 来用,并按它计费。)
在终端 export 过 key、又用订阅登录开后台会话的人,到启动 Claude Code 的那个终端跑:
env | grep -o '^ANTHROPIC[^=]*'
看到 ANTHROPIC_API_KEY 这类名字,就先把 Claude Code 升到 2.1.325 或以上。这行只列变量名,key 本身不会打在屏幕上。