Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyProgramming

agent-device

Lets your AI agent open, inspect and control mobile, web, TV and desktop apps on devices and simulators to verify its changes.

5.3k stars on GitHubby CallstackLicense MITUpdated 18 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add agent-device -- npx -y agent-device mcp

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Run the onboarding screen on the iOS simulator and attach screenshots.
Reproduce this crash and capture the logs that lead up to it.

What it is

agent-device is an open-source tool that gives coding agents a way to use a running app. Agents read accessibility snapshots, tap and fill fields through refs, and save screenshots, video and logs as evidence. It covers iOS, Android, HarmonyOS, TV, web, macOS and Linux, and works as a CLI, an MCP server or a Node.js API.

What it can do

  • agent-device open: start a session in an app
  • agent-device snapshot -i: read the screen as an accessibility tree
  • agent-device press and fill: tap elements and fill fields
  • agent-device screenshot: save a screenshot as evidence
  • agent-device doctor: check the setup
  • agent-device mcp: start the MCP server

When to use

  • β€ΊWhen you want your agent to run the app it just changed and check that it works.
  • β€ΊWhen you need to reproduce a crash and capture the logs.
  • β€ΊWhen you want to record a working flow as a script to replay in CI.

What you need

Node.js 22.12 or newer (24 or newer for web automation) and agent-device installed with npm install -g agent-device@latest. You also need the matching simulator, emulator or device for your target.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

Yes. The readme calls it open source and shows a license file.

Which platforms are supported?

iOS, Android, HarmonyOS, tvOS, Android TV, Fire OS, Vega OS, web, macOS and Linux. Support depth varies by target.

Does it work with React Native, Expo and Flutter?

Yes, along with native iOS and Android apps, on supported targets.

Can it run in CI?

Yes. Save a run as an .ad script, replay it in CI and keep screenshots and logs as artifacts. It can also export strict Maestro YAML.

Can it use cloud devices?

Yes. The readme lists BrowserStack, AWS Device Farm, TestMu AI and Limrun.

How do I see what a target supports?

Run agent-device capabilities --platform followed by the platform name.

If it does not work

  • β€ΊRun agent-device doctor yourself before handing the CLI to an agent.
  • β€ΊCheck Node.js is 22.12 or newer, or 24 or newer for web automation.
  • β€ΊRefs are only valid in the latest output, so take a new snapshot if an action fails on a stale ref.

5 new skills a week. 1 minute to read.