← 返回 Skills 市场
299
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install openclaw-iterm2-statusbar
功能描述
Install the OpenClaw iTerm2 status bar that shows session cost and context usage in real time.
安全使用建议
What to consider before installing:
- The code appears to do what it claims: poll a local OpenClaw Gateway and display cost/context in iTerm2. However the package metadata omitted that it needs an OPENCLAW_GATEWAY_TOKEN and reads ~/.openclaw/openclaw.json and ~/Library/LaunchAgents/ai.openclaw.gateway.plist. Treat that omission as a red flag: verify and understand where your token is stored before installing.
- Avoid running the curl | bash one-liner without inspection. Instead download the repo or openclaw_status.py and inspect it locally before copying it into ~/Library/Application Support/iTerm2/Scripts/AutoLaunch.
- Inspect ~/Library/LaunchAgents/ai.openclaw.gateway.plist (if present) to confirm it does not contain unrelated secrets you don't want scripts to read. Consider setting OPENCLAW_GATEWAY_TOKEN in your shell profile if you prefer explicitness.
- Review ~/.openclaw/openclaw.json contents to ensure you are comfortable with the script reading it (it only reads compaction.reserveTokensFloor but user files can contain other data).
- Confirm the OpenClaw Gateway is actually running on localhost:18789 and you trust its origin; the script only talks to that local endpoint (no external exfiltration observed), but a compromised local gateway could leak data.
- If you decide to proceed, prefer manual installation (download, inspect, then copy) and keep backups of any tokens; if unsure, do not run the remote installer. If you discover unexpected behavior, remove the script from the AutoLaunch folder and revoke or rotate the gateway token.
功能分析
Type: OpenClaw Skill
Name: openclaw-iterm2-statusbar
Version: 0.1.1
The skill bundle utilizes a high-risk installation pattern in SKILL.md and install.sh, instructing the AI agent to execute a 'curl | bash' command that downloads and runs remote code. The installer establishes persistence by placing a script in the iTerm2 AutoLaunch directory, and the resulting openclaw_status.py script accesses sensitive local files (~/Library/LaunchAgents/ai.openclaw.gateway.plist and ~/.openclaw/openclaw.json) to retrieve authentication tokens. While these actions appear necessary for the stated purpose of monitoring a local OpenClaw gateway, the combination of remote execution, persistence, and credential access is highly risky for an automated agent.
能力评估
Purpose & Capability
The script's behavior (poll a local OpenClaw Gateway, read a gateway token, and read ~/.openclaw/openclaw.json) matches the stated purpose of showing session cost and context. However the skill metadata declares no required env vars or config paths while the code explicitly depends on an OPENCLAW_GATEWAY_TOKEN and a local config file, which is an incoherence that should have been declared.
Instruction Scope
SKILL.md instructs installing a Python iTerm2 script into the user's AutoLaunch directory and restarting iTerm2 — that is expected. The runtime instructions and code access local resources (127.0.0.1:18789), the environment variable OPENCLAW_GATEWAY_TOKEN, and ~/.openclaw/openclaw.json (to compute reserve tokens). Those file/env accesses are in-scope for the stated functionality but they are not declared in metadata.
Install Mechanism
The installer uses curl -fsSL to fetch scripts from raw.githubusercontent.com (a well-known host) and offers a curl|bash one-liner. Downloading from a GitHub raw URL is common, but piping remote scripts to bash is inherently risky — users should review the script before running it. The included install.sh writes only to the user's iTerm2 AutoLaunch folder (no system-wide changes).
Credentials
Metadata reports no required environment variables or config paths, but the code reads OPENCLAW_GATEWAY_TOKEN (env or from ~/Library/LaunchAgents/ai.openclaw.gateway.plist) and ~/.openclaw/openclaw.json. Requesting a gateway token is reasonable for its function, but omitting this from the declared requirements is a mismatch and the plist-file lookup means the script will try to read a LaunchAgents plist (which may contain other environment data) — this should be documented and disclosed.
Persistence & Privilege
The skill installs a user-level iTerm2 script into the user's AutoLaunch folder and does not request always:true or attempt to change other skills or system-wide settings. It does read user-local config files and a LaunchAgents plist but does not create system services or grant elevated privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-iterm2-statusbar - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-iterm2-statusbar触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
Version 0.1.1 of openclaw-iterm2-statusbar
- No file changes detected in this release.
- No updates to functionality, documentation, or installation process.
v0.1.0
- Initial release of openclaw-iterm2-statusbar.
- Adds real-time display of OpenClaw session cost and context usage in the iTerm2 status bar.
- Includes easy one-line and manual installation instructions.
- Provides visual indicators for model, cost, context usage, and compaction threshold.
- Requires macOS, iTerm2, and a local OpenClaw Gateway.
元数据
常见问题
Openclaw Iterm2 Statusbar 是什么?
Install the OpenClaw iTerm2 status bar that shows session cost and context usage in real time. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 299 次。
如何安装 Openclaw Iterm2 Statusbar?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-iterm2-statusbar」即可一键安装,无需额外配置。
Openclaw Iterm2 Statusbar 是免费的吗?
是的,Openclaw Iterm2 Statusbar 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Openclaw Iterm2 Statusbar 支持哪些平台?
Openclaw Iterm2 Statusbar 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Openclaw Iterm2 Statusbar?
由 Ryan(@lidegejinghk)开发并维护,当前版本 v0.1.1。
推荐 Skills