安装
Linux、macOS 和 Windows 都有自包含版本。
完整的首次安装
扩展安装脚本会安装 Crystal Code、浏览器前端,以及网页搜索与抓取插件。默认提供商和主题仅在各自目录为空或不存在时写入。
Linux
x64ARM64musl
curl --fail --location --show-error https://crystalcode.ink/scripts/install-extended.sh | shmacOS
ARM64x64
与 Linux 使用同一安装脚本。
curl --fail --location --show-error https://crystalcode.ink/scripts/install-extended.sh | shWindows
x64ARM64
Windows 上需要 Git for Windows,因为 bash 由 Git Bash 提供。
Invoke-RestMethod -Uri https://crystalcode.ink/scripts/install-extended.ps1 | Invoke-Expression使用普通安装脚本
重新运行标准安装脚本即可更新 Crystal Code 和浏览器前端。如需同时更新网页搜索与抓取插件,请重新运行扩展安装脚本。
Linux
x64ARM64musl
curl --fail --location --show-error https://crystalcode.ink/install.sh | shmacOS
ARM64x64
与 Linux 使用同一安装脚本。
curl --fail --location --show-error https://crystalcode.ink/install.sh | shWindows
x64ARM64
Windows 上需要 Git for Windows,因为 bash 由 Git Bash 提供。
Invoke-RestMethod -Uri https://crystalcode.ink/install.ps1 | Invoke-Expression打开一个新终端,Linux 或 macOS 上运行 crystal,Windows 上运行 CrystalCode。
两种脚本默认都会替换 Crystal Code 主目录下 web 目录的内容。如果其中托管着自定义前端,请先下载脚本,再在 Linux 或 macOS 上加 --skip-web 运行,或在 PowerShell 中加 -SkipWeb 运行。
Crystal Code 内置了一小组提供商和模型。更多的由一个单独维护的目录仓库提供。
提供商与模型目录