diff --git a/README.txt b/README.txt index 44e4e1e..c6f4a08 100644 --- a/README.txt +++ b/README.txt @@ -1,4 +1,4 @@ -Bookworm Portable v1.1 - 纯云端便携部署工具包 +Bookworm Portable v1.1 - 纯云端便携部署工具包 ================================================ === 文件说明 === diff --git a/guide.html b/guide.html new file mode 100644 index 0000000..fa8a631 --- /dev/null +++ b/guide.html @@ -0,0 +1,531 @@ + + +
+ + ++ ____ _ + | __ ) ___ ___ | | ____ _____ _ __ _ __ ___ + | _ \ / _ \ / _ \| |/ /\ \ /\ / / _ \| '__| '_ ` _ \ + | |_) | (_) | (_) | < \ V V / (_) | | | | | | | | + |____/ \___/ \___/|_|\_\ \_/\_/ \___/|_| |_| |_| |_| ++
纯云端便携部署 — 任意电脑一行命令激活 Bookworm 全套能力
+Bookworm 配置存储在私有 Gitea 服务器上,目标机通过 HTTPS 克隆并自动渲染为本地配置,凭证全程加密,不落盘。
+ +目标电脑需要预先安装以下软件:
+| 软件 | 必须 | 安装方式 |
|---|---|---|
| Claude Code | 是 | npm i -g @anthropic-ai/claude-code |
| Node.js ≥ 18 | 是 | nodejs.org |
| Git | 是 | git-scm.com |
| PowerShell 7 | 推荐 | winget install Microsoft.PowerShell |
| Python 3.x | 可选 | 缺失则 3 个 MCP 服务降级 |
打开 PowerShell,运行:
+
+git clone https://code.letcareme.com/leesu/bookworm-boot.git
+cd bookworm-boot
+
+ 系统会提示输入 Gitea 用户名和密码。
+ +执行安装,自动克隆配置 + 解密凭证 + 渲染模板 + 启动 Claude Code:
+
+pwsh -ExecutionPolicy Bypass -File install.ps1
+
+ 脚本会提示输入主密码来解密 API 凭证。输入后自动完成配置并启动 Claude Code。
+已安装过的电脑,再次使用时只需:
+
+cd bookworm-boot
+pwsh -ExecutionPolicy Bypass -File install.ps1 -StartOnly
+
+ -StartOnly 跳过 git clone,直接解密凭证并启动。
如需同步最新配置更新:
+
+cd bookworm-boot
+pwsh -ExecutionPolicy Bypass -File install.ps1
+
+ 不加 -StartOnly 会自动 git pull 拉取最新 Skills/Hooks 更新。
离开电脑前,清理环境变量和凭证痕迹:
+ +pwsh -ExecutionPolicy Bypass -File stop.ps1
+ pwsh -ExecutionPolicy Bypass -File stop.ps1 -Restore
+ pwsh -ExecutionPolicy Bypass -File stop.ps1 -Restore -Deep
+ stop.ps1 -Restore -Deep 确保不留痕迹。尤其注意公用电脑。
+ | 安全特性 | 规格 |
|---|---|
| 凭证加密 | AES-256-CBC + PBKDF2 (600,000 迭代) |
| 传输加密 | HTTPS (TLS 1.2+, Let's Encrypt 证书) |
| 凭证存储 | 进程级环境变量,不写磁盘 |
| 登录保护 | fail2ban (5次失败/小时 → 封禁24h) |
| 完整性校验 | SHA-256 文件哈希验证 |
确认 Git for Windows 已安装。脚本会自动搜索 C:\Program Files\Git 和 D:\Git 下的 openssl。
使用 pwsh -ExecutionPolicy Bypass -File install.ps1 运行,或以管理员身份执行 Set-ExecutionPolicy RemoteSigned。
检查网络是否能访问 https://code.letcareme.com。如在内网环境,可能需要配置代理。
确认主密码正确(区分大小写)。如忘记密码,需要管理员重新运行 encrypt-secrets.ps1 生成新的 secrets.enc。
检查 ~/.claude/CLAUDE.md 是否存在。运行 install.ps1(不加 -StartOnly)重新同步。
不需要。所有 API 请求通过中转站转发,消耗中转站额度,目标机无需任何 Anthropic 账号。
+| 场景 | 命令 |
|---|---|
| 首次安装 | git clone ... && pwsh -File install.ps1 |
| 快速启动 | pwsh -File install.ps1 -StartOnly |
| 同步更新 | pwsh -File install.ps1 |
| 基础清理 | pwsh -File stop.ps1 |
| 完整恢复 | pwsh -File stop.ps1 -Restore |
| 深度清理 | pwsh -File stop.ps1 -Restore -Deep |