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

oh-my-qwencode

v0.1.2

Published

Qwen Code 智能配置向导

Readme

Oh My QwenCode

Qwen Code 智能配置向导

本地运行

安装依赖:

npm install

然后在此文件夹中:

npm run build
npx --yes .

或者:

npm start

注意:此命令行工具是交互式的,需要 TTY 终端。

开发

构建:

npm run build

类型检查:

npm run type-check

功能

交互式配置 Coding Plan 和模型服务商 API Key,自动生成 ~/.qwen/settings.json 配置文件。

支持语言选择、多选配置、自动备份原配置,配置完成后可直接使用 qwen 命令启动。

快捷键

  • ↑/↓ - 移动光标
  • 空格 - 选择/取消选择
  • 回车 - 确认
  • ESCCtrl+C - 取消并退出

配置文件

Coding Plan 配置

文件:config/coding-plans.json

格式:

[
  {
    "id": "bailian",
    "label": "阿里云百炼",
    "modelIds": ["qwen-max-thinking", "qwen-code-plus"],
    "protocol": "openai",
    "modelProviders": [
      {
        "id": "qwen3-max-2026-01-23",
        "name": "[ALIYUN] qwen3-max-2026-01-23",
        "envKey": "ALIYUN_CODE_PLAN",
        "baseUrl": "https://coding.dashscope.aliyuncs.com/v1"
      }
    ]
  }
]

模型服务商配置

文件:config/providers.json

格式与 Coding Plan 相同。

配置字段说明

  • id: 保存配置中使用的稳定键
  • label: 多选提示中面向用户的文本
  • modelIds: 关联的模型 ID 列表(显示在界面上)
  • protocol: API 协议(如 openaigeminianthropic
  • modelProviders: 完整的模型提供商配置数组
    • id: 模型唯一标识
    • name: 模型显示名称
    • envKey: 环境变量键名(用于 env 字段)
    • baseUrl: API 基础 URL
    • generationConfig: 可选的生成配置

保存格式

如果无法写入主目录,则回退到:./.oh-my-qwencode/config.json

保存格式示例:

{
  "general": {
    "language": "en",
    "outputLanguage": "English"
  },
  "model": {
    "name": "qwen3-max-2026-01-23"
  },
  "security": {
    "auth": {
      "selectedType": "openai"
    }
  },
  "modelProviders": {
    "openai": [
      {
        "id": "qwen3-max-2026-01-23",
        "name": "[ALIYUN] qwen3-max-2026-01-23",
        "envKey": "DASHSCOPE_API_KEY",
        "baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1"
      }
    ]
  },
  "env": {
    "DASHSCOPE_API_KEY": "sk-...",
    "GEMINI_API_KEY": "..."
  },
  "savedAt": "2026-02-07T00:00:00.000Z"
}

发布使用

发布到 npm 后,用户可以运行:

npx --yes oh-my-qwencode

可选参数:

  • --yes / -y: 自动确认准备安装提示
  • --skip-prepare: 跳过 qwen 检查/安装步骤