@xcanwin/manyoyo 7.1.6 → 8.1.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
@@ -3,8 +3,7 @@
3
3
  </p>
4
4
 
5
5
  # <p align="center"><a href="https://github.com/xcanwin/manyoyo">MANYOYO(慢悠悠)</a></p>
6
- <p align="center">面向 AI Agent CLI 的 Docker / Podman 安全沙箱。</p>
7
- <p align="center">用于隔离 Claude Code、Codex、Gemini、OpenCode 等命令行智能体,降低宿主机风险,并保持可复现的运行环境。</p>
6
+ <p align="center">让 Claude Code / Codex / Gemini / OpenCode 在容器里放心跑 YOLO 模式:AI 随便折腾,伤不到你的电脑。</p>
8
7
  <p align="center">
9
8
  <a href="https://www.npmjs.com/package/@xcanwin/manyoyo"><img alt="npm" src="https://img.shields.io/npm/v/@xcanwin/manyoyo?style=flat-square" /></a>
10
9
  <a href="https://github.com/xcanwin/manyoyo/actions/workflows/npm-publish.yml"><img alt="Build status" src="https://img.shields.io/github/actions/workflow/status/xcanwin/manyoyo/npm-publish.yml?style=flat-square" /></a>
@@ -21,71 +20,47 @@
21
20
 
22
21
  ---
23
22
 
24
- ## 生态仓库
23
+ ## 安装
25
24
 
26
- | 仓库 | 定位 |
27
- |------|------|
28
- | [manyoyo](https://github.com/xcanwin/manyoyo) | CLI + 容器运行时 + Web 服务 |
29
- | [manyoyo-app](https://github.com/xcanwin/manyoyo-app) | Flutter 原生 UI 客户端(macOS / Windows / iOS / Android) |
30
- | [manyoyo-studio](https://github.com/xcanwin/manyoyo-studio) | Electron 桌面端 + Capacitor 移动端 |
25
+ ### macOS / Linux(推荐)
31
26
 
32
- ## 为什么是 MANYOYO
33
-
34
- AI Agent CLI 往往需要:
35
-
36
- - 访问代码仓库
37
- - 执行 shell 命令
38
- - 读写文件
39
- - 安装依赖或调用容器能力
40
-
41
- 直接在宿主机上裸跑这些工具,风险边界通常不清晰。**MANYOYO** 的目标不是替代容器平台,而是把常见 Agent CLI 的运行方式收敛到一个更清晰、可复现、可审计的沙箱入口。
42
-
43
- 你可以把它理解为:
44
-
45
- - 面向 Agent CLI 的运行包装层
46
- - 面向团队协作的配置与镜像约定
47
- - 面向高风险模式的显式边界说明
48
-
49
- ## 核心能力
27
+ ```bash
28
+ curl -fsSL https://github.com/xcanwin/manyoyo/raw/main/scripts/install.sh | sh
29
+ ```
50
30
 
51
- - **多 Agent 支持**:支持 `claude`、`gemini`、`codex`、`opencode`
52
- - **容器隔离**:基于 Docker / Podman 运行,降低宿主机暴露面
53
- - **YOLO / SOLO 工作流**:适配跳过权限确认的高效率模式
54
- - **统一配置入口**:集中管理 `runs.<name>`、环境变量、挂载与镜像参数
55
- - **命令可预览**:支持查看配置合并结果与最终命令拼装
56
- - **会话与 Web 模式**:支持容器会话管理与网页访问入口
57
- - **镜像可定制**:支持 common / full / 自定义工具集镜像
31
+ 装完浏览器自动打开,按向导选 Agent、填 Key 就能开始对话。macOS 不需要预装任何东西;Linux 需要已有 Docker 或 Podman。
58
32
 
59
- ## 快速开始
33
+ ### 已有 Node.js 和 Docker/Podman
60
34
 
61
35
  ```bash
62
36
  npm install -g @xcanwin/manyoyo
63
- podman pull ubuntu:24.04 # 仅 Podman 需要
64
- manyoyo build --iv 1.9.2-common
65
- manyoyo init all
66
- manyoyo run -r claude
67
- manyoyo serve 127.0.0.1:3000 -U admin -P 123456 # Web UI 模式
37
+ manyoyo
68
38
  ```
69
39
 
70
- 系统要求:
40
+ ## 日常使用
71
41
 
72
- - Node.js >= 22
73
- - Podman(推荐)或 Docker
42
+ ```bash
43
+ manyoyo # 打开网页界面
44
+ manyoyo update # 升级
45
+ manyoyo uninstall # 卸载(配置和数据默认保留)
46
+ ```
74
47
 
75
- 注意:
48
+ ## 命令行用法(可选)
76
49
 
77
- - `YOLO / SOLO` 会跳过权限确认,只适合在可控环境中使用
78
- - `sock` 模式会暴露宿主机 Docker socket,不属于强隔离
50
+ ```bash
51
+ manyoyo init all # 把本机已有的 Agent 配置搬进来
52
+ manyoyo run -y c # 在沙箱里以 YOLO 模式启动 Claude Code
53
+ ```
79
54
 
80
- ## 适合什么场景
55
+ 默认镜像 `ghcr.io/xcanwin/manyoyo` 首次使用时自动拉取;需要自定义镜像时再执行 `manyoyo build --iv 2.1.0-common`。更多命令见[命令速查](https://xcanwin.github.io/manyoyo/reference/cli-options)。
81
56
 
82
- - 在容器中运行 **Claude Code YOLO / SOLO**
83
- - 为 **Codex CLI** 提供独立于宿主机的运行边界
84
- - 隔离运行 **Gemini CLI / OpenCode** 的代码任务
85
- - 用统一镜像和配置管理团队 Agent 环境
86
- - 在调试和自动化任务中快速切换 Agent 与 `/bin/bash`
57
+ ## 它能做什么
87
58
 
88
- ## 裸跑 vs MANYOYO
59
+ - **多 Agent**:`claude`、`codex`、`gemini`、`opencode` 一个入口
60
+ - **容器隔离**:基于 Docker / Podman,Agent 只能看到你给它的工作目录
61
+ - **网页界面**:浏览器里对话、看文件、开终端,手机也能用
62
+ - **统一配置**:运行配置、环境变量、挂载与镜像参数集中在 `~/.manyoyo/manyoyo.json`
63
+ - **一条命令**安装、升级、卸载
89
64
 
90
65
  | 对比项 | 裸跑 Agent CLI | MANYOYO |
91
66
  | --- | --- | --- |
@@ -93,123 +68,15 @@ manyoyo serve 127.0.0.1:3000 -U admin -P 123456 # Web UI 模式
93
68
  | 运行边界 | 分散 | 集中到容器与配置 |
94
69
  | 环境复现 | 弱 | 强(镜像 + 配置) |
95
70
  | 高风险模式说明 | 通常依赖工具自身 | 明确提示 YOLO / SOLO / sock 风险 |
96
- | 团队统一性 | 弱 | 更强 |
97
71
 
98
- ## 安全边界
72
+ ## 安全须知
99
73
 
100
- MANYOYO 可以降低风险,但不是“绝对安全”:
74
+ MANYOYO 降低风险,但不是“绝对安全”:主要隔离手段是容器而不是虚拟机;`YOLO / SOLO` 仍可能执行危险命令;`sock` 模式会暴露宿主机 Docker socket;对外监听必须设强密码。详见[安全须知](https://xcanwin.github.io/manyoyo/reference/container-modes)。
101
75
 
102
- - 它的主要隔离手段是容器,不是虚拟机
103
- - `YOLO / SOLO` 仍然可能执行危险命令
104
- - `sock` 模式本质上会把宿主机容器控制权暴露给容器
105
- - 自定义挂载、环境变量和网络访问会直接影响实际安全边界
76
+ ## 文档
106
77
 
107
- 相关文档:
108
-
109
- - [AI 智能体说明](https://xcanwin.github.io/manyoyo/zh/reference/agents)
110
- - [容器模式说明](https://xcanwin.github.io/manyoyo/zh/reference/container-modes)
111
- - [网页认证与安全](https://xcanwin.github.io/manyoyo/zh/advanced/web-server-auth)
112
-
113
- ## 常用命令
114
-
115
- ```bash
116
- # 初始化与迁移
117
- manyoyo init all
118
-
119
- # 启动常见 Agent
120
- manyoyo run -y c
121
- manyoyo run -y gm
122
- manyoyo run -y cx
123
- manyoyo run -y oc
124
-
125
- # 更新
126
- manyoyo update
127
-
128
- # 容器与调试
129
- manyoyo ps
130
- manyoyo images
131
- manyoyo run -n my-dev -x /bin/bash
132
- manyoyo rm my-dev
133
-
134
- # Web UI 模式
135
- manyoyo serve 127.0.0.1:3000
136
- manyoyo serve 127.0.0.1:3000 -U admin -P 123456
137
- manyoyo serve 127.0.0.1:3000 -U admin -P 123456 -d
138
- manyoyo serve 127.0.0.1:3000 -d # 未设置密码时会打印本次随机密码
139
- manyoyo serve 127.0.0.1:3000 --stop # 停止指定后台服务
140
- manyoyo serve 127.0.0.1:3000 -U admin -P 123456 -d --restart # 重启指定后台服务
141
-
142
- # 查看配置与命令拼装
143
- manyoyo config show
144
- manyoyo config command
145
- ```
146
-
147
- ## 镜像构建
148
-
149
- ```bash
150
- # common 版本
151
- manyoyo build --iv 1.9.2-common
152
-
153
- # full 版本
154
- manyoyo build --iv 1.9.2-full
155
-
156
- # 仅更新已有镜像内 Agent CLI 到 latest,不重建 Dockerfile
157
- manyoyo build --iv 1.9.2-full --update-agents --yes
158
-
159
- # 自定义工具集
160
- manyoyo build --iba TOOL=go,codex,java,gemini
161
- ```
162
-
163
- 说明:
164
-
165
- - 首次构建会把依赖缓存到 `docker/cache/`
166
- - 在缓存有效期内重复构建,通常会更快
167
- - `imageVersion` 格式必须为 `x.y.z-后缀`
168
-
169
- ## 配置模型
170
-
171
- MANYOYO 的配置重点不是“多”,而是“可预测”:
172
-
173
- - 标量值按 `命令行参数 > runs.<name> > 全局配置 > 默认值` 覆盖
174
- - 数组值按 `全局配置 -> runs.<name> -> 命令行参数` 追加合并
175
- - `env` 使用 map 合并,按 key 覆盖
176
-
177
- 相关文档:
178
-
179
- - [配置系统概览](https://xcanwin.github.io/manyoyo/zh/configuration/)
180
- - [配置文件详解](https://xcanwin.github.io/manyoyo/zh/configuration/config-files)
181
- - [环境变量详解](https://xcanwin.github.io/manyoyo/zh/configuration/environment)
182
-
183
- ## 文档入口
184
-
185
- 中文文档:
186
-
187
- - [快速开始](https://xcanwin.github.io/manyoyo/zh/guide/quick-start)
188
- - [安装详解](https://xcanwin.github.io/manyoyo/zh/guide/installation)
189
- - [CLI 选项](https://xcanwin.github.io/manyoyo/zh/reference/cli-options)
190
- - [故障排查](https://xcanwin.github.io/manyoyo/zh/troubleshooting/)
191
-
192
- English Documentation:
193
-
194
- - [Quick Start](https://xcanwin.github.io/manyoyo/en/guide/quick-start)
195
- - [Installation](https://xcanwin.github.io/manyoyo/en/guide/installation)
196
- - [CLI Options](https://xcanwin.github.io/manyoyo/en/reference/cli-options)
197
- - [Troubleshooting](https://xcanwin.github.io/manyoyo/en/troubleshooting/)
198
-
199
- ## 安装与卸载
200
-
201
- 安装:
202
-
203
- ```bash
204
- npm install -g @xcanwin/manyoyo
205
- ```
206
-
207
- 卸载:
208
-
209
- ```bash
210
- npm uninstall -g @xcanwin/manyoyo
211
- rm -rf ~/.manyoyo/ # 可选
212
- ```
78
+ - 中文:<https://xcanwin.github.io/manyoyo/>([安装](https://xcanwin.github.io/manyoyo/guide/quick-start)、[命令速查](https://xcanwin.github.io/manyoyo/reference/cli-options)、[配置](https://xcanwin.github.io/manyoyo/configuration/)、[故障排查](https://xcanwin.github.io/manyoyo/troubleshooting/))
79
+ - English: <https://xcanwin.github.io/manyoyo/en/>
213
80
 
214
81
  ## 许可证
215
82
 
@@ -217,7 +84,4 @@ MIT
217
84
 
218
85
  ## 贡献
219
86
 
220
- 欢迎提交 Issue 和 Pull Request。
221
-
222
- - Issues: <https://github.com/xcanwin/manyoyo/issues>
223
- - Repository: <https://github.com/xcanwin/manyoyo>
87
+ 欢迎提交 [Issue](https://github.com/xcanwin/manyoyo/issues) 和 Pull Request。