一、软件介绍
文末提供程序和源码下载
TerminatorAI 驱动的桌面自动化 — 开源,MIT 许可,跨平台,优先考虑可访问性。适用于所有应用程序和浏览器。比通用 AI 代理快 100 倍,成功率>95%
二、快速启动:MCP
通过一条命令在 Claude Code 中安装 Terminator MCP:
claude mcp add terminator "npx -y terminator-mcp-agent@latest" -s user
快速启动:命令行界面
macOS/Linux
curl -fsSL https://mediar.ai/install.sh | bash
Windows
In powershell: 在 powershell 中:
irm https://mediar.ai/install.ps1 | iex
After Installation 安装后
Run the setup command to configure your environment:
运行设置命令以配置您的环境:
terminator setup
This will: 这将:
- ✅ Install the Chrome extension automatically (please do not use keyboard/mouse for a few seconds)
✅ 自动安装 Chrome 扩展(请几秒钟内不要使用键盘/鼠标) - ✅ Check system requirements (VC++ redistributables on Windows)
✅ 检查系统要求(Windows 上的 VC++ redistributables) - ✅ Configure SDKs and dependencies
✅ 配置 SDKs 和依赖项 - ✅ Verify the MCP agent is ready
✅ 验证 MCP 代理是否已准备就绪
快速入门:程序化控制
🐍 Python
import terminator
# Control applications programmatically
desktop = terminator.Desktop()
desktop.open_application('calc')
desktop.locator('name:Seven').click()
desktop.locator('name:Plus').click()
desktop.locator('name:Three').click()
desktop.locator('name:Equals').click()
# Result: 10 appears in calculator
Installation: 安装:
pip install terminator
🟦 TypeScript / Node.js
const { Desktop } = require("terminator.js");
// Async/await for modern control flow
const desktop = new Desktop();
await desktop.openApplication("notepad");
await desktop.locator("name:Edit").typeText("Hello from TypeScript!");
await desktop.pressKey("{Ctrl}s"); // Save
Installation: 安装:
npm install terminator.js
# or: bun add terminator.js
三、Feature Support 功能支持
虽然 Terminator 旨在实现完全跨平台支持,但当前功能因操作系统而异。Windows 是主要开发目标,拥有最完整的功能集。
| Feature 功能 | Windows | macOS | Linux | Notes 备注 |
|---|---|---|---|---|
| Core Automation 核心自动化 | ||||
| Element Locators 元素定位器 | ✅ | 🟡 | 🟡 | Find elements by name, role, window, etc.通过 name 、 role 、 window 等查找元素 |
UI Actions (click, type)UI 操作( click 、 type ) | ✅ | 🟡 | 🟡 | Core interactions with UI elements. 与 UI 元素的核心交互。 |
| Application Management 应用管理 | ✅ | 🟡 | 🟡 | Launch, list, and manage applications. 启动、列出和管理应用程序。 |
| Window Management 窗口管理 | ✅ | 🟡 | 🟡 | Get active window, list windows. 获取活动窗口,列出窗口。 |
| Advanced Features 高级功能 | ||||
| Browser Automation 浏览器自动化 | ✅ | ✅ | ✅ | Chrome extension enables browser control. Chrome 扩展实现浏览器控制。 |
| Workflow Recording 工作流录制 | ✅ | ❌ | ❌ | Record human workflows for deterministic automation. 录制人类工作流程以实现确定性自动化。 |
| Monitor Management 监控管理 | ✅ | 🟡 | 🟡 | Multi-display support. 多显示器支持。 |
| Screen & Element Capture 屏幕与元素捕获 | ✅ | ✅ | 🟡 | Take screenshots of displays or elements. 对显示器或元素进行截图。 |
| Language Bindings 语言绑定 | ||||
Python (terminator.py) | ✅ | ✅ | ✅ | pip install terminator |
TypeScript (terminator.js) | ✅ | ✅ | ✅ | npm i terminator.js |
MCP (terminator-mcp-agent) | ✅ | ✅ | ✅ | npx -y terminator-mcp-agent --add-to-app [app] |
Rust (terminator-rs) | ✅ | ✅ | ✅ | cargo add terminator-rs |
四、如何检查无障碍元素(如 name:Seven )
To create reliable selectors (e.g. name:Seven, role:Button, window:Calculator), you need to inspect the Accessibility Tree of your OS. Here's how to explore UI elements on each platform:
要创建可靠的选取器(例如 name:Seven 、 role:Button 、 window:Calculator ),您需要检查操作系统的可访问性树。以下是每个平台上探索 UI 元素的方法:
🪟 Windows
- Tool: Accessibility Insights for Windows
工具:Accessibility Insights for Windows - Alt: Inspect.exe (comes with Windows SDK)
替代:Inspect.exe(随 Windows SDK 提供) - Usage: Open the app you want to inspect → launch Accessibility Insights → hover or use keyboard navigation to explore the UI tree (Name, Role, ControlType, AutomationId).
使用方法:打开要检查的应用 → 启动 Accessibility Insights → 使用鼠标悬停或键盘导航探索 UI 树(Name, Role, ControlType, AutomationId)。
These tools show you the
Name,Role,ControlType, and other metadata used in Terminator selectors.
这些工具显示你在 Terminator 选择器中使用的Name、Role、ControlType和其他元数据。
🍎 macOS
- Tool: Accessibility Inspector
工具:辅助功能检查器 - Usage: Comes with Xcode → Open
Xcode > Open Developer Tool > Accessibility Inspector→ Use the target icon to explore UI elements on screen.
使用方法:随 Xcode 附带 → 打开Xcode > Open Developer Tool > Accessibility Inspector→ 使用目标图标在屏幕上探索 UI 元素。
🐧 Linux
-
Tool: Accerciser 工具:Accerciser
-
Install: 安装:
sudo apt install accerciser -
Usage: Launch Accerciser → Select the window/app → Browse the accessible widget tree.
使用方法:启动 Accerciser → 选择窗口/应用程序 → 浏览可访问的组件树。
Once you identify the structure of your UI:
一旦你确定了你的 UI 结构:
# Sample pattern
desktop.locator('window:Calculator')
.locator('role:Button')
.locator('name:Seven')
You can build and debug selector paths incrementally using .locator() chaining.
你可以使用 .locator() 链接逐步构建和调试选择器路径。
五、软件下载
本文信息来源于GitHub作者地址:https://github.com/mediar-ai/terminator

被折叠的 条评论
为什么被折叠?



