# OpenClaw × Tokenade

> Tokenade hooks into OpenClaw; a few layers stay partial, detailed below.

## What `tokenade install` does

- Plugin in `~/.tokenade/openclaw-plugin`, registered with `openclaw plugins install`; it folds at `tool_result_persist` and adds the lean-output note at `before_agent_start`.
- Rules: `~/.claude/CLAUDE.md`.

## Coverage

- ✓ Command compaction — Supported
- ✓ Web search — Supported
- ✓ MCP optimization — Supported
- ✓ Code search — Supported
- ✓ Lean output — Supported
- ◐ Context optimization — Partial
- ✓ Re-read dedup — Supported
- ✓ Documents & media — Supported
- ✓ Privacy — Supported
- ✓ Secret redaction — Supported

## What isn't compressed

- Context is partial: the plugin sees each tool result but not the outgoing request, so history isn't trimmed when the prompt cache expires.

## Install

    npm install -g @tokenade/cli
    tokenade install
    tokenade login

`tokenade uninstall` restores every file it touched.

## Read next

- https://tokenade.net/tokenade.md
- https://tokenade.net/install.md
- https://tokenade.net/en/docs/compatibility
