π» Hello World β Ghost CLI
ghost "check reddit" --device asus β one line, real phone. No client to configure, no session to babysit. The killer one-liner.
Prerequisites
Section titled βPrerequisitesβ- Ghost installed (
pip install ghost-in-the-droidorpipx install ghost-in-the-droid) - A phone connected over ADB with USB debugging on (
adb devicesshows it) - An LLM brain configured (Claude Code subscription,
ANTHROPIC_API_KEY, OpenRouter, or Ollama β see LLM Providers)
Step 1 β The one-liner
Section titled βStep 1 β The one-linerβThis is the exact command from the video:
ghost "Check what's on r/LocalLLaMA in the reddit app" --device asusThe ghost wakes the phone, opens Reddit, reads the screen, scrolls the subreddit, and reports back β all from a single shell line. --device takes any ADB serial or alias; leave it off if only one phone is connected.
Step 2 β Try your own prompt
Section titled βStep 2 β Try your own promptβAnything youβd tap by hand, the ghost taps for you:
ghost "Open Settings and tell me the battery percentage"ghost "Take a selfie with a 3 second timer"Prefer raw Python?
Section titled βPrefer raw Python?βThe CLI wraps the same Device class you can script directly:
from gitd.bots.common.adb import Device
dev = Device() # auto-detects a single connected phonedev.adb("shell", "input", "keyevent", "KEYCODE_WAKEUP")dev.adb("shell", "am", "start", "-n", "com.android.settings/.Settings")
xml = dev.dump_xml() # read the UI hierarchynodes = dev.find_nodes(xml, text="Network")if nodes: dev.tap_node(nodes[0]) # the ghost tapsSave as hello.py, run python3 hello.py, and watch Settings open on the phone.
What next?
Section titled βWhat next?β- CLI Reference β every entry point and env var
- Record Macros β record taps once, replay at any speed
- Skill System β turn one-liners into reusable skills
- Dashboard β the same power, in the browser
Try another approach β
Section titled βTry another approach ββMCP + Claude Code Β· MCP + Codex Β· MCP + Antigravity Β· LangChain Β· Web Chat Β· On-Device Android Β· On-Device iPhone Β· iPhone Duolingo