← 返回 Skills 市场
125
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install slash-tokens
功能描述
CLI proxy that reduces LLM token consumption by 60-90%. Prefix any dev command with 'rtk' to get filtered, compact output. Use for all Bash commands to save...
安全使用建议
Do not pipe the remote install script to bash without verification. Before installing: 1) Verify the canonical repository and install URL (Cargo.toml repository vs SKILL.md curl URL mismatch). 2) Inspect install.sh in that authoritative repo (or build from source) instead of running it directly. 3) Check telemetry & analytics code (src/core/telemetry.rs, scripts) and determine whether you can opt out; verify what endpoints it calls. 4) Be aware rtk stores a global history DB at ~/.local/share/rtk/history.db (contains raw outputs/estimates) and has commands to export/publish that data — treat it as potentially sensitive. 5) Note the hook auto-rewrite behavior: if you need guarantees the original command runs, use verbose/proxy modes or disable hooks; confirm defaults before using in CI or on machines with sensitive commands. If you want to proceed, prefer building/installing from a verified source (git clone the trusted repo and cargo build / inspect scripts) and audit the install.sh and telemetry endpoints first.
功能分析
Type: OpenClaw Skill
Name: slash-tokens
Version: 0.34.3
The slash-tokens skill bundle is a CLI proxy utility designed to optimize LLM token usage by filtering and compacting command outputs. The code demonstrates strong security awareness, including a hook integrity verification system (src/hooks/integrity.rs) to detect tampering and a trust-gated model for project-local filter configurations (src/hooks/trust.rs) to prevent malicious repositories from manipulating what the AI agent sees. It also includes logic to specifically mask sensitive environment variables (src/cmds/system/env_cmd.rs). The telemetry is anonymized via salted hashing and is user-configurable. All behaviors are transparent and strictly aligned with the tool's stated purpose of cost reduction.
能力评估
Purpose & Capability
The name/description (CLI proxy to reduce LLM tokens) matches the included source: many command filter modules, tracking/analytics, and a hook system. HOWEVER there are incoherences: the SKILL.md and registry say 'instruction-only / no install spec' while the package contains 100+ source files (Rust, scripts, an openclaw plugin). The SKILL.md's recommended install curl URL points at raw.githubusercontent.com/2233admin/rtk whereas Cargo.toml points to github.com/rtk-ai/rtk — this repository/URL mismatch is unexplained and suspicious.
Instruction Scope
SKILL.md tells users to run curl -fsSL https://raw.githubusercontent.com/2233admin/rtk/main/install.sh | bash (pipe-to-shell). The runtime docs also describe auto-rewrite hooks that can silently intercept and rewrite commands (Auto-Rewrite default). The skill documents writing/reading a SQLite DB at ~/.local/share/rtk/history.db and includes commands to export and publish those stats. While filtering output is expected, the instructions encourage executing an external install script and enable behavior (automatic command rewriting, global history collection) that can affect many commands and leak local outputs if telemetry/export is enabled.
Install Mechanism
No formal install spec is present in the registry entry but SKILL.md instructs users to curl|bash an install.sh hosted on raw.githubusercontent.com under a different username (2233admin). Running an arbitrary raw GitHub script is high-risk. The repo also contains an install.sh, Homebrew formula, and packaging metadata — but the mismatch in authoritative repository/URL should be resolved before trusting an automated install.
Credentials
The skill declares no required environment variables or credentials, which is consistent for a local CLI proxy. However source files and docs show persistent tracking (SQLite history at ~/.local/share/rtk/history.db), telemetry modules (src/core/telemetry.rs) and analytics (src/analytics/*) with HTTP dependency (ureq). That implies device identifiers/hashed salts and command outputs could be collected and (potentially) transmitted; the skill does not request credentials but it does collect command output and metadata globally across projects.
Persistence & Privilege
always:false (good), but the code and docs show persistent local state (history.db, salt files with 0600 perms) and a hook system that can auto-rewrite commands before execution. Auto-Rewrite is documented as the default with '100% adoption' (silent interception). Silent rewriting of user commands and persistent tracking raise the blast radius if telemetry/networking or malicious install sources are involved.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install slash-tokens - 安装完成后,直接呼叫该 Skill 的名称或使用
/slash-tokens触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.34.3
Add origin story — how one dev cut their Claude Code bill from $200 to $40/month
v0.34.2
CLI proxy that slashes LLM token consumption by 60-90%. Prefix any command with rtk. 61 filters, single Rust binary, zero deps.
元数据
常见问题
Slash Tokens 是什么?
CLI proxy that reduces LLM token consumption by 60-90%. Prefix any dev command with 'rtk' to get filtered, compact output. Use for all Bash commands to save... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 125 次。
如何安装 Slash Tokens?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install slash-tokens」即可一键安装,无需额外配置。
Slash Tokens 是免费的吗?
是的,Slash Tokens 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Slash Tokens 支持哪些平台?
Slash Tokens 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Slash Tokens?
由 2233admin(@2233admin)开发并维护,当前版本 v0.34.3。
推荐 Skills