Logo de Open Gui Remote Control

Open Gui Remote Control

OrganizaçãoPopular
Core-Mate
open-gui-remote-control

Control an Android phone through OpenGUI from an AI coding agent such as Claude Code, Codex, or OpenCode. Use when an agent should list online devices, run a natural-language mobile task, check execution status, pause, resume, or cancel through the local OpenGUI backend and CLI.

Add to TypingMind

Visão geral

Publicado porCore-Mate
RepositórioOpenGUI
Nome da habilidadeopen-gui-remote-control
Estrelas
1.8K
Forks
106
Arquivos incluídos
1
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 1

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por Core-Mate no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Open Gui Remote Control no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/Core-Mate/OpenGUI/tree/main/skills/open-gui-remote-control
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Core-Mate/OpenGUI.git /tmp/OpenGUI
mkdir -p .claude/skills
cp -r /tmp/OpenGUI/skills/open-gui-remote-control .claude/skills/open-gui-remote-control
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Open Gui Remote Control em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Open Gui Remote Control automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Open Gui Remote Control não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

OpenGUI Remote Control

Use this skill when an AI coding agent such as Claude Code, Codex, or OpenCode needs to operate an Android phone through OpenGUI.

The agent should not drive the phone with raw adb shell input commands. The supported path is:

text
Claude Code / Codex / OpenCode
  -> server CLI or REST API
  -> OpenGUI backend task/execution services
  -> standby dispatch
  -> Android client
  -> execution socket action loop

Trigger Guidance

Start this skill when the user asks for any of these:

  • "Use OpenGUI to control my phone"
  • "让 Codex 操控手机"
  • "Use OpenCode to control my phone through OpenGUI"
  • "Run this task on the Android device"
  • "Use the OpenGUI CLI"
  • "List OpenGUI devices"
  • "Check / pause / resume / cancel an OpenGUI execution"
  • "让 Claude Code 通过 OpenGUI 跑手机任务"

If the user asks to install or bootstrap OpenGUI from scratch, use open-gui-bootstrap first. After backend and Android client are running, return to this skill for task execution.

Core Rules

  • First obtain or locate a runnable OpenGUI checkout. The CLI cannot work without the repository.
  • Use the repository CLI first: cd server && pnpm opengui -- ....
  • Use --json whenever the result will be parsed by the coding agent.
  • Do not ask the user to run terminal commands that the agent can run.
  • Ask the user only for physical phone actions, Android permissions, or missing secrets.
  • Do not change Android socket event names or payloads.
  • Do not use IM commands for this workflow.
  • Do not bypass OpenGUI with coordinate-only adb shell input scripts.
  • Treat devices as standby presence only; execution can still fail because of model config, Android permissions, app state, or device lifecycle.

Repository Source

OpenGUI's runnable source checkout is:

text
https://github.com/Core-Mate/OpenGUI

The checkout must contain both:

  • server/package.json
  • client/start.sh

If those paths are missing, the current directory is not the runnable OpenGUI checkout.

Local Or Remote Workspace

Before using this skill, decide where OpenGUI should run.

Use a local workspace when:

  • the Android phone is connected to the same machine by USB
  • adb reverse tcp:7777 tcp:7777 should be used
  • the agent has terminal access to the developer machine

Use a remote workspace only when:

  • the user explicitly asks to run OpenGUI on a remote host
  • the remote host can reach the Android device or a device bridge
  • the backend URL used by the Android client is reachable from the phone

Do not silently choose a remote host for phone control. USB debugging, adb reverse, Android build/install, and phone-side permissions are usually local-machine operations.

Checkout Acquisition

If the current directory already contains the runnable checkout, use it.

If the current directory is a wrapper directory, search one level down for the runnable checkout before cloning:

bash
find . -maxdepth 3 -type f -path '*/server/package.json' -print
find . -maxdepth 3 -type f -path '*/client/start.sh' -print

If no runnable checkout exists and the user wants the agent to set it up locally, clone the public repository:

bash
git clone https://github.com/Core-Mate/OpenGUI.git
cd OpenGUI

If the destination already exists, do not overwrite it. Enter the existing directory, inspect git status, and pull only when the user asked for the latest code or when the checkout is clean enough to update safely.

If the user wants a remote setup, SSH to the remote host first, then perform the same checkout detection or clone on that host. Keep the backend URL and Android connectivity explicit; a backend running on a remote host will not be reachable through local adb reverse unless the user has provided a bridge.

Preconditions

Before sending a task, verify these conditions:

  • backend is reachable at http://localhost:7777 unless the user gave another base URL
  • Android client is installed and open
  • adb reverse tcp:7777 tcp:7777 has been applied for a USB-connected phone
  • phone-side USB debugging is approved
  • Accessibility Service is enabled
  • overlay permission is enabled when needed
  • at least one standby device is online

If the backend or client is not running, use the repository scripts:

bash
cd server
./start.sh
bash
cd client
./start.sh

CLI Reference

Run commands from the server/ directory.

List online standby devices:

bash
pnpm opengui -- devices --json

Create and run a new task:

bash
pnpm opengui -- do "观察当前手机屏幕,简要描述你看到了什么,然后结束" --json

Run a task on a specific device:

bash
pnpm opengui -- do "打开设置,检查当前网络状态" --device <deviceId> --json

Run an existing task:

bash
pnpm opengui -- run <taskId> --json

Check execution status:

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

Pause, resume, or cancel:

bash
pnpm opengui -- pause <executionId> --json
pnpm opengui -- resume <executionId> "继续执行,但不要打开新的 App" --json
pnpm opengui -- cancel <executionId> --json

Use a non-default backend:

bash
pnpm opengui -- devices --base-url http://localhost:7777 --json

Base URL priority:

text
--base-url > OPENGUI_BASE_URL > http://localhost:7777

Standard Workflow

1. Obtain the runnable checkout

Find or clone https://github.com/Core-Mate/OpenGUI.

Then work from the repository root that contains both:

  • server/package.json
  • client/start.sh

If the current directory is a wrapper repo, find the nested runnable checkout before running commands. If no runnable checkout exists, clone it or ask for the intended repository location.

2. Verify backend

Check the backend before task dispatch:

bash
curl -fsS http://localhost:7777/docs >/dev/null

If this fails, start the backend:

bash
cd server
./start.sh

If start.sh creates .env and exits, ask only for the missing model keys required for execution, then run it again.

3. Verify Android client

Prefer the repo script:

bash
cd client
./start.sh

If a device is already installed and connected, still make sure reverse proxy is set:

bash
adb reverse tcp:7777 tcp:7777

Only interrupt the user for phone-side prompts:

  • approve USB debugging
  • enable Accessibility Service
  • enable overlay permission
  • keep the OpenGUI app open

4. List devices

Use JSON output:

bash
cd server
pnpm opengui -- devices --json

If no devices are returned, do not dispatch a task. Ask the user to open the Android app and complete the required permissions, then retry.

If multiple devices are returned, choose the intended one by deviceId. If the user did not specify a device and the task is low-risk, use the first online device.

5. Dispatch the task

For a new natural-language task:

bash
pnpm opengui -- do "<task description>" --device <deviceId> --json

For an existing task:

bash
pnpm opengui -- run <taskId> --device <deviceId> --json

Capture executionId from the response.

Before continuing, make sure the user knows that the active execution can be stopped with:

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

6. Poll status

Poll until the execution reaches a terminal state:

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

Terminal outcomes usually include success, cancellation, or failure states in the backend execution result. If the status stays running for a long time, inspect backend logs before assuming the phone is stuck.

7. Control the execution when needed

Cancel when the user asks to stop or the task is clearly wrong:

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

Pause when human feedback is needed:

bash
pnpm opengui -- pause <executionId> --json

Resume with concise feedback:

bash
pnpm opengui -- resume <executionId> "<feedback>" --json

Feedback should be specific to the current phone state, for example:

  • "继续搜索,但不要点击广告结果"
  • "回到上一页,然后重新打开搜索框"
  • "任务已经完成,可以结束"

Failure Handling

Backend is unreachable

Symptom:

text
fetch failed

Action:

  • check whether backend is running
  • start it with cd server && ./start.sh
  • if another port is used, pass --base-url

No online device

Symptom:

text
No online device. Start the Android app on the work phone first.

Action:

  • ask the user to open the OpenGUI Android app
  • verify USB debugging approval
  • run adb reverse tcp:7777 tcp:7777
  • verify Accessibility Service and overlay permission
  • retry pnpm opengui -- devices --json

Device ID is not online

Symptom:

text
Device "<deviceId>" is not online

Action:

  • list devices again
  • use a currently online deviceId
  • if the expected phone disappeared, ask the user to reopen the app

Execution starts but does not progress

Action:

  • check backend logs
  • confirm model keys and base URLs are configured
  • confirm the phone screen is unlocked
  • confirm Accessibility Service is still enabled
  • cancel only when the task is clearly unrecoverable or the user asks to stop

Execution succeeds but summary is weak

Action:

  • check execution logs before rerunning the task
  • if logs show that the VLM observed the screen, treat this as a summarization or persistence issue, not a transport failure

REST API Reference

The CLI wraps these local backend endpoints:

text
GET  /api/remote-control/devices
POST /api/remote-control/tasks/do
POST /api/remote-control/tasks/run
GET  /api/remote-control/executions/:id
PUT  /api/remote-control/executions/:id/cancel
PUT  /api/remote-control/executions/:id/pause
PUT  /api/remote-control/executions/:id/resume

Prefer the CLI unless the user explicitly asks for direct REST usage.

Completion Criteria

Before saying the phone was controlled successfully, provide evidence:

  • selected deviceId
  • created or reused taskId
  • executionId
  • final execution status/result
  • any important backend or device-side limitation observed

If the task could not be run, state the concrete blocker and the next required phone-side or config action.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Open Gui Remote Control faz?

Control an Android phone through OpenGUI from an AI coding agent such as Claude Code, Codex, or OpenCode. Use when an agent should list online devices, run a natural-language mobile task, check execution status, pause, resume, or cancel through the local OpenGUI backend and CLI.

Por que usar Open Gui Remote Control no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Open Gui Remote Control é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Open Gui Remote Control no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/Core-Mate/OpenGUI/tree/main/skills/open-gui-remote-control. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Open Gui Remote Control?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Open Gui Remote Control?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Open Gui Remote Control com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Open Gui Remote Control é gratuita?

A habilidade é publicada no GitHub por Core-Mate. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇