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

@miloya/oc-minimax-status

v0.2.0

Published

MiniMax Coding Plan 用量查询插件 for OpenCode - 一键安装自动配置

Readme


功能特性

  • 实时用量查询 - 查询 MiniMax Coding Plan 使用状态
  • 安全认证 - 安全的 token 和 groupId 管理,配置文件与 Claude Code CLI 状态栏版共享(Windows: %USERPROFILE%\.minimax-config.json,macOS/Linux: ~/.minimax-config.json
  • 美观输出 - 终端友好的进度条展示
  • 一键安装 - 自动安装到全局插件目录,无需手动配置

安装

npm install -g @miloya/oc-minimax-status

安装过程会自动:

  1. 复制插件到全局插件目录 (~/.config/opencode/plugins)
  2. 复制 /minimax 命令到全局命令目录 (~/.config/opencode/command)
  3. 添加插件到 opencode.json 配置
  4. 显示使用说明

配置认证

插件会复用 Claude Code CLI 版 minimax-status 的配置文件,如果已配置过则无需重复配置。

配置文件路径:

  • Windows: %USERPROFILE%\.minimax-config.json
  • macOS/Linux: ~/.minimax-config.json

如需手动配置,创建上述文件:

{
  "token": "your-api-token",
  "groupId": "your-group-id"
}

如何获取 token 和 groupId

  1. 登录 https://platform.minimaxi.com/user-center/payment/coding-plan
  2. 获取 API Key 和 Group ID

使用方法

在 OpenCode 对话框中直接说自然语言即可(不是命令行),插件会自动识别并调用对应功能:

查询用量(自然语言或命令)

查看 minimax 用量
我的用量还有多少
minimax 状态
/minimax

管理认证(自然语言或命令)

查看 minimax 认证
设置 minimax 认证 tokenxxx groupIdxxx
/minimax set tokenxxx groupIdxxx

直接调用工具名

minimax_status
minimax_auth action=get
minimax_auth action=set token=xxx groupId=xxx

输出示例

用量查询成功

MiniMax Claude Code 用量状态
==============================
Model: MiniMax-M2
已用: 1,500 / 4,500
进度: [███░░░░░░] 33%
剩余: 3,000
重置: 2026/02/26 14:30 (2h 30m)
==============================

未配置认证

请先配置认证信息!

配置方式:
1. 如果已安装 Claude Code 版 minimax-status,配置文件已自动共享,无需重复配置
2. 或手动创建 ~/.minimax-config.json:
{
  "token": "your-api-token",
  "groupId": "your-group-id"
}

获取 token 和 groupId:
1. 登录 https://platform.minimaxi.com/user-center/payment/coding-plan
2. 获取 API Key 和 Group ID

相关项目

License

MIT License - see LICENSE file for details.