TerminatorAI 开源程序是驱动的桌面自动化 ,MIT 许可,跨平台,优先考虑可访问性。适用于所有应用程序和浏览器。比通用 AI 代理快 100 倍,成功率>95%

​一、软件介绍

文末提供程序和源码下载

TerminatorAI 驱动的桌面自动化 — 开源,MIT 许可,跨平台,优先考虑可访问性。适用于所有应用程序和浏览器。比通用 AI 代理快 100 倍,成功率>95%

二、快速启动:MCP

通过一条命令在 Claude Code 中安装 Terminator MCP:

claude mcp add terminator "npx -y terminator-mcp-agent@latest" -s user
或通过 MCP 目录为其他客户端安装。

快速启动:命令行界面

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  功能WindowsmacOSLinuxNotes  备注
Core Automation  核心自动化
Element Locators  元素定位器🟡🟡Find elements by namerolewindow, etc.
通过 name 、 role 、 window 等查找元素
UI Actions (clicktype)
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:Sevenrole:Buttonwindow: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 NameRoleControlType, 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

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值