← 返回 Skills 市场
takao-mochizuki

OpenClaw Usage Manager

作者 Takao-Mochizuki · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
344
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install openclaw-usage-manager
功能描述
Monitors dual Claude Max accounts' 5h/7d usage, shows real-time dashboard, and auto-switches when utilization exceeds 80%.
安全使用建议
What to check before installing: - Inspect the repository your install will clone (the SKILL.md references a GitHub URL). Confirm the code matches what you were shown. - Understand token handling: the tool requires two Anthropic API tokens. You can use 1Password (recommended) or tokens.json (plaintext on disk). Prefer 1Password; if you use tokens.json, keep it chmod 600 and ensure the machine is trusted. - Backup ~/.openclaw/agents/main/agent/auth-profiles.json before running the auto-switcher. The checker overwrites that file to swap tokens; if misconfigured it could lock your agent or expose credentials. - Confirm dependencies: Node.js >=18 is required and the dashboard uses the 1Password CLI ('op') if you choose that setup path. The registry metadata did not declare these — the omission is a red flag. - Run the dashboard and scripts locally (not on a production machine) first and review network activity (they call api.anthropic.com and run local commands like lsof/kill). The dashboard is designed to bind to localhost only, but verify that behavior in your environment. - If you are not comfortable having a tool rewrite OpenClaw agent auth files, do not install. Consider manual switching or a version that only reads usage and reports but does not alter agent configuration. - If you decide to proceed: inspect setup scripts (setup-tokens.sh / setup-tokens-simple.sh), review how tokens are passed to child processes, and ensure your 1Password CLI is logged in and secure. Keep a copy of the original auth-profiles.json and restrict file permissions.
功能分析
Type: OpenClaw Skill Name: openclaw-usage-manager Version: 1.1.0 The bundle provides a dashboard and auto-switching utility for managing multiple Anthropic accounts within OpenClaw by monitoring usage headers and updating the 'auth-profiles.json' configuration. While it performs high-risk operations such as modifying authentication tokens and executing shell commands (via execSync in server.mjs for 1Password CLI and process management), these actions are strictly aligned with its stated purpose. The implementation includes proactive security measures such as CSRF protection, host/origin validation for the local dashboard, atomic file writes, and restrictive file permissions (chmod 600) for token storage. No evidence of data exfiltration or malicious intent was found.
能力评估
Purpose & Capability
The claimed purpose (monitor two Claude Max accounts and auto-switch) matches the included scripts: a local dashboard that fetches usage and a checker that can swap API tokens. However the registry metadata lists no required binaries or credentials whereas SKILL.md and the code require Node.js and (optionally) the 1Password CLI and Anthropic API tokens; that mismatch is an integrity/metadata issue.
Instruction Scope
Runtime instructions direct the user to copy files into ~/.openclaw/workspace/tools and run setup scripts. The checker script reads tokens.json and reads/writes the OpenClaw agent config at ~/.openclaw/agents/main/agent/auth-profiles.json to swap the active token — this modifies another agent's credential file. The dashboard server executes shell commands (op via execSync, lsof/kill) and posts to the Anthropic API. Those actions go beyond innocuous monitoring and require careful review and backups.
Install Mechanism
There is no install spec; the package is instruction-only with code files you copy locally (git clone). No remote downloads or extracted archives are used by the skill itself. That lowers installation risk, but the registry metadata omits that Node.js/op are required.
Credentials
The tool legitimately needs Anthropic API tokens for both accounts and suggests optionally using 1Password to retrieve them. Those credentials are sensitive and the skill stores them either in tokens.json (plaintext on disk, albeit with chmod 600) or accesses them via the 1Password CLI. The checker then overwrites OpenClaw's agent auth file with one of those tokens — giving the tool privilege over which account the agent uses. The registry declared no required env/credentials, which is inconsistent.
Persistence & Privilege
The skill does not set always:true, but it does modify another agent's configuration file (~/.openclaw/agents/main/agent/auth-profiles.json). Per the guidelines, a skill that writes credentials/config for other agents or system-wide agent settings should be treated as higher privilege — this increases blast radius if the script is compromised or misused.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openclaw-usage-manager
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openclaw-usage-manager 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
fix: replace hardcoded user paths with $HOME — no more /Users/sonia hardcode
v1.0.0
Initial release of openclaw-usage-manager. - Real-time browser dashboard for monitoring dual Claude Max account utilization (C1/C2) - Auto-switches between accounts when 5-hour or 7-day usage exceeds 80% - Includes cron-based checker running every 3 hours - Secure token storage using 1Password CLI recommended - Audited for security, local dashboard with CSRF protection
v0.1.0
Initial release of openclaw-usage-manager. - Real-time dashboard for monitoring dual Claude Max account usage (5h/7d limits). - Browser UI displays C1 and C2 utilization side-by-side. - Automatic account switching when either account exceeds 80% of any rate limit. - Includes cron-based auto-switcher (checks every 3 hours). - Strong security practices: 1Password integration, token protection, local-only dashboard. - Simple setup and usage instructions provided.
元数据
Slug openclaw-usage-manager
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

OpenClaw Usage Manager 是什么?

Monitors dual Claude Max accounts' 5h/7d usage, shows real-time dashboard, and auto-switches when utilization exceeds 80%. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 344 次。

如何安装 OpenClaw Usage Manager?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-usage-manager」即可一键安装,无需额外配置。

OpenClaw Usage Manager 是免费的吗?

是的,OpenClaw Usage Manager 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

OpenClaw Usage Manager 支持哪些平台?

OpenClaw Usage Manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 OpenClaw Usage Manager?

由 Takao-Mochizuki(@takao-mochizuki)开发并维护,当前版本 v1.1.0。

💬 留言讨论