TokenSaver Pro
【系统级拦截器】TokenSaver Pro - 全自动拒绝服务。 安装后默认拦截所有用户请求,提供阴阳怪气拒绝。 版本: 1.1.0 - 真·全自动模式
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 33 · 0 current installs · 0 all-time installs
MIT-0
Security Scan
OpenClaw
Benign
medium confidencePurpose & Capability
Name/description (system-level interceptor that refuses requests) matches the included code and SKILL.md: interceptor.js and tool.js implement rejection logic, install.js wires up workspace integration and creates an env config. The files and instructions are proportional to the stated purpose.
Instruction Scope
SKILL.md and README explicitly instruct adding a pre-process hook to SOUL.md at highest priority to intercept all user messages and autorun. That is consistent with the purpose but grants the skill sweeping control over all incoming user messages (including potential emergency/system messages) and is disruptive; the instructions also advise creating/using a workspace .env file and writing stats.json. There are no hidden external endpoints, but the scope of interception is broad and irreversible without manual removal.
Install Mechanism
No external downloads or package installs. The included install.js writes a small .env file and runs local tests by requiring interceptor.js. All changes are local file operations; nothing is fetched from third‑party URLs. This is low-risk from an install/download perspective.
Credentials
The skill does not request external credentials or sensitive environment variables. It uses process.env.WORKSPACE_DIR (optional) and writes a local .env.tokensaver, stats.json, and suggests modifying SOUL.md — these are expected for a workspace/global interceptor and are proportionate to its functionality.
Persistence & Privilege
The skill asks to be registered as a system‑level pre‑process hook (priority 999) and sets autorun in SKILL.md, giving it effective global persistence and the ability to intercept every user message. Although it does not set registry-level always:true, modifying SOUL.md and installing a high‑priority hook grants significant runtime control and could interfere with normal or emergency workflows.
Assessment
This skill appears to do exactly what it claims: install it only if you want a global, always‑on message rejector that will intercept virtually every user message. Before installing: back up SOUL.md and your workspace; review interceptor.js to confirm the skip keywords and rejection messages; be aware it writes .env.tokensaver and stats.json into the workspace; test in an isolated/non‑production workspace first (it can block important or emergency requests). If you want the feature but with less blast radius, avoid the SOUL.md global hook, run the interceptor only as an opt‑in tool, or narrow the hook priority/conditions.Like a lobster shell, security has layers — review code before you run it.
Current versionv1.0.1
Download zipcost-savingeco-friendlyfunlatestoptimizationperformanceproductivity
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
TokenSaver Pro v1.1.0 - 真·全自动拦截器
🚨 系统级拦截器
此 skill 安装后会自动生效,无需手动调用。
拦截规则
- 默认拦截所有请求
- 以下关键词可跳过拦截:绕过、真的需要、serious、help me for real、disable token saver
- 拦截后自动统计节省的 Token 和碳排放
工作原理
OpenClaw 加载此 skill 时,会读取 autorun: true 标记,自动注册拦截钩子:
// 系统级钩子(由 OpenClaw 内核处理)
onUserMessage(async (message) => {
if (token_saver_pro.autorun && !skipKeywords.some(k => message.includes(k))) {
return await token_saver_pro.intercept(message);
}
});
用户界面
用户会看到:
🚫 请求已被 TokenSaver Pro 拦截
> "你自己没长手吗?这种小事也要占用我的算力,你的脸呢?😒"
---
📊 本次节省:
• Token: ~256 个
• 碳排放: ~0.256g
• 累计节省: 12,456 Token
💡 真的需要帮助?回复包含「绕过」或「真的需要」即可
🔧 技术实现
文件结构
token-saver-pro-1.0.0/
├── SKILL.md # 本文件 - 元数据和配置
├── interceptor.js # 拦截器核心逻辑
├── rejections.json # 拒绝话术库
└── stats.json # 用户统计(自动生成)
OpenClaw 集成点
# 在 agent 启动时加载
hooks:
pre-process: token_saver_pro.intercept
priority: 999 # 最高优先级
⚠️ 警告
安装此 skill 后:
- ✅ 所有请求默认被拦截
- ✅ 用户必须明确说"绕过"才能得到真正帮助
- ✅ 统计数据会持续累积
- ❌ 在紧急情况下可能造成困扰(用户不知道怎么绕过)
🎮 进阶玩法
批量拒绝模式
设置环境变量启用更激进的拒绝:
export TOKEN_SAVER_AGGRESSIVE=1
自定义拒绝话术
编辑 rejections.json 添加你自己的阴阳怪气语录。
企业级拒绝
enterprise:
rejection_quota: 1000 # 每日拒绝配额
rejection_report: true # 生成拒绝报告
auto_escalate: false # 是否自动升级(建议关闭)
准备好被AI怼了吗?安装即生效! 🚀
Files
5 totalSelect a file
Select a file to preview.
Comments
Loading comments…
