@firedmosquito831/my-claude-code

中文文档
7.122.3发布于 2026/11/01AGPL-3.0-or-later零依赖构建来源已验证

My Claude Code (MCC): a local multi-provider LLM proxy, model router and control plane for Claude Code, Codex, OpenCode, Gemini CLI and other AI coding agents, with 57 providers, fallback routing, credential health, a native web-search tool proxy, and ana

原始使用文档
文档目录5 节
  1. Install what this machine actually needs
  2. With a system Node, sudo, and a user-level prefix
  3. Choosing for yourself
  4. Run without installing globally
  5. Uninstall

@firedmosquito831/my-claude-code

Route Claude Code and other coding agents to any model provider through one local proxy, with a dashboard for routing, fallback chains, reasoning controls, credential rotation and request analytics.

The server is a Python package. This npm package is a thin wrapper over the project's own digest-verified install script — it does not reimplement it and it does not vendor a second copy of the server.

Install what this machine actually needs

npm install -g @firedmosquito831/my-claude-code

A global install looks at the machine first and then installs the latest release of the right shape:

  • the server, always, through the official installer (install.ps1 / install.sh), which brings uv, Python 3.14 and every mcc-* command;
  • the native desktop application, where there is a desktop session — Windows and macOS always, Linux only with DISPLAY or WAYLAND_DISPLAY. Over SSH, in CI, on a headless server or in WSL — with or without a display, because the desktop app for a Windows PC is the Windows one — it installs the server alone, without even the installer's desktop flag, so no shortcuts are created for a screen that does not exist.

It prints one line saying what it decided and why before it does anything (npm shows a hook's output only with --foreground-scripts).

With a system Node, sudo, and a user-level prefix

My Claude Code installs per user. With a system Node whose global folder belongs to root, sudo npm install -g gives you the mcc command and nothing else: run as root on behalf of your user, the hook installs no server for root (a root-owned copy you could not use, and a root server on your port) and the server is installed by your first mcc — as you, not root. Simpler still, give npm a folder you own and skip sudo entirely:

npm config set prefix ~/.npm-global      # then add ~/.npm-global/bin to PATH
npm install -g @firedmosquito831/my-claude-code

To install for root on purpose, set MCC_INSTALL_ALLOW_ROOT=1 (or run mcc install --allow-root). A root shell, a root VPS or a Docker image — no SUDO_USER — is not affected.

PlatformWhat the desktop half installs
WindowsMyClaudeCode-Setup-windows-x86_64.exe run /VERYSILENT, per-user, no UAC prompt
macOSthe universal .dmg, mounted with hdiutil, copied into ~/Applications, quarantine cleared (it says so)
Linux with dpkgthe .deb, downloaded and verified — it prints sudo dpkg -i … rather than escalating, unless you pass --yes-sudo
Linux without dpkgthe tarball's own install-desktop.sh, per-user, no root

Every one of those downloads is checked against SHA256SUMS-desktop-shell.txt from the same release before it is run, mounted or unpacked; a file whose digest does not match is deleted and nothing is executed.

This is the OS-native shape on purpose. mcc-desktop also downloads the same verified Tauri shell on first launch, into your config home — that needs no installer and no root, but leaves no Start Menu entry, .desktop file or Applications icon. Typing npm install -g asks for an installed application, so that is what you get; mcc-desktop stays as the zero-install fallback.

Choosing for yourself

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 takes server, desktop, both or none and is the channel for Dockerfiles and provisioning scripts; a command-line flag beats it. Skip the hook entirely and take the launcher only with MCC_NPM_SKIP_INSTALL=1 npm install -g @firedmosquito831/my-claude-code. A local install, an npx run, CI being set, and --ignore-scripts all skip it too, each printing one line saying so.

If the server installs and the desktop half fails — a flaky network, a 404 — the install stays green and tells you how to retry just that half. A failing server install fails npm install -g with it — and that includes curl being missing or the installer download failing on Linux and macOS, which fail with a WARNING: line saying so rather than a "done" with nothing installed.

Run without installing globally

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 installs nothing: the launcher installs the server only when you ask it to run something that needs one.

Uninstall

mcc uninstall          # removes the server, its commands and the config home
npm uninstall -g @firedmosquito831/my-claude-code   # removes only this launcher

Run mcc uninstall first: npm removes the launcher it installed and nothing else, so uninstalling the package on its own leaves the Python server in place. On Windows mcc uninstall keeps the Start Menu entry when it is the installed desktop app's own. The desktop application is uninstalled the way its platform expects — Add or remove programs on Windows, deleting it from ~/Applications on macOS, sudo dpkg -r my-claude-code-desktop or install-desktop.sh --uninstall on Linux.

Requirements: Node 18+, and on Windows PowerShell 5.1+ (the installer brings uv and Python itself).

Docs, releases and the desktop installers for Windows, Linux and macOS: https://github.com/FiredMosquito831/my-claude-code

License: AGPL-3.0-or-later (commercial license available, see the repository).

版本与发布记录

@firedmosquito831/my-claude-code 共发布 288 个版本,首次发布于 2026/09/07;过去 12 个月发布了 288 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
7.122.3latest2026/11/012 天前
7.122.22026/11/012 天前
7.122.12026/11/012 天前
7.122.02026/10/312 天前
7.121.32026/10/313 天前
7.121.22026/10/313 天前

关于 @firedmosquito831/my-claude-code 的常见问题

@firedmosquito831/my-claude-code 是什么?

我的克劳德代码(MCC):本地多提供商LLM代理、模型路由器和控制平面,适用于克劳德代码、Codex、OpenCode、Gemini CLI和其他人工智能编码代理,具有57个提供商、备用路由、凭证健康状况、本地web搜索工具代理和ana

如何安装 @firedmosquito831/my-claude-code?

在项目目录运行 npm install @firedmosquito831/my-claude-code,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 mcc,可以用 npx mcc 直接运行。

@firedmosquito831/my-claude-code 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/firedmosquito831__my-claude-code 是否存在。

@firedmosquito831/my-claude-code 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@firedmosquito831/my-claude-code 可以商用吗?

@firedmosquito831/my-claude-code 使用 AGPL-3.0-or-later 许可。最严格的 Copyleft:除分发外,通过网络向用户提供基于它的服务也需要开源对应源码。闭源 SaaS 使用前务必评估。以上为概括,不构成法律意见,请以许可原文为准。

@firedmosquito831/my-claude-code 还在维护吗?

最新版本 7.122.3 发布于 2026/11/01(2 天前);至今共发布 288 个版本,其中过去 12 个月发布了 288 个;首次发布于 2026/09/07。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。