2,327
Stars
111
Forks
10
Watchers
25
Open Issues
MIT
许可证
Swift
语言
2025-05-21
创建时间
2026-11-11
最近更新
项目能做什么
基于 Apple 私有辅助功能 API 与 iOS 模拟器交互的 CLI 命令行工具。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<img src="banner.png" alt="AXe" width="600"/>
AXe is a command-line tool that automates iOS simulators, including the dual-screen iPhone Duo, and connected iPhones and iPads. It reads the accessibility tree, sends taps, typing, gestures and hardware buttons, captures screenshots and video, and changes device settings. An agent mode gives AI agents checked, stateful control of the UI.
[](https://github.com/cameroncooke/AXe/actions/workflows/release.yml)
[](https://opensource.org/licenses/MIT)
## Install
```bash
brew install cameroncooke/axe/axe
axe --help
```
### AI skill
`axe init` installs the skill bundled with your AXe binary for the AI clients it detects (`--client claude|agents`, `--dest <dir>`, `--force`, `--uninstall`, `--print`). To keep the skill updated as releases ship, install it from this repository's marketplace instead, and keep the CLI on the latest release:
```bash
claude plugin marketplace add cameroncooke/AXe && claude plugin install axe@axe
codex plugin marketplace add cameroncooke/AXe && codex plugin add axe@axe
```
The marketplace reads the case-sensitive `Skills/CLI` path; clients that require a lowercase `skills/` directory are unsupported.
## Quick start
```bash
axe list-simulators # find a booted simulator's UDID
export UDID=<UDID>
axe describe-ui --udid "$UDID" # accessibility tree as JSON
axe tap --label "Continue" --udid "$UDID"
axe type 'Hello world' --udid "$UDID"
axe screenshot --udid "$UDID" --output screen.png
```
Every command needs an explicit `--udid`; AXe never picks a device for you. Coordinates are logical points in the current orientation, the units `axe displays` reports, not screenshot pixels. Run `axe <command> --help` for every option.
## Output and errors
Without `--output`, commands print text:
- Commands that read or change state print that state in a few lines (`displays`, `settings`, `hinge`, `rotate`, `doctor`, `shutdown`, `clipboard copy`).
- Input commands print nothing on success, except `tap`, `slider` and `batch`, which print a `✓ … completed successfully` line.
- `screenshot` and `record-video` print the file path.
- A failure prints `Error: <message>` to stderr and exits nonzero.
Put `--output json` before the command for one `axe.output.command-result` object on stdout:
```
$ axe --output json screenshot --udid "$UDID" --output shot.png
{"command":"screenshot","data":{"result":{"path":"/…/shot.png","pixelHeight":2868,"pixelWidth":1320}},"didError":false,"nextSteps":[],"schema":"axe.output.command-result","schemaVersion":"1"}
$ axe --output json tap --id no-such-element --udid "$UDID"
{"command":"tap","data":{},"didError":true,"error":{"code":"elementNotFound","message":"No accessibility element matched --id 'no-such-element'. …"},"nextSteps":[],"schema":"axe.output.command-result","schemaVers
阅读完整原文
商业机会分析 AI 生成
macOS 菜单栏/桌面端 AI 移动开发助手(No-Code / Natural Language QA)
| 产品构想 | 基于 AXe CLI 封装轻量级 macOS 应用,内置 LLM(支持用户自带 API Key 或订阅),开发者只需通过自然语言指令(如'帮我测试注册流程并截取异常')即可实时操控本地 iOS 模拟器,自动生成测试录屏和步骤报告。 |
| 核心功能 | 一键检测并连接本地模拟器、自然语言任务输入与执行追踪、自动重试与异常诊断截图、预设常见自动化脚本工作流 |
| 目标用户 | iOS 独立开发者、中小型团队前端/移动端开发者与产品经理 |
| 难度/周期 | 中等 · 4-6 周 · 成本:极低(纯客户端开发,本地调用 AXe 和外部 LLM API) |
| 收费模式 | 买断制 License 授权(如 $29-$49/座席)或月度订阅(提供内置云端模型代理) |
| 竞争风险 | 依赖 macOS 系统更新与 Apple 私有 API 稳定性;苹果若更新安全策略可能导致 API 失效(尚需验证的假设) |
| 依据 | 已验证事实 |
移动端 CI/CD 智能测试与巡检 GitHub Action / CLI 商业版
| 产品构想 | 针对 GitHub Actions / Bitrise 等构建环境,提供基于 AXe 的智能化端到端烟雾测试和 UI 验证工具。只需提供用户流程描述,PR 提交时自动启动模拟器执行验证并回写包含截图/视频的 PR 审查报告。 |
| 核心功能 | 开箱即用的 CI 步骤集成、失败路径智能回放、多版本模拟器并发跑测、PR 评论区自动化多模态富文本报告 |
| 目标用户 | 中大型 iOS 开发团队、移动端 DevSecOps / QA 负责人 |
| 难度/周期 | 中等 · 6-8 周 · 成本:低至中等(CI 镜像与云端分析服务开销) |
| 收费模式 | Freemium SaaS(每月免费额度,按执行时长/测试轮次收取月费 $49-$199/月) |
| 竞争风险 | macOS 云端 Runner 运行成本较高,单机并发性能可能受限于硬件资源 |
| 依据 | 数据支持的判断 |
Device Agent Protocol 协议层服务与企业设备农场中间件
| 产品构想 | 将 AXe 封装为标准的 MCP(Model Context Protocol)或 gRPC/HTTP 服务,支持将私有真机/模拟器设备池暴露给企业自研的 AI Agent 系统,提供多租户隔离、设备锁定、审计录像与统一错误管理。 |
| 核心功能 | AXe 的远程 MCP/gRPC 包装层、多设备并发调度与锁管理、指令执行安全拦截与审计日志、真机与模拟器状态监控看板 |
| 目标用户 | 研发自主设备控制 Agent(Mobile-use AI)的创业公司、大型企业移动端中台团队 |
| 难度/周期 | 较高 · 8-12 周 · 成本:中等(设备管理节点与后端服务开发) |
| 收费模式 | B端企业年费授权(私有化部署 $3,000-$10,000/年)及专家技术支持服务 |
| 竞争风险 | 私有 API 在不同 iOS 真机版本兼容性可能受限(推测),大客户销售与技术支持周期较长 |
| 依据 | AI推测 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| microsoft/playwright | 中文介绍暂未生成 Playwright is a framework for Web Testing and Automation. It |
99,886 | TypeScript |
| SeleniumHQ/selenium | 中文介绍暂未生成 A browser automation framework and ecosystem. |
34,580 | Java |
| appium/appium | 中文介绍暂未生成 Cross-platform automation framework for all kinds of apps, b |
22,209 | TypeScript |
| wanshuiyin/Auto-claude-code-research-in-sleep | 中文介绍暂未生成 ARIS ⚔️ (Auto-Research-In-Sleep) — Lightweight Markdown-only |
19,037 | Python |
| g1879/DrissionPage | 中文介绍暂未生成 Python based web automation tool. Powerful and elegant. |
12,572 | Python |
| wix/Detox | 中文介绍暂未生成 Gray box end-to-end testing and automation framework for mob |
12,057 | JavaScript |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2025-05-21,近 30 天仍在推送,发布过 41 个 Release |
| 社区活跃 | Star 2,327 / Fork 111 / Issue 25(数据支持,可自行核实) |
| 许可证 | MIT |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/cameroncooke/AXe.git cd AXe # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。