ByteRover CLI: Portable Memory Layer for Autonomous AI Coding Agents
Summary
ByteRover CLI (brv) provides persistent, structured memory for AI coding agents, enabling developers to curate project knowledge into a context tree. It facilitates cloud synchronization and sharing across tools and teammates. This interactive REPL CLI supports various LLM providers and offers extensive tools for memory management and code execution.
Repository Info
Tags
Click on any tag to explore related repositories
Introduction
ByteRover CLI (brv) is an interactive REPL command-line interface designed to give AI coding agents persistent, structured memory. It allows developers to curate project knowledge into a context tree, sync it to the cloud, and share it across various tools and teammates. Essentially, it acts as a portable memory layer for autonomous coding agents, enhancing their ability to understand and interact with your codebase over time.
Key features include:
- Interactive TUI with REPL interface
- Context tree and knowledge storage management
- Support for over 20 LLM providers (Anthropic, OpenAI, Google, Groq, Mistral, xAI, and more)
- 24 built-in agent tools for code execution, file operations, knowledge search, and memory management
- Cloud sync with push/pull capabilities
- Integration with 22+ AI coding agents (Cursor, Claude Code, Windsurf, Cline, etc.)
Installation
Getting started with ByteRover CLI is straightforward. You can install it using a shell script for macOS and Linux, or via npm for all platforms.
Shell Script (macOS & Linux)
No Node.js required, everything is bundled.
curl -fsSL https://byterover.dev/install.sh | sh
Supported platforms: macOS ARM64, Linux x64, Linux ARM64.
npm (All Platforms)
Requires Node.js >= 20.
npm install -g byterover-cli
Verify Installation
After installation, verify it by checking the version:
brv --version
Examples
To begin using ByteRover CLI, navigate to your project directory and run the brv command. The REPL auto-configures on the first run.
cd your/project
brv
Inside the REPL, you can use commands like /curate to add context or /query to retrieve information:
/curate "Auth uses JWT with 24h expiry" @src/middleware/auth.ts
/query How is authentication implemented?
For cloud synchronization, you can push and pull your context:
brv push # Sync local context to cloud
brv pull # Sync from cloud to local
Why Use ByteRover CLI?
ByteRover CLI addresses a critical challenge in AI-powered development: providing agents with persistent, structured memory. This allows AI agents to learn and retain knowledge about your codebase across sessions, leading to more effective and context-aware assistance.
Its comprehensive feature set, including broad LLM provider support, a rich set of agent tools, and seamless cloud synchronization, makes it a powerful asset for any developer working with AI coding agents. Furthermore, ByteRover CLI has demonstrated impressive performance in long-term conversational memory benchmarks, achieving 96.1% accuracy on LoCoMo and 92.8% on LongMemEval-S, ensuring reliable and accurate knowledge retrieval. It integrates with many existing AI coding agents, making it a versatile addition to your development workflow.
Links
- GitHub Repository: https://github.com/campfirein/byterover-cli
- Documentation: https://docs.byterover.dev
- Discord Community: https://discord.com/invite/UMRrpNjh5W