职贝云数AI新零售门户

标题: 通用AI Agent系统AI Manus [打印本页]

作者: dyfowXijS    时间: 昨天 14:27
标题: 通用AI Agent系统AI Manus
AI Manus

AI Manus 是一个通用的 AI Agent 系统,支持在沙盒环境中运转各种工具和操作。

用 AI Manus 开启你的智能体之旅吧!
示例

Browser Use


https://github.com/user-attachments/assets/8f7788a4-fbda-49f5-b836-949a607c64ac
Code Use


https://github.com/user-attachments/assets/5cb2240b-0984-4db0-8818-a24f81624b04
环境要求

本项目次要依赖Docker停止开发与部署,需求安装较新版本的Docker:

模型才能要求:

引荐运用Deepseek与GPT模型。
部署指南

引荐运用Docker Compose停止部署:
services:
  frontend:
    image:simpleyyt/manus-frontend
    ports:
      -"5173:80"
    depends_on:
      -backend
    restart:unless-stopped
    networks:
      -manus-network
    environment:
      -BACKEND_URL=http://backend:8000

backend:
    image:simpleyyt/manus-backend
    depends_on:
      -sandbox
    restart:unless-stopped
    volumes:
      -/var/run/docker.sock:/var/run/docker.sock:ro
    networks:
      -manus-network
    environment:
      # OpenAI API base URL
      -API_BASE=https://api.openai.com/v1
      # OpenAI API key, replace with your own
      -API_KEY=sk-xxxx
      # LLM model name
      -MODEL_NAME=gpt-4o
      # LLM temperature parameter, controls randomness
      -TEMPERATURE=0.7
      # Maximum tokens for LLM response
      -MAX_TOKENS=2000
      # Google Search API key for web search capability
      #- GOOGLE_SEARCH_API_KEY=
      # Google Custom Search Engine ID
      #- GOOGLE_SEARCH_ENGINE_ID=
      # Application log level
      -LOG_LEVEL=INFO
      # Docker image used for the sandbox
      -SANDBOX_IMAGE=simpleyyt/manus-sandbox
      # Prefix for sandbox container names
      -SANDBOX_NAME_PREFIX=sandbox
      # Time-to-live for sandbox containers in minutes
      -SANDBOX_TTL_MINUTES=30
      # Docker network for sandbox containers
      -SANDBOX_NETWORK=manus-network

sandbox:
    image:simpleyyt/manus-sandbox
    command:/bin/sh-c"exit 0"# prevent sandbox from starting, ensure image is pulled
    restart:"no"
    networks:
      -manus-network

networks:
manus-network:
    name:manus-network
    driver: bridge
保存成docker-compose.yml文件,并运转
docker compose up -d

留意:假如提示sandbox-1 exited with code 0,这是正常的,这是为了让 sandbox 镜像成功拉取到本地。

打开阅读器访问http://localhost:5173即可访问 Manus。
开发指南

项目结构

本项目由三个独立的子项目组成:
全体设计

当用户发起对话时:

当用户阅读工具时:
环境预备

git clone https://github.com/simpleyyt/ai-manus.git
cd ai-manuscp .env.example .env# Model provider configuration
API_KEY=
API_BASE=https://api.openai.com/v1

# Model configuration
MODEL_NAME=gpt-4o
TEMPERATURE=0.7
MAX_TOKENS=2000

# Optional: Google search configuration
#GOOGLE_SEARCH_API_KEY=
#GOOGLE_SEARCH_ENGINE_ID=

# Sandbox configuration
SANDBOX_IMAGE=simpleyyt/manus-sandbox
SANDBOX_NAME_PREFIX=sandbox
SANDBOX_TTL_MINUTES=30
SANDBOX_NETWORK=manus-network

# Log configuration
LOG_LEVEL=INFO开发调试

# 相当于 docker compose -f docker-compose-development.yaml up
./dev.sh up
各服务会以 reload 形式运转,代码改动会自动重新加载。暴露的端口如下:

留意:在 Debug 形式全局只会启动一个沙盒
# 清算一切相关资源
./dev.sh down -v

# 重新构建镜像
./dev.sh build

# 调试运转
./dev.sh up镜像发布

export IMAGE_REGISTRY=your-registry-url
export IMAGE_TAG=latest

# 构建镜像
./run build

# 推送到相应的镜像仓库
./run push项目地址

https://github.com/Simpleyyt/ai-manus/blob/main/README_zh.md

扫码加入技术交流群,备注「开发言语-城市-昵称」

合作请注明

假如你觉得这篇文章不错,别忘了点赞、在看、转发给更多需求的小伙伴哦!我们下期再见!




欢迎光临 职贝云数AI新零售门户 (https://www.taojin168.com/cloud/) Powered by Discuz! X3.5