Claude Code Computer Use 快速上手

Claude Code Computer Use 快速上手

安装 Claude Code

先装 Node.js 18+,然后:

npm install -g @anthropic-ai/claude-code

国内用户先换镜像:

npm config set registry https://registry.npmmirror.com

装完后登录:

claude login

添加 Computer Use MCP

一行命令:

claude mcp add --scope user --transport stdio my-computer-use -- npx -y computer-use-mcp

这会给 Claude Code 加上操作电脑的能力。

申请系统权限

启动 Claude Code,输入:

computer use mcp 的各项功能检查一下

Mac 会弹两个权限请求:

  • 辅助功能:控制鼠标键盘
  • 屏幕录制:截图看屏幕内容

点"允许"就行。

权限有了之后,可以让它:

打开浏览器,搜索 Claude Code,截图给我看

它会自己操作浏览器、截图、把结果发回来。

权限给出去,AI 就能操作你的电脑。不放心的话,先用测试环境试试。Windows 权限管理方式不同,但原理一样。


简单说:装 Claude Code → 加 MCP → 给权限 → 就能让 AI 操作电脑了。

posted @ 2026-05-11 22:56  surenkid  阅读(139)  评论(0)    收藏  举报