@firedmosquito831 / my-claude-code
将Claude Code和其他编码代理通过一个路由到任何模型提供商 本地代理,带有用于路由、回退链、推理控制的仪表板, 凭证轮换和请求分析。
服务器是一个Python包。这个npm包是 项目自己的摘要验证安装脚本-它不会重新实现它 它不提供服务器的第二个副本。
安装这台机器实际需要的东西
npm install -g @firedmosquito831/my-claude-code
全局安装首先查看机器,然后安装最新的 释放正确的形状:
- 总是服务器,透过官方安装程式(
install.ps1/install.sh),这带来了uvPython 3.14等mcc-*命令; - 本机桌面应用程序,其中有一个桌面会话 - - - - - -
Windows和macOS总是用,Linux只用
DISPLAY或者WAYLAND_DISPLAY. 通过SSH,在CI中,在无头服务器上或在WSL中-带或不带显示, 因为Windows PC的桌面应用程序是Windows的,它是安装的 服务器单独,甚至没有安装程序的桌面标志,所以没有 快捷键是为不存在的屏幕创建的。
它在执行任何操作之前打印一行,说明它的决定和原因
(npm只显示钩子的输出 --foreground-scripts)。
使用系统节点、sudo和用户级前缀
My Claude Code安装 每个用户。的系统节点,其全局文件夹
属于根, sudo npm install -g 给你 mcc 命令和虚无
否则:作为root用户运行,钩子不为root安装服务器
(不能使用的根拥有的副本,以及端口上的根服务器)和
服务器由您的第一个安装 mcc ——如你,不根。更简单的是,给予
NPM一个你自己的文件夹,并完全跳过sudo:
npm config set prefix ~/.npm-global # then add ~/.npm-global/bin to PATH
npm install -g @firedmosquito831/my-claude-code
要为root用户安装,请设置 MCC_INSTALL_ALLOW_ROOT=1 (或运行
mcc install --allow-root). 根shell,根VPS或Docker镜像-不
SUDO_USER -不受影响。
| 平台 | 什么是桌面一半安装 |
|---|---|
| 窗户 | MyClaudeCode-Setup-windows-x86_64.exe 运行 /VERYSILENT,每个用户,没有UAC提示 |
| macOS | 通用 .dmg,装有 hdiutil,复制到 ~/Applications隔离已清除(上面是这么说的) |
Linux与 dpkg | 这个 .deb,下载并验证-它 打印 sudo dpkg -i … 而不是升级,除非你通过 --yes-sudo |
Linux不 dpkg | 焦油球自己的 install-desktop.sh,每个用户,没有根 |
所有的下载都被核对过了
SHA256SUMS-desktop-shell.txt 来自同一版本 之前 它是运行的,
安装的或拆装的;摘要不匹配的文件将被删除,什么也不做
是执行。
这是有意为之的os原生形状。 mcc-desktop 也下载相同的
在第一次启动时验证金牛shell,进入您的配置home -不需要
安装程序,没有根目录,但没有开始菜单项, .desktop 文件或
应用程序图标。打字 npm install -g 请求已安装的应用程序。
这就是你得到的; mcc-desktop 作为零安装的备用方案。
为自己选择
npx @firedmosquito831/my-claude-code install --help # the list, installs nothing
npx @firedmosquito831/my-claude-code install --server-only
npx @firedmosquito831/my-claude-code install --desktop-only
npx @firedmosquito831/my-claude-code install --yes-sudo # Linux: run dpkg for me
MCC_NPM_INSTALL=server npm install -g @firedmosquito831/my-claude-code
MCC_NPM_INSTALL 需要 server, desktop, both 或者 none 是
Dockerfiles和provisioning scripts通道;命令行标志打败了它。
完全跳过钩子,只带发射器
MCC_NPM_SKIP_INSTALL=1 npm install -g @firedmosquito831/my-claude-code. 一个
本地安装 npx 运行时, CI 被设定,并且 --ignore-scripts 都跳过它
同样,每次打印一行都说明了这一点。
如果服务器安装了,而桌面端出现故障(网络不稳定),就会出现404
安装保持绿色,并告诉您如何重试这一半。一个失败
服务器 安装失败 npm install -g 有了它——这包括 curl
或者安装程序在Linux和macOS上下载失败
失败 WARNING: 这句话总比一句“做完了”什么都没说要好
安装。
无需全局安装即可运行
npx @firedmosquito831/my-claude-code # install if needed, then start the server
npx @firedmosquito831/my-claude-code install # install or update, deciding as above
npx @firedmosquito831/my-claude-code desktop # open the desktop app, installing it first if missing
npx @firedmosquito831/my-claude-code claude # launch Claude Code through the proxy
npx @firedmosquito831/my-claude-code help # list every mcc-* command
npx … --version 什么都不安装:启动程序只在以下情况下安装服务器
你让它运行一些需要它的东西。
卸载
mcc uninstall # removes the server, its commands and the config home
npm uninstall -g @firedmosquito831/my-claude-code # removes only this launcher
运行 mcc uninstall 第一个: NPM删除了它安装的启动器,但什么也没有
否则,因此在其本身上卸载包将保留Python服务器。
在Windows上 mcc uninstall 选项时保留开始菜单项
安装桌面应用程序自己。桌面应用程序被卸载的方式
其平台期望-添加或
删除程序在Windows上,删除它从 ~/Applications 在macOS,
sudo dpkg -r my-claude-code-desktop 或者 install-desktop.sh --uninstall 在
Linux。
要求:Node 18+和Windows PowerShell 5.1+(安装程序带来的)
uv 以及Python本身)。
Windows、Linux和macOS的文档、发行版和桌面安装程序: https://github.com/FiredMosquito831/my-claude-code
License: agpl -3.0或更高版本(可获得商用License,参见存储库)。