跳到主要内容

安装指南

CSGHub-Lite 提供多种安装方式,支持跨平台运行。

快速安装

Linux / macOS

使用以下脚本一键安装:

curl -fsSL https://hub.opencsg.com/csghub-lite/install.sh | sh

Windows (PowerShell)

在 PowerShell 中运行以下命令:

irm https://hub.opencsg.com/csghub-lite/install.ps1 | iex

源码编译

如果您想从源代码构建 CSGHub-Lite,请确保已安装 Go 开发环境:

git clone https://github.com/opencsgs/csghub-lite.git
cd csghub-lite
make build
# 编译后的二进制文件位于 bin/csghub-lite

GitHub Releases

您也可以直接从 GitHub Releases 页面下载适合您平台的二进制文件。

注意事项

安装脚本会自动检测并尝试安装 llama-server(推理后端)。如果您是手动编译或安装,请确保已通过 brew install llama.cpp (macOS) 或从 llama.cpp releases 下载并安装它。