VC

vibe-cafe/vibe-usage

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

150 stars 质量 77 趋势 20MIT

vibe-café/vibe-usage 是从 https://github.com/vibe-cafe/vibe-usage. 导入的特工技能候选

概览

vibe-café/vibe-usage 是从 https://github.com/vibe-cafe/vibe-usage. 导入的特工技能候选

概述(AI 翻译)

跟踪你的AI编码工具的代币使用情况并同步到 vibecafe.ai。

快速启动

一个命令,无需配置:

第一次运行时:

  1. 在浏览器中打开 vibecafe.ai/usage/device — 登录,确认终端显示的代码,点击“确认链接”;密钥保存为~/.vibe-usage/config.json
  2. 检测该机器上安装的AI编码工具
  3. 上传你的使用历史
  4. 开启后台同步(每30分钟一次,登录时开始)——没有提示,也没有其他安装内容

现在随时可以再次运行同样的命令进行同步。要关闭后台同步:npx @vibe-cafe/vibe-usage daemon uninstall。如果你完全不想使用后台服务,可以在第一次运行时添加--no-daemon。

更喜欢菜单栏应用?Vibe在Mac上的使用情况·Windows。

线人 / 无头

如果你没有本地浏览器(CI、远程SSH会话、容器),可以在 vibecafe.ai/usage/setup 预发密钥并通过命令行传递。非交互式运行绝不安装后台服务:

所有命令——下面的内容依然有效;旧拼写会印出指向更简单形式的提示

订阅配额

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

vibe-usage

Track your AI coding tool token usage and sync to VibeCafé.

Quick Start

One command, nothing to configure:

npx @vibe-cafe/vibe-usage

On the first run it:

  1. Opens vibefriends.com/usage/device in your browser — sign in, confirm the code shown in the terminal, click 「确认链接」; the key is saved to ~/.vibe-usage/config.json
  2. Detects the AI coding tools installed on this machine
  3. Uploads your usage history
  4. Turns on background sync (every 30 minutes, starts at login) — no prompt, nothing else to install

Run the same command again any time to sync right now. To turn background sync off: npx @vibe-cafe/vibe-usage daemon uninstall. Add --no-daemon to the first run if you don’t want the background service at all.

Prefer a menu-bar app? Vibe Usage for Mac · for Windows.

CI / Headless

If you don’t have a local browser (CI, remote SSH session, container), pre-issue a key at vibefriends.com/usage/setup and pass it on the command line. Non-interactive runs never install the background service:

npx @vibe-cafe/vibe-usage init --manual-key vbu_xxxxxxxxxxxx --no-daemon
npx @vibe-cafe/vibe-usage              # Init (first run, browser login, then background sync) or sync (subsequent runs)
npx @vibe-cafe/vibe-usage --no-daemon  # Same, but skip installing the background service on first run
npx @vibe-cafe/vibe-usage init         # Re-run setup via browser login (also how you re-bind to another account)
npx @vibe-cafe/vibe-usage init --manual-key    # Skip browser, use pre-issued key (CI/headless)
npx @vibe-cafe/vibe-usage sync         # Manual sync
npx @vibe-cafe/vibe-usage sync --extra-codex-home /path/to/.codex  # Add another Codex Home for this run only
npx @vibe-cafe/vibe-usage summary       # Print last 7 days as markdown (cost / tokens / by tool / by model / by project)
npx @vibe-cafe/vibe-usage summary --days N  # Same, over the last N days (1-90)
npx @vibe-cafe/vibe-usage daemon       # Continuous sync (every 30m, foreground)
npx @vibe-cafe/vibe-usage daemon install    # Install background service (systemd/launchd/Task Scheduler)
npx @vibe-cafe/vibe-usage daemon uninstall  # Remove background service
npx @vibe-cafe/vibe-usage daemon status     # Show background service status
npx @vibe-cafe/vibe-usage daemon stop       # Stop background service
npx @vibe-cafe/vibe-usage daemon restart    # Restart background service
npx @vibe-cafe/vibe-usage reset        # Delete all data and re-upload from local logs
npx @vibe-cafe/vibe-usage reset --local  # Delete this host's data only and re-upload (`--host` remains a legacy alias)
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add vibe-cafe/vibe-usage
新手?先看 mcpskill.org 教程 →