# ByteRover CLI

> A portable, version-controlled context tree that coding agents can share

- Category: Agents & Automation / Agent Memory
- Language: TypeScript
- Licence: Elastic License 2.0
- Repository: https://github.com/campfirein/byterover-cli
- Website: https://docs.byterover.dev/
- Canonical page: https://ai-tldr.dev/tools/byterover-cli/

## In short

ByteRover CLI — the `brv` command, formerly Cipher — gives AI coding agents persistent, structured memory. It sits in the Agent Memory category of the Agents & Automation tools and is open-source, written in TypeScript and licensed Elastic License 2.0. To get started: install via the shell script (macOS and Linux).

## Overview

ByteRover CLI — the `brv` command, formerly Cipher — gives AI coding agents persistent, structured memory. Rather than letting each tool accumulate its own opaque history, it asks you to curate project knowledge into an explicit context tree that can be synced, reviewed and shared across tools and teammates.

Run `brv` in any project directory and it opens an interactive REPL, built with React and Ink, powered by whichever LLM you configure — the CLI supports 20 providers including Anthropic, OpenAI, Google, Groq, Mistral, xAI and DeepSeek. The agent understands your codebase through an agentic map and ships 24 built-in tools for code execution, file operations, knowledge search and memory management. A web dashboard (`brv webui`) covers curating and querying context outside the terminal.

The context tree is versioned like source code: branch, commit, merge, push and pull, with a review workflow that holds curate operations as pending changes to approve or reject. Cloud sync is additive rather than required — everything works locally by default, and ByteRover Cloud adds team sharing and persistence across machines. MCP integration and a hub of connectors, skills and bundles let the same memory reach 22+ coding agents including Cursor, Claude Code, Windsurf and Cline.

The project reports benchmark results from the production codebase on two long-term conversational-memory benchmarks: 96.1% overall accuracy on LoCoMo across 1,982 questions and 272 documents, and 92.8% on LongMemEval-S across 500 questions and 23,867 documents, both measured as LLM-as-judge accuracy. The accompanying paper is on arXiv. Note that the CLI is released under the Elastic License 2.0, which is source-available rather than OSI open source.

## What it does

- Curated context tree with Git-like version control — branch, commit, merge, push and pull
- Interactive REPL and TUI (`brv`), plus a web dashboard via `brv webui`
- 20 LLM providers and 24 built-in agent tools for code execution, file ops and knowledge search
- Review workflow that stages curate operations for approval or rejection
- Cloud sync for sharing context across machines and teammates, with local-only as the default
- MCP integration and a connector/skill hub reaching 22+ coding agents (Cursor, Claude Code, Windsurf, Cline and more)
- Published LoCoMo and LongMemEval-S benchmark results measured on the production codebase

## Getting started

Install the bundled binary or the npm package, then run brv inside a project — the REPL auto-configures on first run, with no setup step.

1. Install via the shell script (macOS and Linux)

   Everything is bundled, so Node.js is not required. Supported platforms are macOS ARM64, macOS x64, Linux x64 and Linux ARM64.

```bash
curl -fsSL https://byterover.dev/install.sh | sh
```

2. Or install from npm (all platforms)

   Requires Node.js 20 or newer.

```bash
npm install -g byterover-cli
```

3. Verify and start

   Run brv from inside a project directory to open the REPL. Type / to list every available command.

```bash
brv --version
cd your/project
brv
```

4. Curate a fact, then query it

   Curate pins a piece of project knowledge, optionally anchored to a file; query asks the agent a question against the stored context tree.

```text
/curate "Auth uses JWT with 24h expiry" @src/middleware/auth.ts
/query How is authentication implemented?
```

## When to use it

- Stop re-explaining the same project conventions to a coding agent at the start of every session
- Carry one shared knowledge base between Cursor, Claude Code, Windsurf and Cline instead of per-tool memory
- Review what an agent wants to remember before it lands, the way you would review a pull request
- Onboard a teammate by handing them the project's curated context tree rather than a wiki page
- Branch and merge project context alongside a long-running feature branch
