AI Skill Hub 推荐使用:SwiftAutoGUI 是一款优质的Agent工作流。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。
SwiftAutoGUI是一款开源的AI工作流库,用于macOS的自动化,支持鼠标、键盘、截图和图像识别等功能。它可以帮助开发者快速构建自动化脚本,提高工作效率。
SwiftAutoGUI 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
SwiftAutoGUI是一款开源的AI工作流库,用于macOS的自动化,支持鼠标、键盘、截图和图像识别等功能。它可以帮助开发者快速构建自动化脚本,提高工作效率。
SwiftAutoGUI 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 克隆仓库 git clone https://github.com/NakaokaRei/SwiftAutoGUI cd SwiftAutoGUI # 查看安装说明 cat README.md # 按 README 完成环境依赖安装后即可使用
# 查看帮助 swiftautogui --help # 基本运行 swiftautogui [options] <input> # 详细使用说明请查阅文档 # https://github.com/NakaokaRei/SwiftAutoGUI
# swiftautogui 配置说明 # 查看配置选项 swiftautogui --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export SWIFTAUTOGUI_CONFIG="/path/to/config.yml"
A Swift library for macOS automation — mouse, keyboard, screenshots, image recognition, and AI-powered agents.
This repository is inspired by pyautogui.
Inside Claude Code:
/plugin marketplace add NakaokaRei/SwiftAutoGUI
/plugin install swift-auto-gui@swift-auto-gui
This installs the macos-control skill, which is invoked as /swift-auto-gui:macos-control. The skill walks Claude through installing the sagui binary the first time it's needed (Swift 6.2+ toolchain required).
If you would like to know more details, please refer to the DocC Style Document.
import SwiftAutoGUI
let backend = OpenAIVisionBackend(apiKey: "sk-...", model: "gpt-4o")
let agent = Agent(backend: backend, maxIterations: 15)
let result = try await agent.run(goal: "Open Safari and search for Swift")
print("Completed: \(result.completed), Steps: \(result.iterationsUsed)")
import SwiftAutoGUI
// Execute single actions
await Action.leftClick.execute()
await Action.write("Hello, World!").execute()
await Action.keyShortcut([.command, .a]).execute() // Select all
// Build and execute action sequences
let actions: [Action] = [
.move(to: CGPoint(x: 100, y: 100)),
.wait(0.5),
.leftClick,
.write("Hello, SwiftAutoGUI!"),
.keyShortcut([.returnKey])
]
await actions.execute()
// Example: Copy text from one app and paste to another
let copyPasteWorkflow: [Action] = [
// Focus on source app
.move(to: CGPoint(x: 100, y: 200)),
.leftClick,
.wait(0.5),
// Select and copy text
Action.selectAll(),
.wait(0.2),
Action.copy(),
.wait(0.5),
// Switch to destination app (using keyboard shortcut)
.keyShortcut([.command, .tab]),
.wait(1.0),
// Paste the text
.move(to: CGPoint(x: 500, y: 400)),
.leftClick,
Action.paste(),
// Save the document
Action.save()
]
await copyPasteWorkflow.execute()
AI Agent that autonomously observes the screen and executes actions to achieve a goal.
sagui agent "Open Safari and search for Swift"
<img src="https://github.com/user-attachments/assets/0b501faa-ff8a-4fee-8bf7-9db49bbd6766" alt="Demo: sagui agent" width="900">
sagui agent "Click the trash icon" --model gpt-4o --max-iterations 15 --delay 2.0
export OPENAI_API_KEY=sk-... sagui agent "Open Terminal" ```
SwiftAutoGUI is available through Swift Package Manager.
in Package.swift add the following:
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/NakaokaRei/SwiftAutoGUI", branch: "master")
],
targets: [
.target(
name: "MyProject",
dependencies: [..., "SwiftAutoGUI"]
)
...
]
SwiftAutoGUI ships as a Claude Code plugin so Claude can control macOS GUI applications via the sagui CLI — taking screenshots, clicking buttons, typing text, scrolling, and more.
SwiftAutoGUI是一款功能强大的AI工作流库,支持多种自动化功能,适合需要自动化macOS操作的开发者。然而,库的文档和示例代码可能需要进一步完善。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,SwiftAutoGUI 是一款质量良好的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | SwiftAutoGUI |
| 原始描述 | 开源AI工作流:A Swift library for macOS automation — mouse, keyboard, screenshots, image recog。⭐88 · Swift |
| Topics | SwiftmacOS自动化GUI |
| GitHub | https://github.com/NakaokaRei/SwiftAutoGUI |
| License | MIT |
| 语言 | Swift |
收录时间:2026-06-07 · 更新时间:2026-06-08 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端