# OpenGUI

> An Android GUI agent stack that plans a task, operates real phone apps through their interface and returns a structured result

- Category: Agents & Automation / Computer & Browser Use
- Language: TypeScript
- Licence: BUSL-1.1
- Repository: https://github.com/Core-Mate/OpenGUI
- Website: https://opengui.ai/
- Canonical page: https://ai-tldr.dev/tools/opengui/

## In short

OpenGUI is a mobile GUI agent framework from Core-Mate that lets AI agents see, understand and operate Android app interfaces on real devices. It sits in the Computer & Browser Use category of the Agents & Automation tools and is open-source, written in TypeScript and licensed BUSL-1.1. To get started: let a coding agent bootstrap it (optional).

## Overview

OpenGUI is a mobile GUI agent framework from Core-Mate that lets AI agents see, understand and operate Android app interfaces on real devices. Its README describes a loop in which the agent reads a live app screen, plans the next step, takes mobile actions and returns structured results, and lists apps such as X, Reddit, Hacker News, Telegram, WeChat, Weibo and Xiaohongshu as targets.

The repository ships two halves: a TypeScript backend and a Kotlin Android client. On the backend, a main graph runs a Plan Supervisor that breaks the goal into steps and keeps task state, an Executor Graph that runs screenshot, vision, action and call-user loops against the live device, and a Summarizer that closes the run with a structured report. On the phone, the client uses the standard Android AccessibilityService APIs for screenshots and gestures, so root access and an unlocked bootloader are not required; ADB is only used to install the APK and set up port forwarding.

Model routing separates planning from vision-language execution, so each role can use a different provider, and the model on the vision side must support both image input and tool calling. Phones can stay on standby and take work from Feishu, Telegram, Discord or a REST API, and a local CLI lets coding agents such as Claude Code, Codex or OpenCode dispatch and track tasks. OpenGUI is source-available under the Business Source License 1.1: non-production use is free, production and commercial use need a separate license from Core-Mate, and the code converts to Apache-2.0 on the change date of 2030-04-29.

## What it does

- Plan Supervisor, Executor Graph and Summarizer: plan before acting, run screenshot-vision-action loops on the live device, then return a structured summary
- Android client built on AccessibilityService for screenshots and actions, with no root or bootloader unlock needed (Android 11 / API 30 or newer)
- Per-role model routing that splits planning from VLM execution, so planner, supervisor and vision roles can use different providers
- Standby dispatch: phones stay connected and take remote tasks from Feishu, Telegram, Discord or a REST API
- A local `pnpm opengui` CLI plus bootstrap and remote-control Skills that let Claude Code, Codex or OpenCode set up the stack and drive the phone
- Plugins that add phone operation to DeepSeek Harness and a WorkBuddy MCP + Skill + Hooks connector without deploying the full backend

## Getting started

The README's full-stack path runs the local backend and the Android client from a clone of the repository. You need an Android 11 (API 30) or newer phone or emulator with USB debugging, AccessibilityService, overlay permission and a battery optimization exemption enabled, plus model API keys for real task execution. Alternatively, open Claude Code, Codex or OpenCode in the repo root and paste the bootstrap prompt shown in step 1.

1. Let a coding agent bootstrap it (optional)

   From the OpenGUI repository root, paste this prompt into Claude Code, Codex or OpenCode. The agent reads the bootstrap Skill, starts the backend, builds or installs the Android client, runs the adb setup and only stops for phone-side actions or API keys.

```text
Read ./skills/open-gui-bootstrap/SKILL.md and help me run OpenGUI. Only ask me for phone-side actions.
```

2. Start the backend

   For the manual route, use the repository script to start the local backend.

```bash
cd server
./start.sh
```

3. Install and start the Android client

   Complete the Android permission setup guide in docs/android-permissions.md first, since permission names vary by vendor, then run the client script.

```bash
cd client
./start.sh
```

4. Send a first task

   List connected devices, then dispatch a task. `do` returns an executionId as soon as the execution is created; it does not wait for completion.

```bash
cd server
pnpm opengui -- devices --json
pnpm opengui -- do "Observe the current Android screen and summarize what you see" --json
```

5. Check status or cancel

   `status` returns one snapshot (PENDING, RUNNING or FINISHED, with the result when present), so run it again for updates; `cancel` stops the active task.

```bash
pnpm opengui -- status <executionId> --json
pnpm opengui -- cancel <executionId> --json
```

## When to use it

- Reach for it when an agent has to work inside Android apps that have no API, such as collecting posts on X or summarizing Reddit and Hacker News threads on a live phone
- Use it for automated UI operation and regression testing on authorized Android devices, including long workflows that need state, review and recovery
- Reach for it when you want to trigger phone tasks remotely from Feishu, Telegram, Discord or a REST API, with devices kept on standby
- Use it when a coding agent like Claude Code, Codex or OpenCode should dispatch and track Android app tasks through a local CLI
