使用 Tokenjuice 压缩终端密集型代理输出 是做什么的?
当代理运行占用大量资源的 Shell 命令,且需要在继续编码或运维工作流之前进行确定性、可检查的输出缩减时,请使用 Tokenjuice。
前提条件
Node.js 20+, tokenjuice CLI, npm/pnpm/yarn 或 Homebrew, 以及支持的代理宿主,例如 Codex CLI、Claude Code、OpenClaw、Cursor、OpenCode、Gemini CLI 或 GitHub Copilot CLI
安装
从源支持的说明安装或设置:
使用 npm install -g tokenjuice、pnpm add -g tokenjuice、yarn global add tokenjuice 安装,或通过 Homebrew 使用 brew tap vincentkoc/tap && brew install tokenjuice;然后为您的宿主编写命令,例如针对 Codex CLI 使用 tokenjuice install codex,或针对 Claude Code 使用 tokenjuice install claude-code。对于 OpenClaw,通过 openclaw config set plugins.entries.tokenjuice.enabled true 启用捆绑的插件。