Ghosthand for Openclaw

Ghosthand is a high-performance local HTTP runtime that enables AI agents to observe and control Android devices through structured UI inspection and semantic interaction.

folklore25
v1.0.5
Apr 6, 2026
0
903
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install ghosthand-skill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install ghosthand-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Ghosthand?

Ghosthand serves as a specialized Android agent substrate, exposing a local loopback HTTP API (typically at http://127.0.0.1:5583) for granular device control. Unlike generic automation tools, it provides a route-based interface specifically designed for AI agents using Openclaw Skills. It allows for sophisticated interaction with the Android OS, ranging from simple pings and health checks to complex UI tree analysis and coordinate-based gestures.

By leveraging Ghosthand, developers can build workflows that move beyond fragile coordinate tapping. The runtime supports multiple observation sources—including accessibility services, OCR, and hybrid modes—ensuring that agents can maintain situational awareness even when standard UI hierarchies are obscured or unavailable.

Ghosthand Use Cases

  • Automating repetitive tasks on Android devices via AI-driven Openclaw Skills.
  • Performing structured UI testing and inspection through a machine-readable API.
  • Enabling semantic interaction with mobile applications using text, description, or resource ID selectors.
  • Debugging Android application state and accessibility node hierarchies in real-time.
  • Bridging the gap between LLM reasoning and physical device execution for mobile automation.

How Ghosthand Works

  1. Initialization: The agent first verifies connectivity by calling /ping and checks system health and capability authorization via /state.
  2. Surface Observation: The agent requests the current UI state using /screen, defaulting to accessibility-based inspection to identify actionable elements.
  3. Target Selection: Using the returned data, the agent selects the best interaction strategy (e.g., text-based click, ID-based find, or coordinate tap).
  4. Execution: The agent sends a command to the appropriate Ghosthand route, such as /click, /input, or /scroll, to perform the action.
  5. Verification: After an action, the agent calls /wait or re-inspects the screen to confirm the UI has transitioned to the desired state.

Ghosthand Setup

Ghosthand runs as a local HTTP server on the target Android device. Ensure the device is reachable via loopback and the service is active.

# Check if Ghosthand is alive
curl http://127.0.0.1:5583/ping

# Verify capability state (Accessibility, Screenshot, etc.)
curl http://127.0.0.1:5583/state

# List all available commands and routes
curl http://127.0.0.1:5583/commands

Ghosthand Data Schema & Taxonomy

Ghosthand organizes interaction data through specialized routes. Below is the primary metadata and route taxonomy:

Category Primary Routes Description
Runtime /state, /capabilities Health, permissions, and available features.
Inspection /screen, /tree, /find Structured UI data (JSON) and hierarchy.
Action /click, /tap, /input, /scroll Execution of physical or semantic interactions.
Sensing /screenshot, /clipboard Visual and data transport primitives.

Note: Node IDs provided in responses are snapshot-scoped and ephemeral; they should be re-validated after any UI change.

Ghosthand Advanced Features

  • Multi-Source Vision: Fallback from accessibility to /screen?source=ocr or source=hybrid when UI elements are unmapped.
  • Semantic Resolution: Automatic clickable ancestor resolution via /click to handle wrapper elements efficiently.
  • State Settle Logic: Intelligent /wait functionality that monitors for UI stability before proceeding with the next Openclaw Skills step.
  • Policy-Gated Capabilities: Granular control over which system permissions (e.g., notification access, screenshot) are exposed to the agent.
  • IME Confirmation: Support for on-screen keyboard confirmation actions to handle input submission where standard 'Enter' keys fail.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*