一键指定镜像提供商启动 Claude Code

2025 年 10 月 26 日
 Danielhu229

最近 ClaudeCode 封号严重,Claude 镜像提供商层出不穷。切换配置很麻烦也很让人恼火,写了个工具直接指定镜像提供商启动

# Add configurations
ccconfig add work
ccconfig add personal

# Start Claude Code directly with a specific profile
ccconfig start work              # During work hours
ccconfig start personal          # After work

就这么简单,用 npm 安装就行 npm install -g ccconfig, 项目已开源,欢迎 Star: https://github.com/Danielmelody/ccconfig

2438 次点击
所在节点    程序员
6 条回复
Dreamful
2025 年 10 月 27 日
有没有试试 ccswitch
Alias4ck
2025 年 10 月 27 日
direnv 不就解决了吗?
Danielhu229
2025 年 10 月 27 日
@Dreamful ccswitch 是 gui ,更喜欢命令行且可以多开不同配置
Danielhu229
2025 年 10 月 27 日
@Alias4ck 需要同目录快速切换或者启动多个不同供应商的时候,ccconfig 的优势就出来了。直接 ccconfig start <profile-name> 一键启动 claude code
Alias4ck
2025 年 10 月 27 日
@Danielhu229 (你说的这种,写一个 bash 命令也能解决
Danielhu229
2025 年 10 月 29 日
@Alias4ck bash 不如 npm install -g ccconfig 快吧,不用麻烦你自己写了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://study.congcong.us/t/1168427

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX