微信扫码
添加专属顾问
我要投稿
macOS 操作新体验,AI Agent Cua 带来革命性变革。 核心内容: 1. Cua 框架:开启 macOS 上的 AI 操作系统及应用 2. 核心功能:高性能虚拟化、AI 代理操作、安全隔离 3. 安装与使用:专为 macOS 用户优化的详细步骤
随着 AI Agent 在 2025 年的爆发式发展,macOS 用户也迎来了一个令人振奋的开源项目:Cua。
这款由 trycua 团队打造的计算机使用代理框架,不仅能在 macOS 上开启虚拟机,还能让 AI 在其中操作系统及应用,如浏览器和 VS Code。它支持 OpenAI 和 Anthropic 的 CUA 模型,未来还将兼容 Ollama 本地模型。
Cua 是一个专为 macOS 设计的开源 AI Agent 框架,它基于 Apple 的 Virtualization.Framework,结合高性能虚拟化与 AI 代理能力,允许用户在 Apple Silicon 上创建并运行 macOS 和 Linux 虚拟机。
它的核心在于其“计算机使用接口”(CUI)和代理支持,让 AI 能在隔离环境中操作桌面应用。
无论是浏览网页、编写代码,还是执行复杂任务,Cua 都能让 AI 在 macOS 上如鱼得水。
Cua 的安装和使用过程简单,专为 macOS 用户优化。以下是详细步骤:
1、安装 Lume(Cua 的虚拟化基础)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)"
2、安装cua相关的Python库
pip install cua-computer cua-agent
3、使用调用示例
import logging
from pathlib import Path
from agent import ComputerAgent, LLM, AgentLoop
computer = Computer(verbosity=logging.INFO)
# Create agent with Anthropic loop and provider
agent = ComputerAgent(
computer=computer,
loop=AgentLoop.OMNI,
model=LLM(provider=LLMProvider.ANTHROPIC, name="claude-3-7-sonnet-20250219"),
# model=LLM(provider=LLMProvider.OPENAI, name="gpt-4.5-preview"),
save_trajectory=True,
trajectory_dir=str(Path("trajectories")),
only_n_most_recent_images=3,
verbosity=logging.INFO
)
tasks = [
"Look for a repository named trycua/cua on GitHub.",
"Check the open issues, open the most recent one and read it.",
"Clone the repository in users/lume/projects if it doesn't exist yet.",
"Open the repository with an app named Cursor (on the dock, black background and white cube icon).",
"From Cursor, open Composer if not already open.",
"Focus on the Composer text area, then write and submit a task to help resolve the GitHub issue.",
]
for i, task in enumerate(tasks):
print(f"\nExecuting task {i}/{len(tasks)}: {task}")
async for result in agent.run(task):
# print(result)
pass
print(f"\n✅ Task {i+1}/{len(tasks)} completed: {task}")
启动虚拟机命令:
lume run macos-sequoia-vanilla:latest
更多用法和 Notebook 示例见 GitHub 文档,几分钟即可体验 AI 操作 macOS 的乐趣
53AI,企业落地大模型首选服务商
产品:场景落地咨询+大模型应用平台+行业解决方案
承诺:免费POC验证,效果达标后再合作。零风险落地应用大模型,已交付160+中大型企业
2025-09-03
10分钟零代码,0元立即部署OpenAI开源模型 GPT-OSS
2025-09-03
coze开源能力及与官方闭源版比较
2025-09-03
工业级AI平台开源,识别率超过99%,包含图像采集、智能检测、数据标注、模型训练四大模块
2025-09-02
Coze教程 | 第2章:Coze开发环境搭建与配置
2025-09-01
谁才是企业级开源平台的优选?OpenCSG与Dify、Coze、Langflow、Ollama 的差异化之路
2025-09-01
苹果深夜开源FastVLM:速度飙升85倍,0.5B小模型要逼疯谁?
2025-09-01
美团正式发布并开源 LongCat-Flash-Chat,动态计算开启高效 AI 时代
2025-09-01
突发,美团推出 560B 开源模型,名为长猫
2025-07-23
2025-06-17
2025-08-20
2025-06-17
2025-07-23
2025-08-05
2025-07-14
2025-08-20
2025-07-29
2025-07-12
2025-09-01
2025-08-16
2025-08-13
2025-08-11
2025-08-11
2025-08-06
2025-08-06
2025-08-06