docs/tools/tokenjuice.md
tokenjuice is an optional bundled 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 PI 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.
Fast path:
openclaw config set plugins.entries.tokenjuice.enabled true
Equivalent:
openclaw plugins enable tokenjuice
OpenClaw already ships the plugin. There is no separate plugins install
or tokenjuice install openclaw step.
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