# Token saver config

> Token saver config is an open-source agent skill for developer tools. Adjust, inspect and troubleshoot token-saver compression settings and hooks. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ppgranger/token-saver/tree/main/skills/token-saver-config
- **Repository:** https://github.com/ppgranger/token-saver
- **GitHub stars:** 170
- **License:** Apache-2.0
- **Skill name:** token-saver-config
- **Collection:** https://github.com/ppgranger/token-saver
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill helps an agent check the status of the token-saver tool, including lifetime and per-command compression statistics, and explain whether a given shell command gets routed through a compression processor. It documents the layered configuration order, from built-in defaults through a global config file and project file to environment variables, along with the settings users most often change, such as the master enable switch, minimum compression ratio, processor exclusions and wrap timeout.

For troubleshooting, the skill walks through a fixed sequence: confirming Python 3.10 or newer is available, running the explain command, turning on debug logging to a hook log file, and testing the pre-tool hook script directly with a sample Bash payload. It also notes a security rule that some settings can only be placed in the global config or environment variables, not in project-level files.

The skill expects the token-saver command-line tool and Python 3.10+ to be installed. It is part of a Python project under Apache-2.0 and ships with a Claude Code plugin marketplace entry.

## When your agent uses it

> Configure and diagnose token-saver compression settings. Use when the user asks about adjusting compression levels, checking processor status, debugging hook issues, or reviewing savings statistics.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ppgranger/token-saver/tree/HEAD/skills/token-saver-config)
- [License: Apache-2.0](https://github.com/ppgranger/token-saver/tree/HEAD/skills/token-saver-config)

## Features

- **Compression statistics review:** Shows lifetime and per-command compression savings, with optional JSON output for scripting.
- **Command routing explanation:** Explains whether a command is compressible, which processor would handle it, and why it may be excluded.
- **Dry-run benchmarking:** Measures how much a command's output would compress without replacing the real output.
- **Layered settings guidance:** Describes the precedence of defaults, global config, project config and environment variables.
- **Hook diagnostics:** Walks through enabling debug logs and testing the pre-tool hook with a sample payload.
- **Processor exclusion control:** Covers how to disable specific processors such as docker through configuration.

## Good for

- Check how much output compression has saved so far
- Find out why a particular git or npm command was not compressed
- Turn off compression for a specific tool like docker
- Raise the minimum compression ratio to discard weak results
- Debug a token-saver hook that is not rewriting commands

## Install

### Claude Code

This skill ships in the `token-saver` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ppgranger/token-saver
/plugin install token-saver@token-saver-marketplace
```

Or copy only this skill to `~/.claude/skills/token-saver-config`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ppgranger/token-saver.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/token-saver-config &&
cp -R "$tmp/skills/token-saver-config" ~/.claude/skills/token-saver-config &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/token-saver-config` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/token-saver-config` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ppgranger/token-saver.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/token-saver-config &&
cp -R "$tmp/skills/token-saver-config" ~/.agents/skills/token-saver-config &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/token-saver-config` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/token-saver-config` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ppgranger/token-saver.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/token-saver-config &&
cp -R "$tmp/skills/token-saver-config" ~/.cursor/skills/token-saver-config &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/token-saver-config` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ppgranger/token-saver.git --path skills/token-saver-config
```

Or copy the folder to `~/.gemini/skills/token-saver-config` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/token-saver-config`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ppgranger/token-saver.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/token-saver-config &&
cp -R "$tmp/skills/token-saver-config" ~/.copilot/skills/token-saver-config &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/token-saver-config` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ppgranger/token-saver.git
```

Then copy `token-saver/skills/token-saver-config` into your agent's skills folder as `token-saver-config`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Token saver config need to run?

It needs the token-saver command-line tool and Python 3.10 or newer available in the PATH.

### Can the agent change settings with a command?

No CLI subcommand writes config files. The skill directs users to edit ~/.token-saver/config.json directly or set TOKEN_SAVER_* environment variables.

### Why are some settings ignored in a project file?

Settings such as disabled_processors and redaction_allowlist are only honored from the global config or environment variables, not from a project-level .token-saver.json.

### Where does debug logging go?

With TOKEN_SAVER_DEBUG set to true, logs are written to ~/.token-saver/hook.log, or to the APPDATA token-saver folder on Windows.

### How do I install Token saver config in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/token-saver-config to use it in all your projects, or to .claude/skills/token-saver-config in one project. Or install the token-saver plugin, which includes it: /plugin marketplace add ppgranger/token-saver, then /plugin install token-saver@token-saver-marketplace.

### Does Token saver config run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Token saver config?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Token saver config?

The closest alternatives to Token saver config are Manage context, Session waste report, Entroly context control, Guardrail tester and Session hardening.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Manage context](https://ai-powered.com/skills/manage-context): Manage context is an open-source agent skill for developer tools.
- [Session waste report](https://ai-powered.com/skills/session-waste-report): Session waste report is an open-source agent skill for developer tools.
- [Entroly context control](https://ai-powered.com/skills/entroly-context-control): Entroly context control is an open-source agent skill for developer tools.
- [Guardrail tester](https://ai-powered.com/skills/guardrail-tester): Guardrail tester is an open-source agent skill for security.
- [Session hardening](https://ai-powered.com/skills/session-hardening): Session hardening is an open-source agent skill for developer tools.
- [CLI creator](https://ai-powered.com/skills/cli-creator): CLI creator is a free agent skill for developer tools.
- [Context budget](https://ai-powered.com/skills/context-budget): Context budget is an open-source agent skill for developer tools.
- [Configuration](https://ai-powered.com/skills/configuration-spark-arena): Configuration is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/token-saver-config
