# 使用 Homebrew, Nix, scoop, winget 安装 cc-switch-cli

查看 cc-switch-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:cc-switch-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cc-switch-cli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cc-switch
```

  证据: nixpkgs package indexes: pkgs/by-name/cc/cc-switch/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install extras/cc-switch
```

  证据: Scoop official bucket manifest trees: bucket/cc-switch.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id farion1231.CC-Switch -e
```

  证据: Windows Package Manager source index: farion1231.CC-Switch from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:cc-switch-cli
- **软件包管理器:** Homebrew
- **版本:** 5.10.0
- **来源摘要:** All-in-one assistant tool for Claude Code, Codex, Gemini, OpenCode and OpenClaw
- **主页:** <https://github.com/SaladDay/cc-switch-cli>
- **仓库:** <https://github.com/SaladDay/cc-switch-cli>
- **最后更新:** 2026-08-02T11:57:39Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cc-switch (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 5.10.0
## 项目历史与用法

CC-Switch CLI is a Rust TUI/CLI manager for switching and managing provider, account, MCP, prompt, skill, proxy, and session configuration across AI coding assistants.

### 项目历史

The official README describes cc-switch-cli as a CLI fork of CC-Switch, crediting the original architecture and core functionality to farion1231/cc-switch while adding command-line and TUI workflows.

### 采用历史

The supplied package facts show Homebrew, Nix, Scoop, and winget packaging. The README also documents direct release tarballs/zips for macOS, Linux, and Windows plus Homebrew installation.

### 使用方式

Typical commands list and switch providers, manage Codex/Claude/Gemini/OpenCode/Hermes/OpenClaw configuration, inspect OAuth accounts, sync MCP servers, review sessions, manage skills and prompts, and enable local proxy routes.

### 为什么软件包爱好者会关心

It is a package-manager-friendly wrapper around the messy local state of multiple AI CLIs. For package nerds, the interesting bit is that most persistent state is centralized in ~/.cc-switch, with live files synced out to each target application only when needed.

### Related projects

- CC-Switch, Claude Code, Codex, Gemini CLI, OpenCode, Hermes, and OpenClaw.

### 来源

- <https://api.github.com/repos/SaladDay/cc-switch-cli>
- <https://github.com/SaladDay/cc-switch-cli>
- <https://github.com/SaladDay/cc-switch-cli#readme>
- <https://formulae.brew.sh/api/formula/cc-switch-cli.json>


## 安全说明

没有找到 cc-switch-cli 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.cc-switch/cc-switch.db, ~/.cc-switch/settings.json, ~/.cc-switch/config.json, $CC_SWITCH_CONFIG_DIR/cc-switch.db, $CC_SWITCH_CONFIG_DIR/settings.json, $CC_SWITCH_CONFIG_DIR/config.json

## Credential files

- Unix: ~/.cc-switch/cc-switch.db, $CC_SWITCH_CONFIG_DIR/cc-switch.db
## 其他软件包管理器记录

- Nix - cc-switch: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/cc/cc-switch/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - extras/cc-switch: installed executable or alias match | Scoop official bucket manifest trees: bucket/cc-switch.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1
- winget - farion1231.CC-Switch: installed executable or alias match | Windows Package Manager source index: farion1231.CC-Switch from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/cc-switch-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cc-switch-cli.yml)


## 来源

- pkg.so package database
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
