Quickstart
Manina AI turns phone screenshots into exact taps and step-by-step actions on iPhone and Android. Choose whichever path fits your workflow:
- Use our CLI (
npm i -g manina): drive a connected Android (adb) or iPhone (ESP32 Agentboard) straight from your terminal with zero code. - Feed the docs to your AI coding agent: point Claude Code, Codex, or Cursor at
https://manina.ai/llms-full.txtand let it generate your client integration. - Call the HTTP API (
Python/Node.js/cURL): standard JSON over HTTPS athttps://llm.manina.ai.
Authentication & free credit
Section titled “Authentication & free credit”- Base URL:
https://llm.manina.ai - Header:
Authorization: Bearer $MANINA_API_KEY - Key prefixes: Live keys start with
hsk_live_; Sandbox keys start withhsk_test_. Create and manage keys in your account settings (API keys →). - Free credit & billing: Every new account receives $1 of free credit (about 3,333 model calls, never expires) for the Playground, Web App, and
maninaCLI. Developer API keys (hsk_live_…) draw from your prepaid account balance (top up from $5, or enable Auto Top-up) (Billing →). Calls cost $0.30 per 1,000 answered requests; errors and503 busyresponses are free.
export MANINA_API_KEY="hsk_live_..."1. Find where to tap (POST /v1/locate)
Section titled “1. Find where to tap (POST /v1/locate)”Send a full phone screenshot (PNG, JPEG, or WebP) and one plain-language instruction. The response gives you the tap point and bounding box in the original pixel coordinates of the image you sent.
import base64import jsonimport osimport urllib.request
with open("screenshot.png", "rb") as f: image_b64 = base64.b64encode(f.read()).decode("ascii")
req = urllib.request.Request( "https://llm.manina.ai/v1/locate", data=json.dumps({ "image": image_b64, "text": "Settings app icon", }).encode("utf-8"), headers={ "Authorization": f"Bearer {os.environ['MANINA_API_KEY']}", "Content-Type": "application/json", }, method="POST",)
with urllib.request.urlopen(req) as resp: result = json.loads(resp.read().decode("utf-8"))
if result["on_screen"]: print("Tap pixel:", result["point"], "box:", result["box"])else: print("Target is not on screen; scroll or navigate first.")import { readFileSync } from 'node:fs';
const response = await fetch('https://llm.manina.ai/v1/locate', { method: 'POST', headers: { Authorization: `Bearer ${process.env.MANINA_API_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ image: readFileSync('screenshot.png').toString('base64'), text: 'Settings app icon', }),});
const data = await response.json();if (data.on_screen) { console.log('Tap pixel:', data.point);}( printf '{"text":"Settings app icon","image":"' base64 < screenshot.png | tr -d '\n' printf '"}') | curl -sS https://llm.manina.ai/v1/locate \ -H "Authorization: Bearer $MANINA_API_KEY" \ -H "Content-Type: application/json" \ --data-binary @-{ "id": "loc_2f7c9a1e0b6d4f3a", "point": {"x": 1203, "y": 330}, "box": [1112, 266, 1294, 394], "on_screen": true, "present_prob": 0.998, "confidence": 0.93, "image": {"width": 1320, "height": 2868}, "latency_ms": 268, "model": "manina-locate-1"}Tap point only when on_screen is true. Full parameter and response details: Locate API (POST /v1/locate).
2. Pick the next step (POST /v1/act)
Section titled “2. Pick the next step (POST /v1/act)”When you have a multi-step goal and a numbered plan, POST /v1/act inspects the current screenshot and recent action history and returns the next UI operation (TAP, SWIPE_UP, BACK, TYPE, DONE, and others) together with pixel coordinates when tapping.
import base64, json, os, urllib.request
with open("screenshot.png", "rb") as f: image_b64 = base64.b64encode(f.read()).decode("ascii")
req = urllib.request.Request( "https://llm.manina.ai/v1/act", data=json.dumps({ "image": image_b64, "goal": "Open Wi-Fi settings", "plan": "1. Open Settings\n2. Tap Wi-Fi", }).encode("utf-8"), headers={ "Authorization": f"Bearer {os.environ['MANINA_API_KEY']}", "Content-Type": "application/json", }, method="POST",)
with urllib.request.urlopen(req) as resp: print(json.loads(resp.read().decode("utf-8")))import { readFileSync } from 'node:fs';
const response = await fetch('https://llm.manina.ai/v1/act', { method: 'POST', headers: { Authorization: `Bearer ${process.env.MANINA_API_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ image: readFileSync('screenshot.png').toString('base64'), goal: 'Open Wi-Fi settings', plan: '1. Open Settings\n2. Tap Wi-Fi', }),});
console.log(await response.json());( printf '{"goal":"Open Wi-Fi settings",' printf '"plan":"1. Open Settings\\n2. Tap Wi-Fi",' printf '"image":"' base64 < screenshot.png | tr -d '\n' printf '"}') | curl -sS https://llm.manina.ai/v1/act \ -H "Authorization: Bearer $MANINA_API_KEY" \ -H "Content-Type: application/json" \ --data-binary @-Full action schema and all enum values: Next Action API (POST /v1/act).
3. Run tasks from your terminal (npm i -g manina)
Section titled “3. Run tasks from your terminal (npm i -g manina)”Want Manina to plan and execute full tasks on a real Android phone (over adb) or iPhone (through an ESP32 Agent board) without writing loop code? Install the Manina CLI:
npm i -g maninamanina login # opens your browser to authorize this computermanina devices # lists connected Android phones (--iphone for boards)manina run "Open Settings and go to Wi-Fi"See Manina CLI (manina) for saved intents, background schedules, and Android/iPhone setup, Manina-4B-HD-1.0 (open weights) to run the 4B research grounding model locally in Python, or Models & pricing for model specs and billing rules.
