viberank

io.github.sculptdotfun由 GitHub 账号 sculptdotfun 发布v1.2.0更新于 Nov 2, 2026

Submit your AI coding usage (Claude Code, Codex, Gemini CLI) to viberank and read the leaderboard.

已验证STDIO仅桌面开发者工具数据与分析

概览

AI 生成的概览

通过 ccusage 读取本机 AI 编程工具用量,可将其提交到公开的 viberank 排行榜,并查询排行榜、个人资料与站点统计。

可以做什么
  • 汇总本机 AI 编程用量:API 等价成本、token 数、统计天数与各工具成本
  • 把用量提交到公开的 viberank 排行榜,配置令牌后可按账号验证归属
  • 读取排行榜,可按工具筛选,含排名、成本、token 与验证状态
  • 按 GitHub 用户名查询某位开发者的资料
  • 读取站点整体统计:开发者数量、支出分位数、工具与模型采用情况、月度趋势
适用场景
适合想了解自己在 Claude Code、Codex、Gemini CLI 等受 ccusage 支持工具上的用量按 API 价格折算成多少钱,并可选地在 viberank 排行榜上与其他开发者比较的人。
运行要求
以 stdio 方式通过 npx 在本机运行,需要 Node.js 18 或更高版本和网络访问:首次运行会下载 ccusage,读取类工具会访问 viberank.app。可选的 VIBERANK_TOKEN(在 viberank 设置页创建)用于验证提交;没有令牌时提交需要提供 GitHub 用户名。
安装前请注意
submit_to_viberank 会把用量发布到公开排行榜,并以 GitHub 用户名建立公开资料,请仅在确实要提交时调用。它会将 ccusage 报告、匿名机器 ID 以及令牌或用户名发送到 viberank.app。请妥善保管 VIBERANK_TOKEN;被撤销的令牌会被拒绝。

安装

在 SourceWeft 中

  1. 打开 控制台中的 viberank,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

viberank MCP server

Submit your AI coding usage (Claude Code, Codex, Gemini CLI, OpenCode and every other tool ccusage reads) to viberank, and read the leaderboard, from any MCP client.

Install

Claude Code

bash
claude mcp add --scope user viberank -- npx -y viberank-mcp

To have submissions verified and filed under your account automatically, add an API token. Mint one at viberank.app/settings/tokens (sign in with GitHub, then Create token); it starts with vbr_:

bash
claude mcp add --scope user viberank --env VIBERANK_TOKEN=vbr_… -- npx -y viberank-mcp

On native Windows (not WSL), npx has to go through cmd /c:

bash
claude mcp add --scope user viberank -- cmd /c npx -y viberank-mcp

--scope user makes the server available in every project. Check it with claude mcp list.

Claude Desktop

Add this to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\), then restart Claude Desktop. Leave out the env block if you don't have a token.

json
{  "mcpServers": {    "viberank": {      "command": "npx",      "args": ["-y", "viberank-mcp"],      "env": {        "VIBERANK_TOKEN": "vbr_…"      }    }  }}

On Windows, use cmd /c:

json
{  "mcpServers": {    "viberank": {      "command": "cmd",      "args": ["/c", "npx", "-y", "viberank-mcp"],      "env": {        "VIBERANK_TOKEN": "vbr_…"      }    }  }}

Other MCP clients

Run npx -y viberank-mcp as a stdio server. Node.js 18 or newer.

Which account a submission goes to

  • With a token (VIBERANK_TOKEN, or the one npx viberank-cli login saved in ~/.viberank/config.json): the server files the submission under the token's owner and marks it verified. The MCP server asks viberank who that is before uploading, and the result names that account. No username is needed.
  • Without a token: github_username is required, and it should be your own GitHub handle, because it becomes a public profile. If the agent calls without one, nothing is uploaded. The MCP server suggests a handle instead (the one this machine submitted under before, or the repository's owner when GitHub confirms that's a personal account, never an organization) and the agent asks you to confirm it before calling again. Once a profile is verified, unsigned submissions to it are refused, so nobody else can write to yours.

Tools

get_usage

Runs ccusage@20 daily --json --by-agent locally and returns a summary: API-equivalent cost, tokens, days tracked, date range and cost per tool. Sends nothing. Cached for 5 minutes.

  • force_refresh (boolean, optional): re-run ccusage instead of using the cache.

submit_to_viberank

Uploads your usage to the leaderboard. On success it returns the account it was filed under, your profile URL, your standing (rank, top percentage, tier, and README badge markdown), and next steps the agent can offer: adding the badge to your README, and turning on daily autosubmit with npx viberank-cli login and npx viberank-cli autosubmit.

  • github_username (string): your GitHub username. Required without a token, not needed with one.

get_leaderboard

The current leaderboard: rank, username, cost, tokens, tools and verified status for each entry.

  • limit (integer, optional): 1 to 50, default 10.
  • tool (string, optional): rank only users of one tool, such as claude, codex, gemini, opencode or copilot.

get_profile

One developer's profile: rank, cost, tokens, days tracked, tools and verified status. Says found: false when there's no profile for that username.

  • username (string, required): the GitHub username.

get_stats

Site-wide numbers from /api/stats: developer count, total spend and tokens, monthly spend percentiles, tool and model adoption, the monthly trend and tiers, with methodology and caveats.

Example prompts

  • "What's my AI coding usage?"
  • "Submit my usage to viberank."
  • "Show the top 20 on viberank for Codex."
  • "Look up octocat on viberank."
  • "How does my monthly spend compare with other developers?"

What is sent, and where

Only submit_to_viberank sends your usage, and only to https://www.viberank.app/api/submit. Along with the ccusage report it sends:

  • Authorization: Bearer <token> when you have a token, otherwise X-GitHub-User: <username>.
  • X-Machine-Id: the anonymous random ID in ~/.viberank/machine-id, shared with the CLI and created on first use, so usage from your laptop and desktop adds up instead of overwriting.
  • X-Viberank-Client: mcp/<version>.

The read tools fetch public data from viberank.app. Without a token, submit_to_viberank also asks the GitHub API whether a suggested handle is a personal account; only the handle is sent.

Troubleshooting

  • "VIBERANK_TOKEN is set but is not a viberank token": the variable holds something other than vbr_ plus 43 characters, often the vbr_… placeholder from these docs. Paste the real token or remove the variable.
  • "was rejected by viberank": the token was revoked. Mint a new one at viberank.app/settings/tokens.
  • "a GitHub username is required": there's no token, so tell the agent your GitHub username, or add a token.
  • "No usage found": ccusage found no logs on this machine. Use Claude Code, Codex or another supported tool first.
  • "Could not run ccusage@20": check that npx --version works and that the machine is online; the first run downloads ccusage.

Development

bash
npm installnpm run build    # tsc into dist/npm test         # unit tests, no networknpm run smoke    # starts dist/index.js over stdio and calls the read tools against viberank.appnpm run smoke -- --usage   # also runs get_usage (ccusage, local only)

The smoke test never calls submit_to_viberank.

The package is listed in the MCP registry as io.github.sculptdotfun/viberank (mcpName in package.json, metadata in server.json). Keep the version fields in server.json in step with package.json.

Links

License

MIT

来源:packages/viberank-mcp-server/README.md,提交 1506fcf

工具

5

get_usage

Read the user's local AI coding usage (Claude Code, Codex, Gemini CLI, OpenCode and the other tools ccusage supports) by running ccusage@20 on this machine. Returns a summary: API-equivalent cost in USD, tokens, days tracked, date range and cost per tool. Sends nothing anywhere. Can take a minute on a long history; results are cached for 5 minutes.

输入参数force_refresh

submit_to_viberank

Upload the user's local usage to the public viberank.app leaderboard. Call it only when the user asked to submit. With a VIBERANK_TOKEN configured, the submission is verified and filed under the token's account, so leave github_username out. Without a token, github_username is required and must be the user's own GitHub handle, confirmed with them, because it becomes a public profile. Called without one, it uploads nothing and suggests a handle to confirm with the user before calling again. On success it returns rank, tier and a README badge you can offer to add.

输入参数github_username

get_leaderboard

The current viberank leaderboard, ranked by API-equivalent cost. Each entry has rank, username, totalCost (USD), totalTokens, tools, verified, underReview and profileUrl. Pass tool to rank only the users of one tool; get_stats lists the tool slugs.

输入参数toollimit

get_profile

One developer's viberank profile: global rank, total cost and tokens, days tracked, tools and whether it is verified. Profiles are keyed by GitHub username. Returns found: false when there's no such profile.

输入参数username必填

get_stats

Site-wide viberank statistics: developer and submission counts, total tokens and API-equivalent cost, monthly spend per developer (median and percentiles), tool and model adoption, the monthly trend and tier counts, with methodology, caveats and a citation line. Use it to compare one developer's spend with everyone else's.

无需输入参数。

版本历史

1
  1. v1.2.0最新Oct 26, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分