Cipher 标志

Cipher

组织热门
campfirein

ByteRover CLI (brv) - The portable memory layer for autonomous coding agents (formerly Cipher)

发布者campfirein
代码仓库byterover-cli
语言TypeScript
复刻数
454
星标数
5K
可用工具
0
传输类型stdio
分类
链接
  • 将工具接入 AI 工作流

    Cipher 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 5K 个 Star 和 454 个 Fork。

ByteRover CLI

Overview

ByteRover CLI (brv) gives AI coding agents persistent, structured memory. It lets developers curate project knowledge into a context tree, sync it to the cloud, and share it across tools and teammates.

Run brv in any project directory to start an interactive REPL powered by your choice of LLM. The agent understands your codebase through an agentic map, can read and write files, execute code, and store knowledge for future sessions.

📄 Read the paper for the full technical details.

Or download our self-hosted PDF version of the paper here.

Key Features:

  • 🌐 Web dashboard for curating and querying context (brv webui)
  • 🖥️ Interactive TUI with REPL interface (React/Ink)
  • 🧠 Context tree and knowledge storage management
  • 🔀 Git-like version control for the context tree (branch, commit, merge, push/pull)
  • 🤖 20 LLM providers (Anthropic, OpenAI, Google, Groq, Mistral, xAI, DeepSeek, and more)
  • 🛠️ 24 built-in agent tools (code exec, file ops, knowledge search, memory management)
  • 🔄 Cloud sync with push/pull
  • 👀 Review workflow for curate operations (approve/reject pending changes)
  • 🔌 MCP (Model Context Protocol) integration
  • 📦 Hub and connectors ecosystem for skills and bundles
  • 🤝 Works with 22+ AI coding agents (Cursor, Claude Code, Windsurf, Cline, and more)
  • 🏢 Enterprise proxy support

Benchmark Results

All benchmarks are run using the production byterover-cli codebase in this repository - no separate research prototype.

We evaluate on two long-term conversational memory benchmarks:

  • LoCoMo - ultra-long conversations (~20K tokens, 35 sessions) testing single-hop, multi-hop, temporal, and open-domain retrieval.
  • LongMemEval-S - large-scale benchmark (23,867 docs, ~48 sessions per question) testing 6 memory abilities including knowledge update, temporal reasoning, and multi-session synthesis.

LoCoMo - 96.1% overall accuracy (1,982 questions, 272 docs).

LongMemEval-S - 92.8% overall accuracy (500 questions, 23,867 docs).

All metrics are LLM-as-Judge accuracy (%). See the paper, or self-hosted PDF for full details.

Quick Start

Shell Script (macOS & Linux)

No Node.js required - everything is bundled.

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

Supported platforms: macOS ARM64, macOS x64 (Intel), Linux x64, Linux ARM64.

npm (All Platforms)

Requires Node.js >= 20.

bash
npm install -g byterover-cli

Verify

bash
brv --version

First Run

bash
cd your/project
brv

The REPL auto-configures on first run - no setup needed. Type / to discover all available commands:

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

ByteRover Cloud

ByteRover Cloud is a hosted platform for teams to sync, share, and manage context knowledge across projects and machines. Everything works locally by default - Cloud adds collaboration and persistence without changing your workflow.

Sign in from the dashboard, or run brv login with an API key.

  • 🔄 Team context sync — push and pull shared knowledge across teammates
  • 📂 Shared spaces — organize context across multiple projects and teams
  • 💻 Multi-machine access — sync your context tree across devices with cloud backup
  • 💻 Multi-machine access — sync your context tree across devices
  • 🧠 Built-in hosted LLM — start immediately with limited free usage
  • 👥 Team management — manage members, spaces, and permissions via the web app
  • 📊 Usage analytics — track seat allocation and monthly credit consumption
  • 🔒 SOC 2 Type II certified infrastructure with privacy mode

Most users only need brv webui. The commands below are for advanced users and automation. Run brv --help for the full, up-to-date reference.

Core Workflow

bash
brv                  # Start interactive REPL
brv webui            # Open the ByteRover dashboard (primary UI)
brv status           # Show project and daemon status
brv curate           # Add context to knowledge storage
brv curate view      # View curate history
brv query            # Query context tree and knowledge
brv review pending   # List pending review operations
brv review approve   # Approve curate operations
brv review reject    # Reject curate operations

Sync (Legacy)

bash
brv push             # Legacy — migrate or snapshot context to cloud
brv pull             # Legacy — restore context from cloud snapshot

Use brv vc push / brv vc pull for version-controlled sync going forward.

Version Control

bash
brv vc init              # Initialize version control for context tree
brv vc status            # Show version control status
brv vc add               # Stage files for the next commit
brv vc commit            # Save staged changes as a commit
brv vc log               # Show commit history
brv vc branch            # List, create, or delete branches
brv vc checkout          # Switch branches
brv vc merge             # Merge a branch into the current branch
brv vc clone             # Clone a ByteRover space repository
brv vc push              # Push commits to ByteRover cloud
brv vc pull              # Pull commits from ByteRover cloud
brv vc fetch             # Fetch refs from ByteRover cloud
brv vc remote            # Show current remote origin
brv vc remote add        # Add a named remote
brv vc remote set-url    # Update a remote URL
brv vc config            # Get or set commit author
brv vc reset             # Unstage files or undo commits

Providers & Models

bash
brv providers list       # List available LLM providers
brv providers connect    # Connect to an LLM provider
brv providers switch     # Switch active provider
brv providers disconnect # Disconnect a provider
brv model list           # List available models
brv model switch         # Switch active model

Hub & Connectors

bash
brv hub list             # List available hub packages
brv hub install          # Install a hub package
brv hub registry add     # Add a custom registry
brv hub registry list    # List registries
brv hub registry remove  # Remove a registry
brv connectors list      # List connectors
brv connectors install   # Install a connector

Spaces (Deprecated)

bash
brv space list       # Deprecated — use web dashboard
brv space switch     # Deprecated — use brv vc clone

Settings

brv ships with operational defaults that suit most users. The brv settings command group lets you inspect and override these values.

bash
brv settings                    # List all settings with current and default values
brv settings list               # Alias for `brv settings`
brv settings get <key>          # Show current and default for one key
brv settings set <key> <value>  # Update one key (restart required)
brv settings reset <key>        # Restore one key to its default (restart required)

Available keys:

KeyDefaultWhat it controls
agentPool.maxSize10Maximum concurrent active projects (one agent process per project)
agentPool.maxConcurrentTasksPerProject5Parallel brv curate / brv query tasks within a single project
llm.iterationBudgetMs600000Wall-clock budget for the agentic loop on one task, in milliseconds
llm.requestTimeoutMs120000Wall-clock budget for one direct LLM HTTP request, in milliseconds
taskHistory.maxEntries1000Number of task records brv query-log view retains per project

Raise llm.iterationBudgetMs when a single brv curate or brv query on a slow local LLM (Ollama on CPU, heavy quantization, cold model load) routinely hits the default 10-minute cap on legitimate work. Lower it on cloud providers when you want a stuck task to surface as an error faster instead of waiting out the full budget. The cap is enforced per task, not per request.

llm.requestTimeoutMs bounds one HTTP request to the LLM. A frozen Ollama or LM Studio connection aborts at this boundary and the retry layer treats it as a transient error rather than wasting the full iteration budget. The setting must satisfy llm.requestTimeoutMs <= llm.iterationBudgetMs; the daemon rejects writes that violate the rule and falls back to defaults for both keys when the file violates it at startup. Suggested presets:

Profilellm.requestTimeoutMsllm.iterationBudgetMs
Cloud120000 (2 min)600000 (10 min)
Local LLM, fast GPU300000 (5 min)1200000 (20 min)
Local LLM, CPU / heavy quantization900000 (15 min)3600000 (60 min)

Settings persist in settings.json under the brv global data directory:

  • Linux: $XDG_DATA_HOME/brv/settings.json (defaults to ~/.local/share/brv/settings.json)
  • macOS: ~/Library/Application Support/brv/settings.json
  • Windows: %LOCALAPPDATA%/brv/settings.json

Set the BRV_DATA_DIR environment variable to override the directory.

Changes apply after brv restart. The daemon reads the file once at startup and does not observe file changes during runtime. This keeps every running agent on the same configuration for the lifetime of the daemon.

Example session:

bash
$ brv settings list
KEY                                       CURRENT  DEFAULT  RESTART?
agentPool.maxSize                         10       10       yes
agentPool.maxConcurrentTasksPerProject    5        5        yes
taskHistory.maxEntries                    1000     1000     yes

$ brv settings set agentPool.maxSize 20
Setting saved. Run `brv restart` to apply.

$ brv settings get agentPool.maxSize
20  (default: 10)

Every command supports --format json for scripting. Validation errors (unknown key, value out of range) exit with code 1 and a message naming the key.

Other

bash
brv mcp              # Start MCP server
brv login            # Authenticate to ByteRover
brv logout           # Disconnect and clear credentials
brv locations        # List registered projects
brv restart          # Restart daemon
brv debug            # Debug mode

Run brv --help for the full command reference.

ByteRover CLI supports 20 LLM providers out of the box. Connect and switch providers from the dashboard, or use brv providers connect / brv providers switch.

ProviderDescription
AnthropicClaude models
OpenAIGPT models
GoogleGemini models
GroqFast inference
MistralMistral models
xAIGrok models
CerebrasFast inference
CohereCommand models
DeepInfraOpen-source model hosting
DeepSeekDeepSeek V3 and R1 reasoning models
OpenRouterMulti-provider gateway
PerplexitySearch-augmented models
TogetherAIOpen-source model hosting
VercelAI SDK provider
MinimaxMinimax models
MoonshotKimi models
GLMGLM models
GLM Coding PlanGLM models on Z.AI Coding Plan subscription
OpenAI-CompatibleAny OpenAI-compatible API
ByteRoverByteRover's hosted models

Worktrees and Knowledge Sources

Vocabulary

  • Worktree link — a subdirectory pointer to a parent project (brv worktree)
  • Source — a read-only reference to another project's knowledge (brv source)
  • Origin — where an indexed search result came from (local vs shared)

ByteRover can run from a linked subdirectory without creating a nested .brv/.

  • projectRoot: the directory that owns .brv/config.json
  • worktreeRoot: the linked worktree directory, or projectRoot when unlinked
  • clientCwd: the shell cwd where you ran brv

When you run brv query or brv curate from a linked worktree, implicit defaults use worktreeRoot so scope stays stable even if clientCwd drifts deeper into the package. Explicit relative paths that you pass yourself, such as brv curate -f ./src/auth.ts, still resolve from clientCwd to match normal shell behavior.

Use brv worktree add from the project root to register a subdirectory (or sibling) as a worktree. This creates a .brv pointer file in the target directory that redirects to the parent project — the same pattern git uses for git worktree. Use brv worktree remove to unregister, and brv worktree list to inspect. To search another project's knowledge from here, use brv source add <path> (with brv source list / brv source remove to inspect or detach).

Documentation

Visit docs.byterover.dev for full guides on setup, integrations, and advanced usage.

TopicDescription
Getting StartedInstallation, first run, and basic usage
Cloud SyncPush/pull workflows and team sharing
Version ControlContext tree branching, commits, and collaboration
LLM ProvidersProvider setup and model configuration
AI Agent IntegrationsUsing ByteRover with Cursor, Claude Code, Windsurf, etc.
Hub & ConnectorsSkills, bundles, and the connector ecosystem
CLI ReferenceRun brv --help

Contributing

We welcome contributions! See our Contributing Guide for development setup, coding standards, and the PR workflow.

Community & Support

ByteRover CLI is built and maintained by the ByteRover team.

  • Join our Discord to share projects, ask questions, or just say hi
  • Report issues on GitHub
  • If you enjoy ByteRover CLI, please give us a star on GitHub — it helps a lot!
  • Follow @kevinnguyendn on X

Contributors

Contributors

Star History

License

Elastic License 2.0. See LICENSE for full terms.

安装

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "cipher": {
      "command": "cipher",
      "args": [
        "--mode",
        "mcp"
      ],
      "env": {
        "MCP_SERVER_MODE": "aggregator",
        "OPENAI_API_KEY": "your_openai_api_key",
        "ANTHROPIC_API_KEY": "your_anthropic_api_key"
      }
    }
  }
}

将 Cipher MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Cipher 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 Cipher 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Cipher MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "cipher": {
      "command": "npx",
      "args": [
        "-y",
        "@byterover/cipher"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Cipher MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Cipher MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Cipher 帮我完成这项任务吗?
Cipher
当然。我已阅读。
以下是我使用 Cipher 得到的结果。

常见问题

Cipher MCP 服务器有什么用途?

Cipher 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Cipher MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 Cipher,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 Cipher MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 Cipher 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Cipher MCP 连接到 TypingMind?

Cipher 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Cipher MCP 在 TypingMind 中提供哪些工具?

Cipher 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Cipher MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 Cipher 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇