← 返回 Skills 市场
1264
总下载
1
收藏
3
当前安装
5
版本数
在 OpenClaw 中安装
/install openrouter-usage
功能描述
Fetch real-time OpenRouter usage totals and historical per-model spend. Use when the user asks for usage, spend, cost breakdown, or OpenRouter stats. Not for system health or non-LLM metrics.
安全使用建议
This skill appears to do what it says: it uses OPENROUTER_API_KEY (and optionally OPENROUTER_MGMT_KEY) to call only openrouter.ai endpoints and print usage and model breakdowns. Before installing: (1) confirm you trust the skill owner/source (homepage is absent and owner ID looks unfamiliar); (2) prefer providing keys via environment variables rather than creating a credentials.env file in a shared filesystem; (3) be aware the registry metadata does not list the required env vars or primary credential — ask the publisher to correct that mismatch; (4) you can review scripts/stats.py yourself (it's small and readable) or run it in an isolated environment if you want to limit risk.
功能分析
Type: OpenClaw Skill
Name: openrouter-usage
Version: 1.1.3
The skill is designed to fetch OpenRouter usage data, which it does by making authenticated API calls to `openrouter.ai`. It loads API keys from environment variables (recommended) or a `credentials.env` file as a fallback. While using a `credentials.env` file is a less secure practice for handling secrets compared to environment variables, it is explicitly documented and not indicative of malicious intent. The `SKILL.md` instructions are clear and directly relate to the skill's stated purpose, without any prompt injection attempts to subvert the agent. The Python script performs its function transparently, without unauthorized file access, network communication to external domains, or system modifications.
能力评估
Purpose & Capability
The skill claims to fetch OpenRouter usage and per-model spend and the included script calls only openrouter.ai endpoints (/auth/key, /credits, /activity). However, registry metadata lists no required environment variables or primary credential while SKILL.md and the script do require OPENROUTER_API_KEY (and optionally OPENROUTER_MGMT_KEY). This mismatch is a metadata inconsistency (not functional misbehavior).
Instruction Scope
Runtime instructions and the Python script are narrowly scoped: they load credentials from environment or a credentials.env file in the skill directory, call OpenRouter endpoints, aggregate and print results. The instructions do not request unrelated files, system state, or external endpoints beyond openrouter.ai.
Install Mechanism
No install spec (instruction-only + a small script). Nothing is downloaded or written by an installer; risk from installation is low. The script may read credentials.env in the skill directory if present.
Credentials
The only secrets requested are OPENROUTER_API_KEY (required) and OPENROUTER_MGMT_KEY (optional) which are proportional to the stated functionality. Note: the registry metadata did not declare these required env vars or primary credential, while SKILL.md and the script do — this inconsistency should be resolved. The skill suggests storing keys in a credentials.env file in the skill directory (convenient but less secure than environment variables).
Persistence & Privilege
The skill does not request persistent system privileges, does not set always:true, and does not modify other skills or system-wide configs. It only reads a credentials.env file in its own directory (if present).
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openrouter-usage - 安装完成后,直接呼叫该 Skill 的名称或使用
/openrouter-usage触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.3
Minor changes
v1.1.2
Align metadata with var requirements.
v1.1.1
Updated metadata to align with env var requirements
v1.1.0
Version 1.1 adds credential file support and clarifies environment variable configuration.
- Added support for providing credentials via a credentials.env file in the skill directory as an alternative to environment variables.
- Updated documentation to better explain required and optional environment variables and credential delivery methods.
- No code changes made; SKILL.md improvements only.
v1.0.0
Initial release of OpenRouter Usage Monitor.
- Fetches real-time usage totals (daily, weekly, monthly) via OpenRouter's API endpoints.
- Provides historical per-model spend breakdown for completed UTC days.
- Supports both Python (primary) and Bash (curl/jq) usage.
- Requires API key (OPENROUTER_API_KEY); optional management key for detailed stats.
- Handles authentication errors, rate limits, and network failures.
- Designed for easy setup and secure configuration management.
元数据
常见问题
OpenRouter Usage 是什么?
Fetch real-time OpenRouter usage totals and historical per-model spend. Use when the user asks for usage, spend, cost breakdown, or OpenRouter stats. Not for system health or non-LLM metrics. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1264 次。
如何安装 OpenRouter Usage?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openrouter-usage」即可一键安装,无需额外配置。
OpenRouter Usage 是免费的吗?
是的,OpenRouter Usage 完全免费(开源免费),可自由下载、安装和使用。
OpenRouter Usage 支持哪些平台?
OpenRouter Usage 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenRouter Usage?
由 rosseyre(@rosseyre)开发并维护,当前版本 v1.1.3。
推荐 Skills