Manina AI
Automate Android with AI using ADB and a phone-use model
Try it on your own screenshot. New accounts get $1 of free credit.
To automate an Android phone with AI, take a screenshot over ADB, ask a phone-use model for the next action, and run it with adb shell input. No root and no accessibility service are needed. Manina-4B-Lite returns each step in 113 ms on the server at $0.0003 per answered call.
One step in Python
import base64, json, os, subprocess, urllib.request
def act(goal, plan, history):
png = subprocess.run(["adb", "exec-out", "screencap", "-p"], capture_output=True, check=True).stdout
body = {"image": base64.b64encode(png).decode(), "goal": goal, "plan": plan, "history": history or None}
req = urllib.request.Request("https://llm.manina.ai/v1/act", data=json.dumps(body).encode(), method="POST",
headers={"Authorization": "Bearer " + os.environ["MANINA_API_KEY"], "Content-Type": "application/json"})
return json.load(urllib.request.urlopen(req))
step = act("Open Wi-Fi settings", "1. Open Settings\n2. Tap Wi-Fi", "")
if step["op"] == "TAP" and step["op_prob"] >= 0.75:
p = step["point"]
subprocess.run(["adb", "shell", "input", "tap", str(p["x"]), str(p["y"])], check=True)Coordinates come back in the pixels of the screenshot you sent, which on ADB are the device's own pixels, so they go straight into input tap. Map SWIPE_UP to input swipe, BACK to input keyevent 4 and HOME to input keyevent 3.
No code
The Playground connects to an Android phone over WebUSB in Chrome and runs a task step by step, so you can watch each decision before writing anything.
FAQ
Why use pixels instead of the view tree?
Many apps draw custom views, web views or games that the accessibility tree does not describe well. A vision model works from what is on screen, the same way a person does.
Do I need root?
No. USB debugging is enough: adb exec-out screencap for the screenshot and adb shell input for taps, swipes and text.
How fast and how much?
Server-side P50 is 113 ms per /v1/act step. Each answered call costs $0.0003, and errors are free.
Can I try it without writing code?
Yes. The Playground connects to an Android phone over WebUSB in Chrome and runs a task step by step.
More guides
- Phone-use API: screenshot in, tap out
- GUI grounding API for mobile screenshots
- How to automate an iPhone with AI, without a jailbreak
- Manina-4B-HD-1.0: open weights for mobile GUI grounding
- Manina AI API docs
Try it on your own screenshot. New accounts get $1 of free credit.