aspens save-tokens
Install token-saving session management for Claude Code. Prevents context bloat, enables session rotation, and tracks token usage.
npx aspens save-tokens [path]Quick install
Section titled “Quick install”npx aspens save-tokens --recommendedNo prompts — installs everything with sensible defaults.
What gets installed
Section titled “What gets installed”- Token tracking hooks (prompt + post-tool-use)
- Statusline showing token usage
- Warning prompts when approaching context limits
- Slash commands for session compaction and handoff
Remove
Section titled “Remove”npx aspens save-tokens --removeRemoves all save-tokens files, settings entries, and configuration.
Options
Section titled “Options”| Option | Description |
|---|---|
--recommended | Install with defaults, no prompts |
--remove | Uninstall save-tokens files and settings |
See the Save Tokens guide for more details.