← 返回 Skills 市场
theshadowrose

3-Layer Token Compressor — Cut AI API Costs 40-60%

作者 Shadow Rose · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ 安全检测通过
579
总下载
0
收藏
3
当前安装
2
版本数
在 OpenClaw 中安装
/install token-compressor
功能描述
Pre-process prompts through 3 compression layers before sending to paid APIs. Uses a local Ollama model to intelligently compress messages and summarize hist...
安全使用建议
This skill appears coherent and limited to local compression via an Ollama instance. Before installing, ensure you actually run Ollama locally (localhost:11434) and the host/port are not pointed to a remote service. Review and confirm the included src/token-compressor.js matches the shipped copy and that no modifications add external network calls or credential usage. Because compression alters message content, test the tool on non-sensitive data first to verify it preserves the details you need. Finally, if you require strong guarantees that data never leaves the machine, enforce network egress rules (firewall) so the process cannot reach external hosts even if misconfigured.
功能分析
Type: OpenClaw Skill Name: token-compressor Version: 1.1.0 The 'token-compressor' skill is a utility designed to reduce LLM API costs by using a local Ollama instance to compress prompts and summarize conversation history. The code in 'src/token-compressor.js' uses the standard Node.js 'http' module to communicate exclusively with 'localhost:11434', and there is no evidence of data exfiltration, unauthorized file access, or malicious execution patterns.
能力评估
Purpose & Capability
Name/description (3-layer compression using a local Ollama model) align with the provided code and README. The library only implements message compression, history summarization, and an in-memory cache — all coherent with the stated purpose.
Instruction Scope
SKILL.md and src/token-compressor.js consistently describe POSTing compression prompts to a local Ollama instance (localhost:11434). The instructions do not read unrelated files, do not request unrelated environment variables, and do not transmit data to external endpoints. The system prompts sent to the model are explicit and limited to compression/summarization instructions.
Install Mechanism
No install spec or external downloads are present; this is an instruction-only skill with an included JS source file. No archives or third-party packages are pulled by the skill itself.
Credentials
The skill requires no credentials, config paths, or environment variables. All runtime configuration is passed via the constructor; network I/O is targeted at a local host and nothing else.
Persistence & Privilege
Skill does not request permanent presence, does not modify other skills or system configs, and uses only an in-memory cache (no disk persistence). 'always' is false and autonomous invocation is the platform default (no additional privilege requested).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install token-compressor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /token-compressor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Fixed docs-code mismatch: README now describes actual Ollama-powered API (compressMessage/compressHistory/checkCache). SKILL.md declares Ollama runtime dependency and model prompts sent. Hardcoded 127.0.0.1 replaced with localhost.
v1.0.0
Initial upload
元数据
Slug token-compressor
版本 1.1.0
许可证 MIT-0
累计安装 3
当前安装数 3
历史版本数 2
常见问题

3-Layer Token Compressor — Cut AI API Costs 40-60% 是什么?

Pre-process prompts through 3 compression layers before sending to paid APIs. Uses a local Ollama model to intelligently compress messages and summarize hist... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 579 次。

如何安装 3-Layer Token Compressor — Cut AI API Costs 40-60%?

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

3-Layer Token Compressor — Cut AI API Costs 40-60% 是免费的吗?

是的,3-Layer Token Compressor — Cut AI API Costs 40-60% 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

3-Layer Token Compressor — Cut AI API Costs 40-60% 支持哪些平台?

3-Layer Token Compressor — Cut AI API Costs 40-60% 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 3-Layer Token Compressor — Cut AI API Costs 40-60%?

由 Shadow Rose(@theshadowrose)开发并维护,当前版本 v1.1.0。

💬 留言讨论