--- title: 一键安装 description: 使用脚本一键安装和管理 CowAgent --- 项目提供了一键安装、配置、启动、管理程序的脚本,推荐使用脚本快速运行。 支持 Linux、macOS、Windows 操作系统,需安装 Python 3.7 ~ 3.12(推荐 3.9)。 ## 安装命令 ```bash bash <(curl -sS https://cdn.link-ai.tech/code/cow/run.sh) ``` 脚本自动执行以下流程: 1. 检查 Python 环境(需要 Python 3.7+) 2. 安装必要工具(git、curl 等) 3. 克隆项目代码到 `~/chatgpt-on-wechat` 4. 安装 Python 依赖 5. 引导配置 AI 模型和通信渠道 6. 启动服务 运行后默认启动 Web 控制台,访问 `http://localhost:9899` 开始对话和管理Agent。 ## 管理命令 安装完成后,可使用以下命令管理服务: | 命令 | 说明 | | --- | --- | | `./run.sh start` | 启动服务 | | `./run.sh stop` | 停止服务 | | `./run.sh restart` | 重启服务 | | `./run.sh status` | 查看运行状态 | | `./run.sh logs` | 查看实时日志 | | `./run.sh config` | 重新配置 | | `./run.sh update` | 更新项目代码 |