• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Danielhu229
V2EX  ›  程序员

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

  •  
  •   Danielhu229 · Oct 26, 2025 · 2633 views
    This topic created in 206 days ago, the information mentioned may be changed or developed.

    最近 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

    6 replies    2025-10-29 02:10:04 +08:00
    Dreamful
        1
    Dreamful  
       Oct 27, 2025
    有没有试试 ccswitch
    Alias4ck
        2
    Alias4ck  
       Oct 27, 2025   ❤️ 1
    direnv 不就解决了吗?
    Danielhu229
        3
    Danielhu229  
    OP
       Oct 27, 2025
    @Dreamful ccswitch 是 gui ,更喜欢命令行且可以多开不同配置
    Danielhu229
        4
    Danielhu229  
    OP
       Oct 27, 2025
    @Alias4ck 需要同目录快速切换或者启动多个不同供应商的时候,ccconfig 的优势就出来了。直接 ccconfig start <profile-name> 一键启动 claude code
    Alias4ck
        5
    Alias4ck  
       Oct 27, 2025
    @Danielhu229 (你说的这种,写一个 bash 命令也能解决
    Danielhu229
        6
    Danielhu229  
    OP
       Oct 29, 2025
    @Alias4ck bash 不如 npm install -g ccconfig 快吧,不用麻烦你自己写了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1163 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 18:14 · PVG 02:14 · LAX 11:14 · JFK 14:14
    ♥ Do have faith in what you're doing.