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-kimi-code-statusline

v1.0.1

Published

OpenCode TUI plugin: display Kimi For Coding (Kimi Code) subscription quota (rolling 5h / weekly) in the footer statusline. V2-native, zero-config, no cookies.

Readme

📊 opencode-kimi-code-statusline

npm version license

English | 简体中文

在 OpenCode TUI 底栏显示 Kimi For Coding(Kimi Code)订阅配额用量。

动态演示:OpenCode 底栏中的 Kimi For Coding 配额用量

✨ 功能

  • 在输入框底栏实时显示 滚动 5 小时 / 每周 用量百分比(Kimi 5h 63% · Weekly 18%)
  • 展开底栏详情(或终端足够宽)时显示重置倒计时
  • 每段颜色提示:正常为弱化色,≥70% 为警告色,≥90% 为错误色
  • 仅当会话模型 provider 为 kimi-code-plan-global 或 kimi-code-plan-cn 时显示
  • 用量约每分钟自动刷新一次
  • 标签跟随终端语言(5h / Weekly 或 5h / 周),可用 language 选项覆盖

📋 环境要求

  • OpenCode@2
  • 已在 OpenCode 登录 Kimi For Coding 套餐(opencode auth login kimi-code-plan-global;kimi.com 套餐用 kimi-code-plan-cn)

🚀 安装

opencode plugin add opencode-kimi-code-statusline

🌐 语言

标签默认跟随终端语言:zh* 环境显示 5h / 周,其他显示 5h / Weekly。

可用插件的 language 选项覆盖:

{
  "plugins": [
    { "package": "opencode-kimi-code-statusline", "options": { "language": "zh-CN" } },
  ],
}

| 取值 | 显示 | | ------------------ | ------------------------------------------------------- | | "auto"(默认) | 从 LC_ALL、LC_MESSAGES、LANGUAGE、LANG 自动检测 | | "en" | 5h / Weekly | | "zh-CN" / "zh" | 5h / 周 |

📈 百分比的含义

| 窗口 | 来源 | 示例 | | ----------------------------------- | --------------- | -------------------------- | | 滚动 5 小时 | 5 小时滚动配额 | Kimi 5h 63% | | 每周 | 7 天配额 | Kimi 5h 63% · Weekly 18% | | 未登录、凭证无法解析、接口异常 | 无数据 | Kimi — |

两个百分比都是各自窗口的已用比例,倒计时指向各自窗口的重置时间。

🩺 疑难排查

  • 底栏始终不显示 —— 仅当会话模型 provider 为 kimi-code-plan-global 或 kimi-code-plan-cn 时才显示,请先在会话中切换到 Kimi For Coding 模型。
  • 只显示 Kimi — 而没有数字 —— 无法解析 Kimi For Coding 凭据,或 server 插件被禁用。请运行 opencode auth login kimi-code-plan-global(kimi.com 套餐用 kimi-code-plan-cn),然后确认插件已重新启用。
  • 国际版与国内版套餐 —— kimi-code-plan-global 是 kimi.ai 套餐,kimi-code-plan-cn 是 kimi.com 套餐;插件会读取已连接的凭据,登录其中一个即可。

📜 变更日志

完整发布历史见 Releases。

📄 许可证

MIT