npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

yingclaw

v2.5.0

Published

Claude Code × 国产大模型一键接入:DeepSeek、Kimi、Qwen、MiniMax、GLM、MiMo

Downloads

5,567

Readme

yingclaw

Claude Code × 国产大模型,一键接入。

支持 DeepSeek、Kimi、阿里云百炼(Qwen)、MiniMax、智谱 GLM、小米 MiMo,也支持自定义 Anthropic 兼容接口,无需梯子即可使用 Claude Code。

yingclaw 交互菜单

安装

npm install -g yingclaw

安装后注册 claw 命令。

快速开始

claw

直接运行 claw 进入交互菜单,按步骤操作:安装 Claude Code → 配置 API 连接 → 接入终端或桌面应用。

也可以直接运行子命令:

第一步:安装 Claude Code

claw install-claude

根据提示选择网络环境(有梯子走官方,没梯子走淘宝镜像)。

第二步:配置 API 连接

claw config

选择厂商 → 输入 API Key → 选择模型。只保存连接信息,不修改终端环境变量,也不修改 Claude 桌面配置。

第三步:接入

接入 Claude Code 终端:

claw code

写入 Claude Code 所需的环境变量,之后运行 claude 即可。

接入 Claude 桌面应用:

claw desktop

将配置写入 Claude Desktop 第三方推理本地配置。macOS 会自动重启 Claude Desktop;Windows 需手动重新打开。

支持的厂商

| 厂商 | 主模型 | 快速模型 | |------|--------|---------| | DeepSeek | deepseek-v4-pro[1m] | deepseek-v4-flash[1m] | | Kimi / Moonshot | kimi-k2.5 | kimi-k2.5 | | 阿里云百炼 | qwen3-max | qwen3.5-plus | | MiniMax | MiniMax-M2.7 | MiniMax-M2.7-Turbo | | 智谱 GLM | glm-4.7 | glm-5-turbo | | 小米 MiMo | mimo-vl-v2.5-pro | mimo-vl-v2.5-pro | | 自定义接口 | 自动获取或手动输入 | — |

DeepSeek 的 [1m] 后缀是真实 API 模型 ID,表示 100 万 token 上下文窗口(官方说明)。

命令列表

claw                 # 交互菜单(无参数时自动进入)
claw config          # 配置 API 连接
claw code            # 接入 Claude Code 终端
claw desktop         # 接入 Claude 桌面应用
claw switch          # 快速切换厂商或模型
claw status          # 查看当前配置,验证 Key 是否有效
claw update          # 检查并升级到最新版本

claw code-reset      # 恢复 Claude Code 终端默认配置
claw desktop-reset   # 恢复 Claude 桌面应用默认配置
claw reset           # 清除所有 yingclaw 配置

claw install-claude  # 安装 Claude Code
claw setup           # 兼容旧命令:config + code

平台支持

| 平台 | 终端接入 | 桌面接入 | |------|---------|---------| | macOS | ✅ 写入 ~/.zshrc | ✅ 自动重启 Claude Desktop | | Linux / WSL | ✅ 写入 ~/.zshrc / ~/.bashrc | — | | Windows | ✅ 写入用户级环境变量(需重开终端) | ✅ 写入 %APPDATA%\Claude-3p\ |

原理

终端接入claw code)写入 shell 配置文件或 Windows 用户环境变量:

ANTHROPIC_BASE_URL
ANTHROPIC_AUTH_TOKEN / ANTHROPIC_API_KEY
ANTHROPIC_MODEL
ANTHROPIC_DEFAULT_OPUS_MODEL / SONNET_MODEL / HAIKU_MODEL
CLAUDE_CODE_SUBAGENT_MODEL
CLAUDE_CODE_EFFORT_LEVEL

桌面接入claw desktop)写入 Claude Desktop 第三方推理配置:

  • macOS:~/Library/Application Support/Claude-3p/configLibrary/
  • Windows:%APPDATA%\Claude-3p\configLibrary\

使用 inferenceProvider=gatewayinferenceGatewayAuthScheme=bearer,将 Gateway Base URL 指向对应厂商的 Anthropic 兼容接口。桌面接入要求 Base URL 使用 HTTPS。

自定义接口需支持 Anthropic /v1/messages 格式;工具会根据 Base URL 自动尝试获取模型列表,失败则手动输入。

卸载

npm uninstall -g yingclaw
claw reset           # 可选:清除已写入的环境变量和桌面配置

License

MIT