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

dsh-llm-grok

v0.1.0

Published

Independent DeepSeek Harness plugin that adds Grok subscription as an LLM provider

Readme

dsh-llm-grok

独立 DeepSeek Harness 插件骨架:把 Grok 订阅额度接入 DSH 的 LLM 提供方。

当前形态是 独立 repo / bundle 插件,不需要修改 DSH 源码。它通过 DSH 的 dsh plugin 机制安装到 profile,并注册 grok provider。

特性

  • 支持 grok-4.6grok-4.5
  • 支持思考强度:
    • grok-4.6: low / medium / high / xhigh
    • grok-4.5: low / medium / high
  • 直接连接 Grok 订阅端点,不再依赖本地 Python 代理:
    • 默认 baseURLhttps://cli-chat-proxy.grok.com/v1
    • 通过 undici ProxyAgent 走你的 Clash 7890 代理
  • 支持 grok-4.6grok-4.5
  • 支持思考强度:
    • grok-4.6: low / medium / high / xhigh
    • grok-4.5: low / medium / high

目录结构

dsh-llm-grok/
├── package.json           # 声明 dsh.bundle,可被 dsh plugin 安装
├── cordis.patch.yml       # 插入 llm-grok 插件行
├── tsconfig.json
├── src/
│   ├── index.ts           # Cordis 插件入口,注册 grok provider
│   ├── adapter.ts         # GrokAdapter(LlmAdapter 实现)
│   ├── serialize.ts       # DSH 消息 → OpenAI chat-completions 请求
│   ├── translate.ts       # SSE → DSH StreamChunk
│   └── types.ts           # wire 类型

开发

npm install
npm run build

安装到 DSH

在包含本 repo 的目录执行:

dsh plugin --profile web add ./dsh-llm-grok

或者使用其他 profile:

dsh plugin --profile myprofile add ./dsh-llm-grok

安装后 DSH 会自动把 cordis.patch.yml 作为 bundle layer 应用,新增 llm-grok 插件行并注册 grok provider。

注意:如果你之前通过 llm-pi-ai settings 添加过名为 grok 的 provider, 需要先移除,避免 provider route 冲突。

配置

插件默认配置在 cordis.patch.yml 中,也可以在 profile 的 cordis.patch.yml 或 home 层覆盖:

- id: llm-grok
  name: dsh-llm-grok
  config:
    baseURL: https://cli-chat-proxy.grok.com/v1
    apiKeyEnv: GROK_SESSION_TOKEN
    proxy: http://127.0.0.1:7890
    models:
      - id: grok-4.6
        name: Grok 4.6
        contextWindow: 500000
        maxTokens: 128000
        reasoningEfforts:
          low: low
          medium: medium
          high: high
          xhigh: xhigh
      - id: grok-4.5
        name: Grok 4.5
        contextWindow: 500000
        maxTokens: 128000
        reasoningEfforts:
          low: low
          medium: medium
          high: high

TODO / 后续

  • [ ] 补测试:SSE 解析、消息序列化、配置校验。
  • [ ] 发布到 npm,支持 dsh plugin add dsh-llm-grok