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

@ytechai/vscode-chat-proxy

v1.1.8

Published

A cross-platform OpenAI-compatible proxy for VS Code Chat providers

Readme

vscode-chat-proxy

一个跨平台的 VS Code Chat 代理服务,将 OpenAI 兼容请求转发到百度千帆、Moonshot Kimi、小米 MiMo 和 DeepSeek。

安装

要求 Node.js 22 或更高版本:

npm i -g @ytechai/vscode-chat-proxy

查看帮助:

vscode-chat-proxy -h

使用

vscode-chat-proxy start
vscode-chat-proxy status
vscode-chat-proxy logs
vscode-chat-proxy follow
vscode-chat-proxy restart
vscode-chat-proxy stop

设置当前用户登录系统后自动启动:

vscode-chat-proxy autostart install
vscode-chat-proxy autostart status
vscode-chat-proxy autostart uninstall

该功能使用各平台原生的用户级启动机制:Windows 任务计划程序、macOS launchd、Linux systemd --user(不可用时回退到 XDG autostart),通常不需要管理员权限。

默认监听 0.0.0.0:57004,允许本机及局域网通过 IPv4 访问。startstatus 会打印 127.0.0.1 及本机 IPv4 URL。请求路径为:

/baidu/v1/chat/completions
/kimi/v1/chat/completions
/mimo/v1/chat/completions
/deepseek/v1/chat/completions

请求体保持 OpenAI Chat Completions 格式。模型字段既支持字符串,也支持 VS Code 常见的 { "id": "..." } 对象格式。包含 image_urlinput_image 内容的消息会按多模态请求转发;DeepSeek 当前会明确返回不支持提示,因为其接口不提供视觉输入能力。

各路径使用对应供应商的独立适配器,便于后续增加模型专属参数或响应兼容逻辑:

| 路径 | 上游 | 多模态 | | --- | --- | --- | | /baidu | qianfan.baidubce.com | 支持(取决于模型) | | /kimi | api.kimi.com | 支持(取决于模型) | | /mimo | api.xiaomimimo.com | 支持(取决于模型) | | /deepseek | api.deepseek.com | 不支持 |

配置

通过环境变量配置:

| 变量 | 默认值 | 说明 | | --- | --- | --- | | VSCODE_CHAT_PROXY_HOST | 0.0.0.0 | 监听地址,可设置为任意可用 IP 或主机名 | | VSCODE_CHAT_PROXY_PORT | 57004 | 本地监听端口 | | VSCODE_CHAT_PROXY_DATA_DIR | 系统用户数据目录 | PID 和日志存储位置 | | VSCODE_CHAT_PROXY_START_TIMEOUT | 15 | 启动等待超时时间(秒) |

默认数据目录为:

  • Windows:%LOCALAPPDATA%/vscode-chat-proxy
  • macOS:~/Library/Application Support/vscode-chat-proxy
  • Linux:$XDG_STATE_HOME/vscode-chat-proxy~/.local/state/vscode-chat-proxy

日志文件位于数据目录的 logs 子目录中,包括 service.logproxy-requests.logproxy-errors.log

卸载

npm un -g @ytechai/vscode-chat-proxy

卸载前如服务仍在运行,请先执行 vscode-chat-proxy stop