Skip to content

Quickstart

Manina AI turns phone screenshots into exact taps and step-by-step actions on iPhone and Android. Choose whichever path fits your workflow:

  1. Use our CLI (npm i -g manina): drive a connected Android (adb) or iPhone (ESP32 Agent board) straight from your terminal with zero code.
  2. Feed the docs to your AI coding agent: point Claude Code, Codex, or Cursor at https://manina.ai/llms-full.txt and let it generate your client integration.
  3. Call the HTTP API (Python / Node.js / cURL): standard JSON over HTTPS at https://llm.manina.ai.
  • Base URL: https://llm.manina.ai
  • Header: Authorization: Bearer $MANINA_API_KEY
  • Key prefixes: Live keys start with hsk_live_; Sandbox keys start with hsk_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 manina CLI. 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 and 503 busy responses are free.
Environment
export MANINA_API_KEY="hsk_live_..."

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.

locate.py
import base64
import json
import os
import 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.")
200 OK
{
"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).

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.

act.py
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")))

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:

Terminal
npm i -g manina
manina login # opens your browser to authorize this computer
manina 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.