{"id":50360797,"url":"https://github.com/codeweiz/manus-web-agent","last_synced_at":"2026-05-30T01:20:59.648Z","repository":{"id":333708783,"uuid":"1138341434","full_name":"codeweiz/manus-web-agent","owner":"codeweiz","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-31T14:21:56.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-31T21:02:41.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeweiz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-20T14:51:42.000Z","updated_at":"2026-01-31T14:21:59.000Z","dependencies_parsed_at":"2026-01-21T02:03:16.753Z","dependency_job_id":null,"html_url":"https://github.com/codeweiz/manus-web-agent","commit_stats":null,"previous_names":["codeweiz/manus-web-agent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codeweiz/manus-web-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeweiz%2Fmanus-web-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeweiz%2Fmanus-web-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeweiz%2Fmanus-web-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeweiz%2Fmanus-web-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeweiz","download_url":"https://codeload.github.com/codeweiz/manus-web-agent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeweiz%2Fmanus-web-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33677253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-30T01:20:58.700Z","updated_at":"2026-05-30T01:20:59.638Z","avatar_url":"https://github.com/codeweiz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Manus Web Agent\n\n致力于提供最好的 Web Agent - 一个功能完整的 AI Agent 系统，支持浏览器自动化、Shell 命令执行、文件操作和网络搜索。\n\n## 项目架构\n\n项目采用 DDD (领域驱动设计) 分层架构：\n\n```\nmanus-web-agent/\n├── src/manus_web_agent/\n│   ├── application/          # 应用层：用例实现、服务编排\n│   │   ├── errors/           # 应用层异常\n│   │   └── services/         # 应用服务\n│   ├── core/                 # 核心层：配置管理\n│   ├── domain/               # 领域层：核心业务逻辑\n│   │   ├── external/         # 外部服务接口\n│   │   ├── models/           # 领域模型\n│   │   ├── repositories/     # 仓储接口\n│   │   ├── services/         # 领域服务\n│   │   │   ├── agents/       # Agent 实现\n│   │   │   ├── flows/        # 流程编排\n│   │   │   ├── prompts/      # 提示词模板\n│   │   │   └── tools/        # 工具实现\n│   │   └── utils/            # 领域工具\n│   ├── infrastructure/       # 基础设施层：技术实现\n│   │   ├── external/         # 外部服务实现\n│   │   ├── models/           # 数据模型 (Beanie ODM)\n│   │   ├── repositories/     # 仓储实现\n│   │   ├── storage/          # 存储实现\n│   │   └── utils/            # 基础设施工具\n│   └── interfaces/           # 接口层：API 接口\n│       ├── api/              # API 路由\n│       ├── errors/           # 异常处理器\n│       └── schemas/          # 请求/响应模型\n├── tests/                    # 测试代码\n├── .config.toml              # 配置文件\n├── pyproject.toml            # 项目依赖\n└── README.md                 # 项目文档\n```\n\n## 核心功能\n\n### 1. 沙盒环境 (Sandbox)\n- Docker 容器提供隔离的执行环境\n- 支持 Shell 命令执行\n- 文件上传/下载\n- 浏览器自动化环境\n\n### 2. 浏览器自动化 (Browser)\n- Playwright 基于 CDP 的浏览器控制\n- 支持截图、导航、点击、表单填写\n- 支持多标签页管理\n\n### 3. 工具调用 (Tools)\n- **Browser**: 浏览器自动化操作\n- **Shell**: 命令执行与查看\n- **File IO**: 文件读写操作\n- **Search**: 网络搜索集成 (Bing/Google/Baidu)\n- **MCP**: Model Context Protocol 集成\n\n### 4. Agent 系统\n- 基于 Plan-Act 流程的任务执行\n- 多轮对话支持\n- 工具调用链\n- 会话管理\n\n### 5. VNC 可视化\n- WebSocket 长连接提供远程查看沙盒环境\n- 实时交互支持\n\n## 环境要求\n\n- Python 3.11+\n- Docker\n- MongoDB\n- Redis\n\n## 快速开始\n\n### 1. 安装依赖\n\n```bash\n# 创建虚拟环境\nuv venv\nsource .venv/bin/activate\n\n# 安装依赖\nuv sync\n```\n\n### 2. 配置\n\n复制 `.config.toml` 并修改配置：\n\n```toml\n[llm]\nprovider = \"deepseek\"\nmodel = \"deepseek-chat\"\napi_key = \"your-api-key\"\nbase_url = \"https://api.deepseek.com\"\n\n[mongodb]\nuri = \"mongodb://localhost:27017\"\ndatabase = \"manus_web_agent\"\n\n[redis]\nhost = \"localhost\"\nport = 6379\ndb = 0\n\n[sandbox]\nttl_minutes = 30\n\n[search]\nprovider = \"bing\"\n```\n\n### 3. 启动服务\n\n```bash\n# 启动 MongoDB\ndocker run -d -p 27017:27017 --name mongodb mongo:latest\n\n# 启动 Redis\ndocker run -d -p 6379:6379 --name redis redis:latest\n\n# 启动应用\npython -m manus_web_agent.main\n```\n\n## API 端点\n\n### 会话管理\n\n| 方法 | 路径 | 描述 |\n|------|------|------|\n| PUT | `/api/v1/sessions` | 创建会话 |\n| GET | `/api/v1/sessions` | 获取所有会话 |\n| GET | `/api/v1/sessions/{session_id}` | 获取会话详情 |\n| DELETE | `/api/v1/sessions/{session_id}` | 删除会话 |\n| POST | `/api/v1/sessions/{session_id}/stop` | 停止会话 |\n| POST | `/api/v1/sessions/{session_id}/chat` | 聊天 (SSE) |\n\n### 工具操作\n\n| 方法 | 路径 | 描述 |\n|------|------|------|\n| POST | `/api/v1/sessions/{session_id}/shell` | 查看 Shell 输出 |\n| POST | `/api/v1/sessions/{session_id}/file` | 查看文件内容 |\n| WS | `/api/v1/sessions/{session_id}/vnc` | VNC WebSocket |\n| GET | `/api/v1/sessions/{session_id}/files` | 获取会话文件列表 |\n\n### 文件管理\n\n| 方法 | 路径 | 描述 |\n|------|------|------|\n| POST | `/api/v1/files` | 上传文件 |\n| GET | `/api/v1/files/{file_id}` | 获取文件 |\n| GET | `/api/v1/files/{file_id}/download` | 下载文件 |\n| DELETE | `/api/v1/files/{file_id}` | 删除文件 |\n\n### 认证\n\n| 方法 | 路径 | 描述 |\n|------|------|------|\n| POST | `/api/v1/auth/login` | 登录 |\n| POST | `/api/v1/auth/register` | 注册 |\n| GET | `/api/v1/auth/me` | 获取当前用户 |\n| POST | `/api/v1/auth/refresh` | 刷新 Token |\n| POST | `/api/v1/auth/logout` | 登出 |\n\n### 共享会话\n\n| 方法 | 路径 | 描述 |\n|------|------|------|\n| POST | `/api/v1/sessions/{session_id}/share` | 分享会话 |\n| DELETE | `/api/v1/sessions/{session_id}/share` | 取消分享 |\n| GET | `/api/v1/sessions/shared/{session_id}` | 获取共享会话 |\n\n## 开发\n\n### 运行测试\n\n```bash\npytest tests/\n```\n\n### 代码检查\n\n```bash\nruff check src/\nruff format src/\n```\n\n### 类型检查\n\n```bash\nmypy src/\n```\n\n## 配置说明\n\n### LLM 配置\n\n支持多种 LLM 提供商：\n\n- DeepSeek (默认)\n- OpenAI\n- 其他兼容 OpenAI API 的提供商\n\n### 搜索配置\n\n支持多种搜索引擎：\n\n- Bing (默认，无需 API Key)\n- Google (需要 API Key 和 Engine ID)\n- Baidu (无需 API Key)\n\n### 沙箱配置\n\n- 支持自定义 Docker 镜像\n- 支持网络配置\n- 支持代理设置\n\n## 许可证\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeweiz%2Fmanus-web-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeweiz%2Fmanus-web-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeweiz%2Fmanus-web-agent/lists"}