tokunseba
Reference

Retention

How long it keeps your history, and how to keep less.

Two windows, because the two things are very different sizes.

WhatDefaultWhy
The ledger and the blobs90 daysRequest metadata and the originals behind handles
Stored request bodies14 daysThe bulkiest thing stored, and only explain and replay read them
tokunseba retention show
 keeping          90d        oldest record  12 Jun 2026, 105 days ago
 bodies           14d        on disk        412 MB
 automatic prune  on         last ran       today

Changing it

tokunseba retention keep 30d
tokunseba retention keep 1y
tokunseba retention keep forever
tokunseba retention keep 24h --bodies 1h

Accepts 24h, 30d, 6w, 6m, 1y, or forever.

Pruning now

tokunseba retention prune              # to the configured window
tokunseba retention prune --keep 7d    # tighter, just this once
tokunseba prune --days 30              # the same thing, top level

Automatic pruning

tokunseba retention auto on
tokunseba retention auto off

Runs once a day. Records a pruned signal so the deletion is visible in your own reports rather than happening silently.

What is in each store

PathContainsSensitive
ledger.sqliteToken counts, timings, model, tool, project path, transform kindsPaths and model names, not content
blobs/The original text behind each handleYes, this is your code and your output
bodies/Whole request bodiesYes, and it includes your prompts
backups/Copies of the config files init editedOnly what was in them
logs/The proxy's own logNo content

Storing less in the first place

tokunseba config set proxy.store_bodies false

Stops whole request bodies being written at all. tokunseba explain and tokunseba replay stop working, because both read them. Everything else keeps working.

Credentials are scanned for before anything is written to either store. If one is found, nothing is written, and the marker in the replacement says so rather than naming a handle that does not exist. See Privacy and safety.

Deleting everything

tokunseba retention keep 24h
tokunseba retention prune

or simply:

rm -rf ~/.tokunseba

tokunseba uninstall deliberately does not do this for you. It prints the path and leaves the decision to you.

On this page