Margrop
Articles266
Tags689
Categories6

Categories

1password 24GB VRAM 2K 3.6 Flash 30B dense 4-bit 量化 6-DoF SLAM AC ACP AI & Economy ATLAS AI Agent AI Coding Assistant AI Tech AI Workflow AI tutor AI 安全 AI 工程 AI 应用 AI 日记 AI 生产力 AI编程助手 ALTK-Evolve AMIE AP API API 定价 API 降价 ARC-AGI-3 ASR ATEM chat 模板 AUTOMATIC1111 Agent Agent Harness Agent Memory Agent 入侵 Agent 可靠性 Agent 工程 Agent 架构 Agent 检索 Agent 沙箱 Agent 系统 Agent 训练 Agent 记忆 Agent 路由 Agentic AI Agentic tools Ai2 Alertmanager AllenAI Android 17 Antigravity AppDaemon AppWorld Aqara Astra Async GRPO Attention Baseten Benchmark CC-Switch CI/CD CLI Tools CLI工具 CPU 推理 Cache Hit Rate Caddy ChatGPT Claude Code Claude Sonnet ClawLoader Code Interpreter CodeMender Codex Coding Agent ComfyUI Computer Use Cookie 认证 Cosmos-H-Dreams Cost Optimization Cron Cybersecurity DFIR DSpark Date DeepSeek DeepSeek V4 Flash Diagrams.net Diary Diffusers Diffusion Docker Efficiency Tools Embedding English FSDP2 Fable 5 Fireworks AI FlashAttention FlashDreams Function Calling Funes GGUF GLM 5.2 GLM-5.2 GPT-4.1 GPT-5.6 GPT-5.6 Sol GPT-Live GPT-Live-1 GPT-Red GPU 加速 GPU 性能分析 GRPO Gateway Gemini Gemini 3.5 Flash Gemini 3.7 Flash Gemini API Gemini CLI Gemini Omni Flash Gemma 4 12B Gemma Translator Gemma4 GitHub Actions Google Google AI Google Data Commons Google DeepMind Google Research Google Sheets Grabette Gradio Gradio Workflow Gripette HA HADashboard HF Security Incident Hailuo Hermes Hexo HomeAssistant Hugging Face IBM Granite IBM Research Inference Providers Isaac Lab JSON Output Java KV cache Kimi K3 Kubernetes LFM2.5 LFM2.5-VL LLM Router LLM 安全 LLM 工程 LVM‑Thin Late Interaction LeRobot Linux Liquid AI LiquidAI Live Translate LoRA Luna MCP MTP MacOS Magpie TTS Managed Agents Meta Microsoft 365 Copilot MiniMax Mistral Shieldstral Model Routing MuJoCo Warp Multi-Agent Multi-Vector Muse Glimmer MySQL NAS NIM NVIDIA NeMo Automodel Nemotron 3 Embed NeoMME Newton Nginx Node.js Nunchaku OCR OOM OlmoEarth On-device AI Open Source OpenAI OpenAI 兼容 OpenClaw OpenCode OpenResty OpenWrt PII 检测 Physical AI Pollen Robotics Portainer PostgreSQL ProcessOn Project Astra Prometheus Prompt Caching Prompt Injection Proxmox VE PyTorch Qwen3 Qwen3-VL Qwen3.6 RAG RPC RTEB Real-Time Inference Red Teaming Responses API SNAP SOCKS5 SPED SVDQuant Schema Scientific Computing Self-Forcing Distillation Sentence Transformers Session Sheets canvas Shell Sol Storage Buckets Strands Agents Subagent Surgical Robotics TRL TTS Terra Think button TimeMachine Tokenizer Transformers TutorMoments UML Uptime Kuma V4-Pro VPS Voice Agent VoiceEQ WARP WebRTC WebSocket Windows World Foundation Model agent agentic aligenie aliyun annotation aop autofs backup bash bitwarden boot brew browser budget control centos cert certbot charles chat chrome classloader client clone closures cloudflare command commit commoditization container crontab cyber capability demo dependency deploy developer devtools dll dns docker domain download drafter draw drawio dsm dump dylib environment hooks exception fail2ban feign firewall-cmd flow free tier frontier hosted model frp frpc frps fuckgfw full-duplex function gfw git github gperftools gridea grub guardrail lockout gvt-g hacs havcs heap hello hexo hibernate hidpi hoisting homeassistant hosts html htmlparser https huggingface_hub iKuai iMessage image img img2kvm immortalwrt import index inference cost install intel io ios ip iptables iso java javascript jni jnilib jpa js json jsonb jupter jupyterlab jvm k8s kernel key kvm lastpass launchctl learning letsencrypt linux llama.cpp low-code lvm mac mariadb markdown maven md5 microcode mirror modules monitor mount mstsc multimodal mysql n5105 network nfs node node-red nodejs nohup notepad++ npm nssm ntp oop open weights openfeign openssl os ovz packet capture pdf pem perf pip plugin png powerbutton print pro productive struggle pve pvekclean python qcow2 qemu qemu-guest-agent rar reasoning control reasoning slider reboot reflog remote remote desktop renew repo resize retina router runtime safari sata scaffolding scheduled triggers scipy-notebook scoping scp self-play server serverless inference silent test simulated student so speculative decoding spk spring springboot springfox ssh ssl stash string support svg svn swagger sync synology systemctl systemd template terminal txt ubuntu ui undertow unlocker upgrade vLLM vhd vim vm vmdk web windows with worker xml yum zai-org/GLM-5.2 zip 一致性评测 上下文压缩 上下文工程 交换机 人才争夺 人机协作 代理 企业 AI 优化 低延迟 供应链 健康检查 光猫 免费层 内存 内存优化 内网渗透 分布式推理 分布式训练 医疗 AI 升级 卫星影像 反向代理 反诉 向量检索 启动 告警 告警优化 图像生成 地球观测 地理空间推理 复盘评测 夏令时 多 token 预测 多向量检索 多智能体 多模型编排 多模态 多模态 AI 多模态 API 多模态 Agent 多模态检索 多语言 多语言 AI 大厂人才战 大模型评测 天猫精灵 安全 安全事件 安全对齐 安装 定时任务 实时语音 客户端 SDK 容器 导入 小米 屏幕理解 工作流编排 工具审计 工具调用 工具调用拦截 工程团队 工程实践 工程笔记 常用软件 应用市场 延迟优化 开权重 开源权重 开源模型 异常 异步任务 异步委派 微信 心跳 性能优化 性能捕捉 成本优化 成本控制 扩散模型 技术 抓包 拒答校准 按 provider 优先级 排查 推理加速 推理成本 推理速度 推理预算 描述文件 提示词敏感性 故障排查 效率工具 教育数据开源 教育评测 数据工作流 数据治理 数据流 数据集偏差 文本编码器 旁路由 日志分析 日记 时区 显卡虚拟化 智能家居 智能音箱 服务管理 本地 agent 本地推理 机器人仿真 机器人学习 机器人数据采集 架构 模块 模型推理 模型评测 模型路由 残存访问 流式推理 流程 流程图 浏览器 混合专家 漫游 火绒 生成式影像 电信 画图 监控 监控系统 监管 知识蒸馏 磁盘 科研自动化 稀疏注意力 立体声 端侧 AI 端侧推理 端口 端口冲突 端口扫描 结构化输出 续期 网关 网络 网络安全 网络风暴 群晖 脚本 脚本优化 腾讯 自动化 自动恢复 自动攻击 自部署 苹果 虚拟机 视觉语言模型 视频生成 视频问诊 认证 证书 评测 评测基准 评测方法学 诉讼 语音 AI 语音 Agent 语音识别 超时 路由 路由器 软件管家 软路由 运维 运维监控 连接保活 连接问题 通信机制 通知 邮件漏发 部署 配置 量化 量子计算 钉钉 镜像 镜像源 长上下文 长连接 门窗传感器 问题排查 防火墙 阿里云 阿里源 集客 飞书

Hitokoto

Archive

Managing Five AI Coding Assistants Simultaneously: How I Escaped Configuration Hell with CC Switch CLI

Managing Five AI Coding Assistants Simultaneously: How I Escaped Configuration Hell with CC Switch CLI

Managing Five AI Coding Assistants Simultaneously: How I Escaped Configuration Hell with CC Switch CLI

You probably won’t believe this, but just last week, I was simultaneously using five AI coding assistants — Claude Code, Codex, OpenCode, OpenClaw, and Gemini CLI.

Why so many? Because different tools excel at different things. Some are better at code review, others generate test cases faster, and some integrate better with my workflow.

But then one day, my go-to API reseller sent an email: “Hey, we’re changing our endpoint! Please update your configuration.”

I read that email and felt my stomach drop.

Five tools. Five configuration formats. Five different file paths.

This is the story of how I climbed out of “Configuration Hell” — and found CC Switch CLI along the way.

Background: Five Tools, Five “Dialects”

Let me show you just how messy my configuration files used to be:

Claude Code uses ~/.claude/settings.json, with field names like anthropicApiKey and apiUrl.
Codex uses ~/.codex/config.toml, with field names like api_key and base_url.
Gemini CLI is the special one — it uses ~/.gemini/.env environment variable format.
OpenCode uses ~/.config/opencode/opencode.json, but the format isn’t quite the same as Claude’s.
OpenClaw has its own ~/.openclaw/openclaw.json configuration system.

Every time I needed to switch API providers, I had to:

  1. Open one config file
  2. Check the docs to confirm the field name
  3. Modify it
  4. Save
  5. Repeat the above four times

This isn’t coding — this is filling out forms.

What’s even more annoying is that some field names look similar but aren’t quite the same — base_url vs apiUrl vs endpoint. Every time I had to double-check I hadn’t made a mistake.

Before vs After CC-Switch
Figure 1: My configuration file management before CC Switch — scattered everywhere, all different formats

The Pain Point: How Long Does It Take to Switch Providers?

Let me calculate the time:

Suppose I need to switch all tools from “Reseller A” to “Reseller B”:

  • Claude Code: Open ~/.claude/settings.json, find the apiUrl field, modify, save → 3 minutes
  • Codex: Open ~/.codex/config.toml, find base_url, modify, save → 3 minutes
  • Gemini CLI: Modify the environment variables in ~/.gemini/.env → 2 minutes
  • OpenCode: Open ~/.config/opencode/opencode.json, find the corresponding field → 3 minutes
  • OpenClaw: Open ~/.openclaw/openclaw.json, find the corresponding field → 3 minutes

Total: 14 minutes. And that’s the “smooth” scenario. If you accidentally modify the wrong field, troubleshooting adds even more time.

The scary part: if you have multiple environments (office, home, different projects), you’d have to repeat this for each one.

This isn’t coding — this is running errands.

The Turning Point: Discovering CC Switch CLI

After reaching my limit, I started searching for “AI coding assistant configuration management tools.” That’s when I found two projects:

  1. farion1231/cc-switch — The original desktop GUI version, written in Rust + Tauri
  2. SaladDay/cc-switch-cli — The CLI version, same functionality but better suited for someone like me who works over SSH

I chose cc-switch-cli because:

  • Most of my work happens on remote servers
  • Command-line operations can be scripted and automated
  • The TUI interface fits perfectly with my workflow

Installation is a single command:

1
curl -fsSL https://github.com/SaladDay/cc-switch-cli/releases/latest/download/install.sh | bash

After installation, just type cc-switch to enter the interactive TUI interface.

What Exactly Is CC Switch CLI?

CC Switch CLI is a cross-platform command-line tool written in Rust, designed specifically to unified management of Provider configurations for multiple AI coding assistants.

Supported applications:

  • Claude Code (default)
  • Codex
  • Gemini CLI
  • OpenCode
  • OpenClaw

It has six core functional modules:

Module What It Does
🔌 Provider Management One-click API provider switching, with speed testing
🛠️ MCP Server Management Unified management of MCP configurations across tools
💬 Prompts Management Backup and switch System Prompts
🎯 Skills Management Install and manage community Skills extensions
🌉 Proxy Management Local multi-app proxy routing control
⚙️ Configuration Management Backup, restore, WebDAV sync

Feature Overview
Figure 2: CC Switch CLI’s six core functional modules

Deep Dive into Core Features

1. Provider Management — One-Click Provider Switching

This is CC Switch’s core feature. Say I have multiple API provider configurations:

1
2
3
4
5
6
7
8
9
10
11
# List all configured providers
cc-switch provider list

# View the currently active provider
cc-switch provider current

# Switch to a specified provider
cc-switch provider switch apiyi-proxy

# Test provider API latency
cc-switch provider speedtest apiyi-proxy

CC Switch stores all provider information in a SQLite database (~/.cc-switch/cc-switch.db), then generates the corresponding configuration files for different applications.

For example, when switching to Claude Code, it updates ~/.claude/settings.json; when switching to Codex, it updates ~/.codex/config.toml. You don’t need to know what each tool’s configuration file looks like — CC Switch handles everything.

Provider Switch Workflow
Figure 3: CC Switch’s complete workflow when executing a Provider switch

2. Cross-Application Unified Management

This is the feature that surprised me most — one --app parameter handles all tools.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# List Claude's providers
cc-switch --app claude provider list

# List Codex's providers
cc-switch --app codex provider list

# View OpenClaw's providers
cc-switch --app openclaw provider list

# Sync MCP servers to Codex
cc-switch --app codex mcp sync

# View Gemini's prompts
cc-switch --app gemini prompts list

This means: No matter how many AI coding tools you use, you can operate them all with the same set of commands.

3. Prompts Management — Prompts You Won’t Lose

Have you ever spent hours crafting the perfect System Prompt, only to lose it when you switched environments?

CC Switch’s Prompts management can:

  • Backup System Prompts for all applications (CLAUDE.md, AGENTS.md, GEMINI.md, etc.)
  • Create multiple prompt presets and switch between them anytime
  • Sync to the cloud via WebDAV, so you won’t lose anything even when switching computers
1
2
3
4
5
6
7
8
9
10
11
# List all prompt presets
cc-switch prompts list

# Create a new preset
cc-switch prompts create "Code Review Mode"

# Activate a preset
cc-switch prompts activate 代码审查模式

# Export to file
cc-switch config export ~/cc-switch-backup.json

4. Skills Management — One-Click Community Skills Installation

CC Switch also supports Skills extension management. Find a good Skill on GitHub? Install and enable it with one command:

1
2
3
4
5
6
7
8
9
10
11
# Search for available Skills
cc-switch skills discover "testing"

# Install
cc-switch skills install superpower-tdd

# Enable the Skill
cc-switch skills enable superpower-tdd --app claude

# Sync to application directory
cc-switch skills sync

This is way more convenient than manually cloning repos and copying files to the correct directories.

5. Configuration Backup & WebDAV Sync

CC Switch automatically backs up configurations to ~/.cc-switch/backups/, keeping the last 10 versions.

1
2
3
4
5
6
7
8
9
10
11
12
# Create a backup
cc-switch config backup --name "before-provider-switch"

# Restore a backup
cc-switch config restore

# Configure WebDAV sync (supports services like Nutstore)
cc-switch config webdav set \
--base-url https://dav.example.com \
--username user \
--password pass \
--enable

With WebDAV sync, my provider configurations from the office automatically sync when I open my laptop at home.

6. Environment Checks

1
2
3
4
5
# Check which AI CLI tools are installed locally
cc-switch env tools

# Check for environment variable conflicts
cc-switch env check

This feature helped me discover ANTHROPIC_API_KEY environment variable conflicts multiple times — some tools set the API Key in environment variables, which caused the configuration file settings to be ignored.

Real-World Usage Experience

After using it for a week, here’s my honest assessment:

Pros:

  1. Drastically reduces repetitive operations: Used to take 14 minutes to switch providers, now one command does it
  2. Centralized configuration management: All provider information in one SQLite database, everything at a glance
  3. High degree of automation: Backup, restore, and sync can all be scripted
  4. Friendly interactive TUI: Don’t remember a command? Just type cc-switch for menu navigation
  5. Multi-language support: Can switch between Chinese and English interfaces

Cons:

  1. Learning curve: New users need to understand how the --app parameter works
  2. Some documentation is outdated: GitHub’s README is updated, but some third-party docs haven’t kept up
  3. No GUI: Users accustomed to desktop apps might find it inconvenient (but I prefer CLI)

My Daily Routine Now

After using CC Switch, my workflow now looks like this:

Arriving at the office in the morning:

1
2
# Check which provider I'm using today
cc-switch provider list

Switching providers:

1
2
3
4
5
6
# One-click switch
cc-switch provider switch rightcode

# Verify success
cc-switch --app claude provider current
cc-switch --app codex provider current

Backing up configuration:

1
2
# Automatic backup
cc-switch config backup

The whole process takes less than a minute, and there’s no risk of editing the wrong file.

Reflection: Configuration Management Is a Discipline

The more AI coding assistants I use, the more I realize: Configuration management is a discipline in itself.

More tools means each tool has its own configuration file format — this is historical baggage, but it’s also reality. However, we can’t be led around by reality.

CC Switch CLI’s solution is clear: So you don’t have to remember what each tool’s configuration file looks like — one set of commands handles everything.

It’s not perfect, but it’s the closest thing I’ve found to achieving “unified management.” If you’re also using multiple AI coding assistants, give it a try.

After all, we’re paying for AI’s capabilities — not paying with our time filling out forms.


Author: An engineer who climbed out of Configuration Hell

Image Descriptions:

CC Switch Central Hub
Image 1: CC Switch as a central hub, unified management of multiple AI coding assistant configurations

TUI Interface Screenshot
Image 2: CC Switch interactive TUI interface, supports menu navigation and real-time status viewing

本文阅读量 --
Author:Margrop
Link:https://blog.margrop.com/post/2026-05-09-cc-switch-cli-ai-cli-provider-switch-en/
版权声明:本文采用 CC BY-NC-SA 3.0 CN 协议进行许可