Skip to content

安装指南

预编译二进制(推荐)

一键安装

bash
GITHUB_PROXY=https://gitfast.run \
  curl -fsSL https://gitfast.run/https://raw.githubusercontent.com/rsclaw-ai/rsclaw/main/scripts/install.sh | bash
powershell
$env:GITHUB_PROXY="https://gitfast.run"; irm https://gitfast.run/https://raw.githubusercontent.com/rsclaw-ai/rsclaw/main/scripts/install.ps1 | iex

选项:

bash
# 安装指定版本
curl -fsSL .../install.sh | bash -s -- --version v2026.4.1-beta

# 安装到自定义目录
curl -fsSL .../install.sh | bash -s -- --prefix /opt/rsclaw/bin

支持平台

平台架构状态
macOSARM64 (Apple Silicon)完全支持
macOSx86_64 (Intel)完全支持
Linuxx86_64完全支持(musl 静态链接)
LinuxARM64完全支持(musl 静态链接)
Windowsx86_64完全支持
WindowsARM64完全支持

手动下载

GitHub Releases 下载,解压后添加到 PATH。

从源码编译

前置依赖

  • Rust 1.91+(Edition 2024)
  • Protobuf 编译器(protoc
bash
# 安装 Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# 安装 protoc
# macOS
brew install protobuf
# Ubuntu/Debian
sudo apt-get install -y protobuf-compiler

# 编译
git clone https://gitfast.run/https://github.com/rsclaw-ai/rsclaw.git
cd rsclaw
cargo build --release

二进制文件位于 ./target/release/rsclaw(约 17MB,已启用 LTO + strip)。

可选功能

bash
# Matrix E2EE 加密支持
cargo build --release --features channel-matrix

更新

bash
# 从 GitHub 自动更新
rsclaw update

# 或通过安装脚本重新安装
curl -fsSL .../install.sh | bash

# 或从源码更新
cd /path/to/rsclaw && git pull && cargo build --release

卸载

bash
# 删除二进制
sudo rm /usr/local/bin/rsclaw

# 删除数据(可选)
rm -rf ~/.rsclaw

Released under MIT / Apache-2.0 License