# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cc-switch-cli>
- **版本:** 5.9.3
- **来源摘要:** 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>
- **上游文档:** <https://github.com/SaladDay/cc-switch-cli#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/SaladDay/cc-switch-cli/archive/refs/tags/v5.9.3.tar.gz>
- **最后更新:** 2026-07-24T14:56:22Z
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- cc-switch (cli)
- cc-switch (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 5.9.3
- 管理器更新时间: 2026-07-24
- 本地数据: OK
- 上游仓库: https://github.com/SaladDay/cc-switch-cli
- 检测到的最新版本: v5.9.3 (当前)
## 项目历史与用法

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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cc-switch-cli
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- 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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [MCP tool packages](https://www.automicvault.com/zh-hans/pkg/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [AI and agent packages](https://www.automicvault.com/zh-hans/pkg/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [claude-squad](https://www.automicvault.com/zh-hans/pkg/brew/claude-squad/) - Shares av.db curated category or tags: ai, claude-code, cli, codex, orchestration.
- [advai-cli](https://www.automicvault.com/zh-hans/pkg/brew/advai-cli/) - Shares av.db curated category or tags: ai, cli, orchestration.
- [aoe](https://www.automicvault.com/zh-hans/pkg/brew/aoe/) - Shares av.db curated category or tags: ai, cli, orchestration.
- [cc-connect](https://www.automicvault.com/zh-hans/pkg/brew/cc-connect/) - Shares av.db curated category or tags: ai, cli, orchestration.
- [cliproxyapi](https://www.automicvault.com/zh-hans/pkg/brew/cliproxyapi/) - Shares av.db curated category or tags: ai, cli, codex, gemini.
- [dstack](https://www.automicvault.com/zh-hans/pkg/brew/dstack/) - Shares av.db curated category or tags: ai, cli, orchestration.
- [fabric-ai](https://www.automicvault.com/zh-hans/pkg/brew/fabric-ai/) - Shares av.db curated category or tags: ai, cli, orchestration.
- [gastown](https://www.automicvault.com/zh-hans/pkg/brew/gastown/) - Shares av.db curated category or tags: ai, cli, orchestration.
- [cc-viewer](https://www.automicvault.com/zh-hans/pkg/npm/cc-viewer/) - Local package facts share a topical domain. Shared terms: ai, claude, claude-code, cli, code.

## Combined YAML source

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


## 来源

- Nucleus package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
