█

AI/TLDR

Buy me a coffee
Buy me a coffee

ByteRover CLI

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

Agent MemoryOpen core
Language
TypeScript
License
Elastic License 2.0
$curl -fsSL https://byterover.dev/install.sh | sh
IN SHORT

What is ByteRover CLI?

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.

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.

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

Or install from npm (all platforms)

Requires Node.js 20 or newer.

bashbash
npm install -g byterover-cli

Verify and start

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

bashbash
brv --version
cd your/project
brv

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.

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

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

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

How ByteRover CLI compares

ByteRover CLI alongside other open-source agent memory tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Claude-Mem★ 121kPersistent memory layer for coding agents: it captures what an agent does during a session, compresses it into semantic summaries, and injects the relevant parts back into later sessions.
Mem0★ 69.7kA memory layer that you add to existing LLM agents to extract, store, and recall user facts and preferences across sessions using vector, graph, and key-value backends.
Hindsight★ 64.3kAn agent memory server that stores facts and experiences, consolidates them into observations and mental models, and serves them back through retain, recall, and reflect operations.
MemPalace★ 60.8kLocal-first agent memory that stores conversations verbatim instead of summarising them, with a structured palace index, pluggable vector backends and an MCP server.
OpenViking★ 43.1kA context database that stores an agent's memories, resources, and skills as one browsable viking:// filesystem with three-tier (abstract/overview/details) on-demand loading.
Cognee★ 33.7kA graph-native memory engine that turns raw documents and conversations into a queryable knowledge graph for agents that need to build lasting knowledge.
Graphiti★ 33.2kA library that builds a temporal knowledge graph from an agent's conversations and data so facts can be tracked and queried as they change over time.
ByteRover CLI★ 4.9kA portable, version-controlled context tree that coding agents can share