docs/tools/tokenjuice.md
tokenjuice is an optional external plugin that compacts noisy exec and bash
tool results after the command has already run.
It changes the returned tool_result, not the command itself. Tokenjuice does
not rewrite shell input, rerun commands, or change exit codes.
Today this applies to OpenClaw embedded runs and OpenClaw dynamic tools in the Codex app-server harness. Tokenjuice hooks OpenClaw's tool-result middleware and trims the output before it goes back into the active harness session.
Install once:
openclaw plugins install clawhub:@openclaw/tokenjuice
Then enable it:
openclaw config set plugins.entries.tokenjuice.enabled true
Equivalent:
openclaw plugins enable tokenjuice
If you prefer editing config directly:
{
plugins: {
entries: {
tokenjuice: {
enabled: true,
},
},
},
}
exec and bash results before they are fed back into the session.exec.git status.openclaw config set plugins.entries.tokenjuice.enabled false
Or:
openclaw plugins disable tokenjuice