Skip to content

快速开始

一行安装

bash
curl -fsSL https://bridge.annealing.cn/install.sh | sh
powershell
iwr -useb https://bridge.annealing.cn/install.ps1 | iex

安装完成后运行:

bash
lucky

进入交互界面后输入 /login 登录即可使用。

兼容性

macOS 10.15+ / Windows 10+ / Linux / WSL。Windows 没有 Git Bash 时脚本会自动下载 PortableGit,无需提前准备环境。

需要安装到自定义目录?→ 设置 THKJ_INSTALL_DIR


登录与注册

进入 lucky 后运行:

/login

推荐使用 QQ / 163 / Outlook / Gmail 邮箱注册。


常见问题

安装后运行 lucky 提示找不到命令?

检查 ~/.local/bin 或安装脚本提示的路径是否已加入 PATH,重开终端或执行 source ~/.bashrc / source ~/.zshrc

怎么充值?

进入 lucky 后运行 /recharge,见 命令参考

Windows 安装失败?

PowerShell 策略拦截时运行:

powershell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

自定义安装位置

设置 THKJ_INSTALL_DIR 可指定安装目录:

bash
THKJ_INSTALL_DIR="$HOME/.local/share/lucky" curl -fsSL https://bridge.annealing.cn/install.sh | sh
powershell
$env:THKJ_INSTALL_DIR="D:\Lucky"
iwr -useb https://bridge.annealing.cn/install.ps1 | iex

关闭匿名安装统计

bash
LUCKY_DISABLE_TELEMETRY=1 curl -fsSL https://bridge.annealing.cn/install.sh | sh
powershell
$env:LUCKY_DISABLE_TELEMETRY="1"; iwr -useb https://bridge.annealing.cn/install.ps1 | iex

统计只包含系统、架构、安装阶段和成败,不含邮箱、用户名、token 或项目路径。