@siteboon/claude-code-ui 1.13.5 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  A desktop and mobile UI for [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [Cursor CLI](https://docs.cursor.com/en/cli/overview) and [Codex](https://developers.openai.com/codex). You can use it locally or remotely to view your active projects and sessions in Claude Code, Cursor, or Codex and make changes to them from everywhere (mobile or desktop). This gives you a proper interface that works everywhere.
8
8
 
9
+ [English](./README.md) | [中文](./README.zh-CN.md)
10
+
9
11
  ## Screenshots
10
12
 
11
13
  <div align="center">
@@ -88,6 +90,11 @@ claude-code-ui
88
90
 
89
91
  **To restart**: Stop with Ctrl+C and run `claude-code-ui` again.
90
92
 
93
+ **To update**:
94
+ ```bash
95
+ cloudcli update
96
+ ```
97
+
91
98
  ### CLI Usage
92
99
 
93
100
  After global installation, you have access to both `claude-code-ui` and `cloudcli` commands:
@@ -97,6 +104,7 @@ After global installation, you have access to both `claude-code-ui` and `cloudcl
97
104
  | `cloudcli` or `claude-code-ui` | | Start the server (default) |
98
105
  | `cloudcli start` | | Start the server explicitly |
99
106
  | `cloudcli status` | | Show configuration and data locations |
107
+ | `cloudcli update` | | Update to the latest version |
100
108
  | `cloudcli help` | | Show help information |
101
109
  | `cloudcli version` | | Show version information |
102
110
  | `--port <port>` | `-p` | Set server port (default: 3001) |
@@ -0,0 +1,371 @@
1
+ <div align="center">
2
+ <img src="public/logo.svg" alt="Claude Code UI" width="64" height="64">
3
+ <h1>Cloud CLI (又名 Claude Code UI)</h1>
4
+ </div>
5
+
6
+
7
+ [Claude Code](https://docs.anthropic.com/en/docs/claude-code)、[Cursor CLI](https://docs.cursor.com/en/cli/overview) 和 [Codex](https://developers.openai.com/codex) 的桌面端和移动端界面。您可以在本地或远程使用它来查看 Claude Code、Cursor 或 Codex 中的活跃项目和会话,并从任何地方(移动端或桌面端)对它们进行修改。这为您提供了一个在任何地方都能正常使用的合适界面。
8
+
9
+ [English](./README.md) | [中文](./README.zh-CN.md)
10
+
11
+ ## 截图
12
+
13
+ <div align="center">
14
+
15
+ <table>
16
+ <tr>
17
+ <td align="center">
18
+ <h3>桌面视图</h3>
19
+ <img src="public/screenshots/desktop-main.png" alt="Desktop Interface" width="400">
20
+ <br>
21
+ <em>显示项目概览和聊天界面的主界面</em>
22
+ </td>
23
+ <td align="center">
24
+ <h3>移动端体验</h3>
25
+ <img src="public/screenshots/mobile-chat.png" alt="Mobile Interface" width="250">
26
+ <br>
27
+ <em>具有触摸导航的响应式移动设计</em>
28
+ </td>
29
+ </tr>
30
+ <tr>
31
+ <td align="center" colspan="2">
32
+ <h3>CLI 选择</h3>
33
+ <img src="public/screenshots/cli-selection.png" alt="CLI Selection" width="400">
34
+ <br>
35
+ <em>在 Claude Code、Cursor CLI 和 Codex 之间选择</em>
36
+ </td>
37
+ </tr>
38
+ </table>
39
+
40
+
41
+
42
+ </div>
43
+
44
+ ## 功能特性
45
+
46
+ - **响应式设计** - 在桌面、平板和移动设备上无缝运行,您也可以在移动端使用 Claude Code、Cursor 或 Codex
47
+ - **交互式聊天界面** - 内置聊天界面,与 Claude Code、Cursor 或 Codex 无缝通信
48
+ - **集成 Shell 终端** - 通过内置 shell 功能直接访问 Claude Code、Cursor CLI 或 Codex
49
+ - **文件浏览器** - 交互式文件树,支持语法高亮和实时编辑
50
+ - **Git 浏览器** - 查看、暂存和提交您的更改。您还可以切换分支
51
+ - **会话管理** - 恢复对话、管理多个会话并跟踪历史记录
52
+ - **TaskMaster AI 集成** *(可选)* - 通过 AI 驱动的任务规划、PRD 解析和工作流自动化实现高级项目管理
53
+ - **模型兼容性** - 适用于 Claude Sonnet 4.5、Opus 4.5 和 GPT-5.2
54
+
55
+
56
+ ## 快速开始
57
+
58
+ ### 前置要求
59
+
60
+ - [Node.js](https://nodejs.org/) v20 或更高版本
61
+ - 已安装并配置 [Claude Code CLI](https://docs.anthropic.com/en/docs/claude-code),和/或
62
+ - 已安装并配置 [Cursor CLI](https://docs.cursor.com/en/cli/overview),和/或
63
+ - 已安装并配置 [Codex](https://developers.openai.com/codex)
64
+
65
+ ### 一键操作(推荐)
66
+
67
+ 无需安装,直接运行:
68
+
69
+ ```bash
70
+ npx @siteboon/claude-code-ui
71
+ ```
72
+
73
+ 服务器将启动并可通过 `http://localhost:3001`(或您配置的 PORT)访问。
74
+
75
+ **重启**: 停止服务器后只需再次运行相同的 `npx` 命令
76
+
77
+ ### 全局安装(供常规使用)
78
+
79
+ 为了频繁使用,一次性全局安装:
80
+
81
+ ```bash
82
+ npm install -g @siteboon/claude-code-ui
83
+ ```
84
+
85
+ 然后使用简单命令启动:
86
+
87
+ ```bash
88
+ claude-code-ui
89
+ ```
90
+
91
+
92
+ **重启**: 使用 Ctrl+C 停止,然后再次运行 `claude-code-ui`。
93
+
94
+ **更新**:
95
+ ```bash
96
+ cloudcli update
97
+ ```
98
+
99
+ ### CLI 使用方法
100
+
101
+ 全局安装后,您可以访问 `claude-code-ui` 和 `cloudcli` 命令:
102
+
103
+ | 命令 / 选项 | 简写 | 描述 |
104
+ |------------------|-------|-------------|
105
+ | `cloudcli` 或 `claude-code-ui` | | 启动服务器(默认) |
106
+ | `cloudcli start` | | 显式启动服务器 |
107
+ | `cloudcli status` | | 显示配置和数据位置 |
108
+ | `cloudcli update` | | 更新到最新版本 |
109
+ | `cloudcli help` | | 显示帮助信息 |
110
+ | `cloudcli version` | | 显示版本信息 |
111
+ | `--port <port>` | `-p` | 设置服务器端口(默认: 3001) |
112
+ | `--database-path <path>` | | 设置自定义数据库位置 |
113
+
114
+ **示例:**
115
+ ```bash
116
+ cloudcli # 使用默认设置启动
117
+ cloudcli -p 8080 # 在自定义端口启动
118
+ cloudcli status # 显示当前配置
119
+ ```
120
+
121
+ ### 作为后台服务运行(推荐用于生产环境)
122
+
123
+ 在生产环境中,使用 PM2(Process Manager 2)将 Claude Code UI 作为后台服务运行:
124
+
125
+ #### 安装 PM2
126
+
127
+ ```bash
128
+ npm install -g pm2
129
+ ```
130
+
131
+ #### 作为后台服务启动
132
+
133
+ ```bash
134
+ # 在后台启动服务器
135
+ pm2 start claude-code-ui --name "claude-code-ui"
136
+
137
+ # 或使用更短的别名
138
+ pm2 start cloudcli --name "claude-code-ui"
139
+
140
+ # 在自定义端口启动
141
+ pm2 start cloudcli --name "claude-code-ui" -- --port 8080
142
+ ```
143
+
144
+
145
+ #### 系统启动时自动启动
146
+
147
+ 要使 Claude Code UI 在系统启动时自动启动:
148
+
149
+ ```bash
150
+ # 为您的平台生成启动脚本
151
+ pm2 startup
152
+
153
+ # 保存当前进程列表
154
+ pm2 save
155
+ ```
156
+
157
+
158
+ ### 本地开发安装
159
+
160
+ 1. **克隆仓库:**
161
+ ```bash
162
+ git clone https://github.com/siteboon/claudecodeui.git
163
+ cd claudecodeui
164
+ ```
165
+
166
+ 2. **安装依赖:**
167
+ ```bash
168
+ npm install
169
+ ```
170
+
171
+ 3. **配置环境:**
172
+ ```bash
173
+ cp .env.example .env
174
+ # 使用您喜欢的设置编辑 .env
175
+ ```
176
+
177
+ 4. **启动应用程序:**
178
+ ```bash
179
+ # 开发模式(支持热重载)
180
+ npm run dev
181
+
182
+ ```
183
+ 应用程序将在您在 .env 中指定的端口启动
184
+
185
+ 5. **打开浏览器:**
186
+ - 开发环境: `http://localhost:3001`
187
+
188
+ ## 安全与工具配置
189
+
190
+ **🔒 重要提示**: 所有 Claude Code 工具**默认禁用**。这可以防止潜在的有害操作自动运行。
191
+
192
+ ### 启用工具
193
+
194
+ 要使用 Claude Code 的完整功能,您需要手动启用工具:
195
+
196
+ 1. **打开工具设置** - 点击侧边栏中的齿轮图标
197
+ 3. **选择性启用** - 仅打开您需要的工具
198
+ 4. **应用设置** - 您的偏好设置将保存在本地
199
+
200
+ <div align="center">
201
+
202
+ ![工具设置模态框](public/screenshots/tools-modal.png)
203
+ *工具设置界面 - 仅启用您需要的内容*
204
+
205
+ </div>
206
+
207
+ **推荐方法**: 首先启用基本工具,然后根据需要添加更多。您可以随时调整这些设置。
208
+
209
+ ## TaskMaster AI 集成 *(可选)*
210
+
211
+ Claude Code UI 支持 **[TaskMaster AI](https://github.com/eyaltoledano/claude-task-master)**(aka claude-task-master)集成,用于高级项目管理和 AI 驱动的任务规划。
212
+
213
+ 它提供
214
+ - 从 PRD(产品需求文档)生成 AI 驱动的任务
215
+ - 智能任务分解和依赖管理
216
+ - 可视化任务板和进度跟踪
217
+
218
+ **设置与文档**: 访问 [TaskMaster AI GitHub 仓库](https://github.com/eyaltoledano/claude-task-master)获取安装说明、配置指南和使用示例。
219
+ 安装后,您应该能够从设置中启用它
220
+
221
+
222
+ ## 使用指南
223
+
224
+ ### 核心功能
225
+
226
+ #### 项目管理
227
+ 当可用时,它会自动发现 Claude Code、Cursor 或 Codex 会话并将它们分组到项目中
228
+ - **项目操作** - 重命名、删除和组织项目
229
+ - **智能导航** - 快速访问最近的项目和会话
230
+ - **MCP 支持** - 通过 UI 添加您自己的 MCP 服务器
231
+
232
+ #### 聊天界面
233
+ - **使用响应式聊天或 Claude Code/Cursor CLI/Codex CLI** - 您可以使用自适应聊天界面或使用 shell 按钮连接到您选择的 CLI
234
+ - **实时通信** - 通过 WebSocket 连接从您选择的 CLI(Claude Code/Cursor/Codex)流式传输响应
235
+ - **会话管理** - 恢复之前的对话或启动新会话
236
+ - **消息历史** - 带有时间戳和元数据的完整对话历史
237
+ - **多格式支持** - 文本、代码块和文件引用
238
+
239
+ #### 文件浏览器与编辑器
240
+ - **交互式文件树** - 使用展开/折叠导航浏览项目结构
241
+ - **实时文件编辑** - 直接在界面中读取、修改和保存文件
242
+ - **语法高亮** - 支持多种编程语言
243
+ - **文件操作** - 创建、重命名、删除文件和目录
244
+
245
+ #### Git 浏览器
246
+
247
+
248
+ #### TaskMaster AI 集成 *(可选)*
249
+ - **可视化任务板** - 用于管理开发任务的看板风格界面
250
+ - **PRD 解析器** - 创建产品需求文档并将其解析为结构化任务
251
+ - **进度跟踪** - 实时状态更新和完成跟踪
252
+
253
+ #### 会话管理
254
+ - **会话持久化** - 所有对话自动保存
255
+ - **会话组织** - 按项目和 timestamp 分组会话
256
+ - **会话操作** - 重命名、删除和导出对话历史
257
+ - **跨设备同步** - 从任何设备访问会话
258
+
259
+ ### 移动应用
260
+ - **响应式设计** - 针对所有屏幕尺寸进行优化
261
+ - **触摸友好界面** - 滑动手势和触摸导航
262
+ - **移动导航** - 底部选项卡栏,方便拇指导航
263
+ - **自适应布局** - 可折叠侧边栏和智能内容优先级
264
+ - **添加到主屏幕快捷方式** - 添加快捷方式到主屏幕,应用程序将像 PWA 一样运行
265
+
266
+ ## 架构
267
+
268
+ ### 系统概览
269
+
270
+ ```
271
+ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
272
+ │ Frontend │ │ Backend │ │ Agent │
273
+ │ (React/Vite) │◄──►│ (Express/WS) │◄──►│ Integration │
274
+ │ │ │ │ │ │
275
+ └─────────────────┘ └─────────────────┘ └─────────────────┘
276
+ ```
277
+
278
+ ### 后端 (Node.js + Express)
279
+ - **Express 服务器** - 具有静态文件服务的 RESTful API
280
+ - **WebSocket 服务器** - 用于聊天和项目刷新的通信
281
+ - **Agent 集成 (Claude Code / Cursor CLI / Codex)** - 进程生成和管理
282
+ - **文件系统 API** - 为项目公开文件浏览器
283
+
284
+ ### 前端 (React + Vite)
285
+ - **React 18** - 带有 hooks 的现代组件架构
286
+ - **CodeMirror** - 具有语法高亮的高级代码编辑器
287
+
288
+
289
+
290
+
291
+ ### 贡献
292
+
293
+ 我们欢迎贡献!请遵循以下指南:
294
+
295
+ #### 入门
296
+ 1. **Fork** 仓库
297
+ 2. **克隆** 您的 fork: `git clone <your-fork-url>`
298
+ 3. **安装** 依赖: `npm install`
299
+ 4. **创建** 特性分支: `git checkout -b feature/amazing-feature`
300
+
301
+ #### 开发流程
302
+ 1. **进行更改**,遵循现有代码风格
303
+ 2. **彻底测试** - 确保所有功能正常工作
304
+ 3. **运行质量检查**: `npm run lint && npm run format`
305
+ 4. **提交**,遵循 [Conventional Commits](https://conventionalcommits.org/)的描述性消息
306
+ 5. **推送** 到您的分支: `git push origin feature/amazing-feature`
307
+ 6. **提交** 拉取请求,包括:
308
+ - 更改的清晰描述
309
+ - UI 更改的截图
310
+ - 适用时的测试结果
311
+
312
+ #### 贡献内容
313
+ - **错误修复** - 帮助我们提高稳定性
314
+ - **新功能** - 增强功能(先在 issue 中讨论)
315
+ - **文档** - 改进指南和 API 文档
316
+ - **UI/UX 改进** - 更好的用户体验
317
+ - **性能优化** - 让它更快
318
+
319
+ ## 故障排除
320
+
321
+ ### 常见问题与解决方案
322
+
323
+
324
+ #### "未找到 Claude 项目"
325
+ **问题**: UI 显示没有项目或项目列表为空
326
+ **解决方案**:
327
+ - 确保已正确安装 [Claude Code](https://docs.anthropic.com/en/docs/claude-code)
328
+ - 至少在一个项目目录中运行 `claude` 命令以进行初始化
329
+ - 验证 `~/.claude/projects/` 目录存在并具有适当的权限
330
+
331
+ #### 文件浏览器问题
332
+ **问题**: 文件无法加载、权限错误、空目录
333
+ **解决方案**:
334
+ - 检查项目目录权限(在终端中使用 `ls -la`)
335
+ - 验证项目路径存在且可访问
336
+ - 查看服务器控制台日志以获取详细错误消息
337
+ - 确保您未尝试访问项目范围之外的系统目录
338
+
339
+
340
+ ## 许可证
341
+
342
+ GNU General Public License v3.0 - 详见 [LICENSE](LICENSE) 文件。
343
+
344
+ 本项目是开源的,在 GPL v3 许可下可自由使用、修改和分发。
345
+
346
+ ## 致谢
347
+
348
+ ### 构建工具
349
+ - **[Claude Code](https://docs.anthropic.com/en/docs/claude-code)** - Anthropic 的官方 CLI
350
+ - **[Cursor CLI](https://docs.cursor.com/en/cli/overview)** - Cursor 的官方 CLI
351
+ - **[Codex](https://developers.openai.com/codex)** - OpenAI Codex
352
+ - **[React](https://react.dev/)** - 用户界面库
353
+ - **[Vite](https://vitejs.dev/)** - 快速构建工具和开发服务器
354
+ - **[Tailwind CSS](https://tailwindcss.com/)** - 实用优先的 CSS 框架
355
+ - **[CodeMirror](https://codemirror.net/)** - 高级代码编辑器
356
+ - **[TaskMaster AI](https://github.com/eyaltoledano/claude-task-master)** *(可选)* - AI 驱动的项目管理和任务规划
357
+
358
+ ## 支持与社区
359
+
360
+ ### 保持更新
361
+ - **Star** 此仓库以表示支持
362
+ - **Watch** 以获取更新和新版本
363
+ - **Follow** 项目以获取公告
364
+
365
+ ### 赞助商
366
+ - [Siteboon - AI powered website builder](https://siteboon.ai)
367
+ ---
368
+
369
+ <div align="center">
370
+ <strong>为 Claude Code、Cursor 和 Codex 社区精心打造。</strong>
371
+ </div>