Skip to main content

Configuration Reference

Context Engine

Added to openclaw.json:
The plugin participates in two lifecycle methods:
  • Assemble (before each model run) — Extracts the user’s query, runs brv query to retrieve curated knowledge from the context tree, and injects it as a systemPromptAddition.
  • After Turn (after each run completes) — Serializes the conversation turn and runs brv curate asynchronously to extract and store valuable knowledge back into the context tree.
The plugin delegates compaction to the OpenClaw runtime (ownsCompaction: false), so built-in auto-compaction continues to work as normal.

Automatic Memory Flush

Added to openclaw.json:

Uninstalling

Re-run the script and decline each feature when prompted:
The script cleanly removes:
  • Context Engine — Uninstalls the plugin and removes config entries
  • Memory Flush — Removes compaction config

Troubleshooting

Cause: OpenClaw has not been initialized.Solution: Install and run OpenClaw first: https://docs.openclaw.ai/install
Cause: Your ~/.openclaw/openclaw.json is corrupted.Solution: Restore from a backup. The script automatically reverts to the backup if an error occurs during patching. To restore manually:
Cause: The setup script attempted curl -fsSL https://byterover.dev/install.sh | sh but it failed (no network, sandboxed shell, etc.).Solution: Install the ByteRover CLI manually and re-run the setup script:
See the installation docs for offline or package-manager options.
Cause: The setup script attempted npx clawhub@latest install byterover --force but it failed (no npx on PATH, no network).Solution: Install npx/Node.js, then re-run the setup script. To install the skill manually:
Cause: The plugin is not installed, brv is not in PATH, or the plugin is not enabled.Solution:
  1. Check that the plugin is installed and active:
  2. Run the plugin diagnostics tool:
  3. Check that brv is in your PATH:
  4. Verify the plugin is enabled in config:

File Reference

Advanced

OpenClaw agents use multiple workspaces — one per agent:
The setup script scans openclaw.json for configured workspaces and updates their protocol files (AGENTS.md, TOOLS.md) with ByteRover usage instructions. The .brv/ context tree directory is created automatically on first use:
All ByteRover operations execute against the .brv directory in the current workspace.
To manually run ByteRover commands (brv pull, brv push, brv curate, brv query), first cd into the appropriate workspace directory so the CLI finds the correct .brv context tree.
If you already have OpenClaw memory files (daily logs in memory/), you can migrate them to ByteRover’s context tree. Navigate to your workspace and run:
ByteRover reads each file, extracts valuable insights, and organizes them into the context tree automatically:
You can point to any directory that contains your memory .md files.
This plugin is deprecated. Use the Context Engine plugin for new installations.
The legacy plugin uses OpenClaw’s hook system instead of the context engine lifecycle:
It intercepts the before_prompt_build event, extracts the user’s query, runs brv query to retrieve context, and prepends it as a ## ByteRover Context (Auto-Enriched) section.The legacy plugin does not automatically curate conversation turns — it only retrieves context.Files changed: ~/.openclaw/extensions/byterover/index.ts, openclaw.plugin.json and ~/.openclaw/openclaw.json

Next Steps

Onboard Context

Learn how to onboard context into ByteRover