Lets coding agents drive apps on phones, simulators and TVs
open sourceMITself-hostablefreeMCP
agent-device is an MIT-licensed device layer for AI coding agents from Callstack: a CLI, a built-in stdio MCP server and a typed Node.js API that let agents inspect, control, debug and verify apps on iOS, Android and HarmonyOS simulators, emulators and physical devices, plus tvOS, Android TV, Fire TV, Vega OS, macOS, Linux and basic web. Agents read accessibility snapshots with element refs, tap, fill, scroll and gesture, and capture screenshots, video, logs, network data, crashes and React Native render profiles as evidence. Working flows save as .ad replay scripts for CI (with JUnit output, or exported as Maestro YAML). Sessions follow the git worktree so parallel agents don't take each other's devices, and the same commands drive remote hosts and device clouds such as BrowserStack, AWS Device Farm, Limrun and Expo on EAS. It works with Claude Code, Codex, Cursor and other agents, and ships an agent skill.
Problems it solves
- let my coding agent run my React Native app on the iOS simulator and check its own changes
- an MCP server so Claude Code can tap through my Android app and take screenshots
- reproduce a mobile app crash with an agent and capture the logs
- turn an agent's exploration of my app into a replay test for CI
- drive devices on BrowserStack or AWS Device Farm from an AI agent
- find unnecessary React Native re-renders with an agent
Features
- CLI, stdio MCP server and typed Node.js API over the same runtime
- iOS, Android and HarmonyOS simulators, emulators and physical devices; tvOS, Android TV, Fire TV, Vega OS, macOS, Linux; basic web via agent-browser
- accessibility snapshots with refs, diffs after each action
- tap, fill, scroll, gestures, alerts, waits and assertions
- screenshots, video, logs, traces, network data, crash details and React Native profiles as evidence
- .ad replay scripts for CI with JUnit reports; Maestro YAML export
- worktree-scoped sessions and device claims for parallel agents
- remote device hosts and device clouds: BrowserStack, AWS Device Farm, Limrun, TestMu AI, Expo on EAS
- AI SDK and Eve integrations
- agent skill for coding agents
Limitations
- Needs Node.js 22.12 or newer, and 24 or newer for web automation.1
- HarmonyOS and Vega OS support only some commands.1
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Has an MCP server | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what agent-device does.
