Skip to content

Tokenjuice

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:

Terminal window
openclaw config set plugins.entries.tokenjuice.enabled true

Equivalent:

Terminal window
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,
},
},
},
}
  • Compacts noisy exec and bash results before they are fed back into the session.
  • Keeps the original command execution untouched.
  • Preserves exact file-content reads and other commands that tokenjuice should leave raw.
  • Stays opt-in: disable the plugin if you want verbatim output everywhere.
  1. Enable the plugin.
  2. Start a session that can call exec.
  3. Run a noisy command such as git status.
  4. Check that the returned tool result is shorter and more structured than the raw shell output.
Terminal window
openclaw config set plugins.entries.tokenjuice.enabled false

Or:

Terminal window
openclaw plugins disable tokenjuice