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

opencode-sensenova-auth

v0.1.1

Published

magpie / OpenCode provider plugin for SenseNova Token Plan (商汤日日新)

Readme

opencode-sensenova-auth

A magpie / OpenCode provider plugin for SenseNova Token Plan (商汤日日新), at https://token.sensenova.cn.

It registers SenseNova 6.8 Flash Lite, DeepSeek V4/V4.1 Flash, GLM-5.2 and Kimi K3, including their context limits, multimodal capabilities and reasoning controls.

magpie plugin add opencode-sensenova-auth
magpie plugin login sensenova       # paste an sk-… key
magpie provider test sensenova sensenova-6.8-flash-lite

Create a key in the SenseNova console, then select sensenova/sensenova-6.8-flash-lite in an agent driven by magpie.

From GitHub instead of npm:

magpie plugin add github:itgo067/magpie-plugin-sensenova

中文说明

  1. 在 SenseNova 控制台 的 Token Plan 中创建 sk-… 密钥。
  2. 执行上面的安装、登录和测试命令。
  3. 选择 sensenova/sensenova-6.8-flash-lite,或其他已接入的对话模型。

默认使用 OpenAI Chat Completions。接入 Claude Code 或 Codex 时可切换协议:

magpie plugin options opencode-sensenova-auth '{"protocol":"anthropic"}'
magpie plugin options opencode-sensenova-auth '{"protocol":"responses"}'

选项名是 npm 包名,不是仓库名;可用 magpie plugin list 查看实际安装名称。

Wire APIs

| protocol | SDK | Base URL | Endpoint | | --- | --- | --- | --- | | chat (default) | @ai-sdk/openai-compatible | https://token.sensenova.cn/v1 | /chat/completions | | anthropic | @ai-sdk/anthropic | https://token.sensenova.cn | /v1/messages | | responses | @ai-sdk/openai | https://token.sensenova.cn/v1 | /responses |

Chat exposes each model's documented reasoning_effort variants, including none to disable thinking. Anthropic uses output_config.effort and thinking. The current Responses compatibility endpoint ignores non-default effort levels, so it only exposes the useful none variant.

Models

| ID | Context | Maximum output | Input | | --- | ---: | ---: | --- | | sensenova-6.8-flash-lite | 262,144 | 65,536 | text, image | | deepseek-v4-flash | 1M | 384,000 | text | | deepseek-flash | 1M | 393,216 | text, image; video on Chat | | deepseek-v4.1-flash | 1M | 65,536 | text | | glm-5.2 | 1M | 131,072 | text | | kimi-k3 | 1M | model-dependent | text, image (Base64) |

With authentication, GET /v1/models refreshes model limits, modalities and pricing and adds newly available text models. Network or authorization failures leave the static catalog intact. The live endpoint can report lower limits than the underlying model's maximum; its values take precedence for the current Token Plan deployment.

The U1.5 Lite/Fast models are deliberately not registered as chat models: they only use /v1/images/generations and /v1/images/edits, which magpie's chat providers do not serve.

Configuration

Provider and model fields are merged without discarding defaults:

{
  "provider": {
    "sensenova": {
      "models": {
        "sensenova-6.8-flash-lite": { "name": "SenseNova Flash Lite" }
      }
    }
  }
}

Token Plan consumes account credits with rolling five-hour and weekly limits. Static model costs are therefore zero rather than invented token prices; any prices returned by the live model endpoint are retained. Check credits and usage in the SenseNova console.

Live checks on 2026-10-27 passed for Chat, Anthropic Messages and Responses, including Chat streaming and function calling. The gateway can still return a small reasoning field when reasoning_effort: none or thinking: disabled is requested.

Development

bun test
magpie plugin add .

The plugin has no runtime dependencies. It exports SenseNovaAuthPlugin and _internal for offline tests. API behavior is based on the official documentation.

License

MIT