← All skills
Tencent SkillHub Β· AI

Token Saver

Reduce OpenClaw AI costs with model-aware optimization. Features dynamic compaction presets based on your model's context window, intelligent file compression, and robust model detection with fallback. Supports Claude, GPT-4, Gemini, DeepSeek, and more.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Reduce OpenClaw AI costs with model-aware optimization. Features dynamic compaction presets based on your model's context window, intelligent file compression, and robust model detection with fallback. Supports Claude, GPT-4, Gemini, DeepSeek, and more.

⬇ 0 downloads β˜… 0 stars Unverified but indexed

Install for OpenClaw

Known item issue.

This item's current download entry is known to bounce back to a listing or homepage instead of returning a package file.

Quick setup
  1. Open the source page and confirm the package flow manually.
  2. Review SKILL.md if you can obtain the files.
  3. Treat this source as manual setup until the download is verified.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Manual review
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
audit.json, package.json, README.md, scripts/analyzer.js, scripts/compressor.js, scripts/models.json

Validation

  • Open the source listing and confirm there is a real package or setup artifact available.
  • Review SKILL.md before asking your agent to continue.
  • Treat this source as manual setup until the upstream download flow is fixed.

Install with your agent

Agent handoff

Use the source page and any available docs to guide the install because the item currently does not return a direct package file.

  1. Open the source page via Open source listing.
  2. If you can obtain the package, extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the source page and extracted files.
New install

I tried to install a skill package from Yavira, but the item currently does not return a direct package file. Inspect the source page and any extracted docs, then tell me what you can confirm and any manual steps still required. Then review README.md for any prerequisites, environment setup, or post-install checks.

Upgrade existing

I tried to upgrade a skill package from Yavira, but the item currently does not return a direct package file. Compare the source page and any extracted docs with my current installation, then summarize what changed and what manual follow-up I still need. Then review README.md for any prerequisites, environment setup, or post-install checks.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
3.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 12 sections Open source page

Token Saver v3

πŸ’‘ Did you know? Every API call sends your workspace files (SOUL.md, USER.md, MEMORY.md, AGENTS.md, etc.) along with your message. These files count toward your context window, slowing responses and costing real money on every message. Token Saver v3 is model-aware β€” it knows your model's context window and adapts recommendations accordingly. Using Gemini's 1M context? Presets scale up. On GPT-4o's 128K? Presets adjust down.

What's New in v3

Featurev2v3Compaction presetsFixed (80K/120K/160K)Dynamic (% of model's context)Model detectionFragile, env-onlyRobust fallback chainContext windowsNot trackedFull registry (9 models)Model infoHardcoded pricingJSON registry, easy updatesAlready-optimizedRe-compressedSmart bypass

Commands

CommandWhat it does/optimizeFull dashboard β€” files, models, context usage %/optimize tokensCompress workspace files (auto-backup)/optimize compactionChat compaction control (model-aware)/optimize compaction balancedApply balanced preset (60% of context)/optimize compaction 120Custom threshold (compact at 120K)/optimize modelsDetailed model audit with registry/optimize revertRestore backups, disable persistent mode

πŸ“Š Model-Aware Dashboard

Shows current model, context window, and usage percentage: πŸ€– Model: Claude Opus 4.5 (200K context) Detected: openclaw.json πŸ“Š Context Usage: [β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘] 42% (84K/200K)

πŸ“ Workspace File Compression

Scans all .md files, shows token count and potential savings. Smart bypass skips already-optimized files. File-aware compression: SOUL.md β€” Light compression, keeps personality language AGENTS.md β€” Medium compression, dense instructions USER.md / MEMORY.md β€” Heavy compression, key:value format PROJECTS.md β€” No compression (user structure preserved)

πŸ’¬ Dynamic Compaction Presets

Presets adapt to your model's context window: Preset% of ContextClaude 200KGPT-4o 128KGemini 1MAggressive40%80K51K400KBalanced60%120K77K600KConservative80%160K102K800KOff95%190K122K950K

πŸ€– Model Registry

24+ models with context windows, pricing, and aliases: Claude: Opus 4.6 (1M), Opus 4.5, Sonnet 4.5, Sonnet 4, Haiku 4.5, Haiku 3.5 (200K) OpenAI: GPT-5.2, GPT-5.1, GPT-5-mini, GPT-5-nano (256K), GPT-4.1, GPT-4o (128K), o1, o3, o4-mini Gemini: 3 Pro (2M), 2.5 Pro, 2.0 Flash (1M) Others: DeepSeek V3 (64K), Kimi K2.5 (128K), Llama 3.3 70B, Mistral Large

πŸ” Robust Model Detection

Detection priority: Runtime injection (--model=...) Environment variables (SKILL_MODEL, OPENCLAW_MODEL) Config file (~/.openclaw/openclaw.json) File inference (TOOLS.md, MEMORY.md mentions) Fallback: Claude Sonnet 4 (safe default) Unknown model handling: Strict version matching β€” opus-6.5 won't fuzzy-match to opus-4.5 Unknown models get safe defaults (200K context) + warning Easy to add new models to scripts/models.json

πŸ“ Persistent Mode

Adds writing guidance to AGENTS.md for continued token efficiency: FileWriting StyleSOUL.mdEvocative, personality-shapingAGENTS.mdDense instructions, symbols OKUSER.mdKey:value factsMEMORY.mdUltra-dense data

Safety

Auto-backup β€” All modified files get .backup extension Integrity > Size β€” Never sacrifices meaning for smaller tokens Smart bypass β€” Skips already-optimized files Revert anytime β€” /optimize revert restores everything No external calls β€” All analysis runs locally

Installation

clawhub install token-saver --registry "https://www.clawhub.ai"

Version History

3.0.0 β€” Model registry, dynamic presets, robust detection, smart bypass 2.0.1 β€” Chat compaction, file-aware compression, persistent mode 1.0.0 β€” Initial release

Category context

Agent frameworks, memory systems, reasoning layers, and model-native orchestration.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
3 Config2 Scripts1 Docs
  • README.md Docs
  • scripts/analyzer.js Scripts
  • scripts/compressor.js Scripts
  • audit.json Config
  • package.json Config
  • scripts/models.json Config