开启左侧

通用AI Agent系统AI Manus

[复制链接]
AI Manus

AI Manus 是一个通用的 AI Agent零碎 ,撑持正在沙盒情况中运行各类东西战操纵。

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

Browser Use

    • 任务:llm 最新论文

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

    • 任务:写一个庞大的 python 示例

https://github.com/user-attachments/assets/5cb2240b-0984-4db0-8818-a24f81624b04
情况请求

原名目主要依靠Docker截至开辟取布置,需要装置较新版原的Docker:
    • Docker 20.10+• Docker Compose

模子才气请求:
    • 兼容OpenAI交心• 撑持FunctionCall• 撑持Json Format输出

举荐使用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
    co妹妹and:/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。
开辟指北

名目构造

原名目由三个自力的子名目构成:
    • frontend: manus 前端• backend: Manus 后端• sandbox: Manus 沙盒
部分设想

当用户倡议对于话时:
    1. Web 背 Server 收收创立 Agent 恳求,Server 颠末/var/run/docker.sock创立出 Sandbox,并前去会话 ID。2. Sandbox 是一个 Ubuntu Docker 情况,里面会启用 chrome 浏览器及 File/Shell 等东西的 API效劳 。3. Web 朝会话 ID 中收收用户消息,Server 支到用户消息后,将消息收收给 PlanAct Agent处置 。4. PlanAct Agent处置 过程当中会挪用相干东西完毕任务。5. Agent处置 过程当中发生的统统工作颠末 SSE 发还 Web。

当用户浏览东西时:
    • 浏览器:
      1. Sandbox 的无头浏览器颠末 xvfb 取 x11vnc 启用了 vnc效劳 ,而且颠末 websockify 将 vnc 转移成 websocket。2. Web 的 NoVNC 组件颠末 Server 的 Websocket Forward 转收到 Sandbox,完毕浏览器检察。
    • 别的东西:别的东西道理也是好未几。
情况准备

    1. 下载名目:
git clone https://github.com/simpleyyt/ai-manus.git
cd ai-manus
    2. 复造设置文献:
cp .env.example .env
    3. 改正设置文献:
# 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开辟调试

    1. 运行调试:
# 相称于 docker compose -f docker-compose-development.yaml up
./dev.sh up
各效劳会以 reload方式 运行,代码窜改会主动从头减载。表露的端心以下:
    • 5173: Web前端端心• 8000: Server API效劳端心• 8080: Sandbox API效劳端心• 5900: Sandbox VNC端心• 9222: Sandbox Chrome浏览器CDP端心

留神:正在 Debug方式 全部只会启用一个沙盒
    2. 当依靠变革时(requirements.txt或者package.json),清理偏重 新建立:
# 清理统统相干资本
./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

扫码参加手艺交换群,备注「开辟语言-都会-昵称」

协作请说明

假设您以为那篇文章没有错,别记了面赞、正在瞅、转收给更多需要的小同伴哦!咱们下期再会!
您需要登录后才可以回帖 登录 | 立即注册 qq_login

本版积分规则

发布主题
阅读排行更多+
用专业创造成效
400-778-7781
周一至周五 9:00-18:00
意见反馈:server@mailiao.group
紧急联系:181-67184787
ftqrcode

扫一扫关注我们

Powered by 职贝云数A新零售门户 X3.5© 2004-2025 职贝云数 Inc.( 蜀ICP备2024104722号 )