Skip to main content
ByteRover x OpenClaw Give your OpenClaw agents persistent memory with ByteRover. One setup script installs context retrieval, automatic memory curation, and daily knowledge mining — so your agents remember decisions, patterns, and fixes across sessions.

Prerequisites

Ensure the following are installed and available in your PATH:
RequirementHow to install
Node.jsnodejs.org
OpenClaw CLI (openclaw)docs.openclaw.ai/install
The script verifies each prerequisite and stops with a clear error message if anything is missing. If the byterover Clawhub skill is not installed, the script will attempt to install it automatically.

Quick Start

curl -fsSL https://byterover.dev/openclaw-setup.sh | sh
The interactive script will:
  1. Verify prerequisites and back up your config
  2. Prompt you to enable each feature (Context Engine, Memory Flush, Knowledge Mining)
  3. Update your workspace protocol files (AGENTS.md, TOOLS.md) with ByteRover commands
For a minimal integration that only installs the ByteRover Skill (no plugin or cron), use the connector install instead.

Features

The setup script configures three optional features. You choose which to enable during the interactive setup.

Context Engine

Automatically retrieves relevant knowledge before each agent response and stores new insights after each turn. Installs the @byterover/byterover plugin as an OpenClaw context engine. Requires OpenClaw v2026.3.22+. You can also install directly with openclaw plugins install @byterover/byterover — see the full setup guide for details.

Automatic Memory Flush

Experimental — behavior may change in future updates.
Automatically curates insights to ByteRover when the agent’s context window approaches compaction. The agent reviews the session for architectural decisions, bug fixes, and patterns, then runs brv curate to save them before context is compacted. Learn more about compaction behavior.

Daily Knowledge Mining

Schedules a daily cron job that reads your latest session notes in memory/, extracts reusable knowledge, and runs brv curate to save findings to the context tree.
PropertyValue
NameByteRover Knowledge Miner
Schedule0 9 * * * (daily at 9 AM)
Sessionisolated
AnnouncementsEnabled
If a cron job with the same name already exists, the script skips creation. Learn more about cron automation.

Next Steps

Connect an LLM provider

ByteRover CLI needs an LLM provider to enable its agent features. Run one of the following to get started:
brv providers connect byterover         # Free, requires login with ByteRover account
brv providers connect <llm-provider>    # Requires 3rd API key: OpenAI, Anthropic ...
Supported list: OpenRouter, Anthropic, OpenAI, Google Gemini, xAI, Groq, Mistral, DeepInfra, Cohere, Together AI, Perplexity, Cerebras, Vercel, MiniMax, GLM, Moonshot AI, and OpenAI Compatible. To see all available providers: brv providers list

Reference

Configuration details, troubleshooting, and advanced topics