开发者发布桌面自动化工具 usecomputer,用 Zig 编写兼容多款 AI 编程助手

Gate News 消息,3 月 25 日,开源开发者 Tommaso De Rossi 发布桌面自动化命令行工具 usecomputer,该工具用 Zig 编写原生二进制文件,不依赖 Node.js 运行时,可让 AI 编程助手(包括 Claude Code、Codex、OpenCode 等)直接控制桌面的鼠标、键盘和截图功能。工具支持 macOS 和 Linux(X11,Wayland 通过 XWayland 兼容)。usecomputer 提供截图、鼠标移动/点击/拖拽/滚动、键盘输入和快捷键合成等 CLI 命令,配备坐标映射系统(coord-map),可将截图中的像素坐标自动转换为实际屏幕坐标。截图输出默认将最长边缩放至 1568 像素以适配模型上下文窗口。此外,工具支持 Kitty Graphics Protocol,设置环境变量后截图可直接内联到模型上下文中。De Rossi 此前开发的浏览器自动化工具 Playwriter 已获得 3200+ GitHub 星标,usecomputer 是其从浏览器自动化向桌面自动化的延伸。该项目从其 kimaki 单仓库中独立拆分,同时提供 CLI 和 Node.js 库两种使用方式,README 中包含 OpenAI computer tool 和 Anthropic computer use 的完整集成示例。

Disclaimer: The information on this page may come from third parties and does not represent the views or opinions of Gate. The content displayed on this page is for reference only and does not constitute any financial, investment, or legal advice. Gate does not guarantee the accuracy or completeness of the information and shall not be liable for any losses arising from the use of this information. Virtual asset investments carry high risks and are subject to significant price volatility. You may lose all of your invested principal. Please fully understand the relevant risks and make prudent decisions based on your own financial situation and risk tolerance. For details, please refer to Disclaimer.
Commento
0/400
Nessun commento