2025-12-14 01:54:58 +00:00
---
2026-03-02 10:53:01 +05:30
summary: "Android app (node): connection runbook + Connect/Chat/Voice/Canvas command surface"
2025-12-14 01:54:58 +00:00
read_when:
- Pairing or reconnecting the Android node
2026-01-19 08:54:21 +00:00
- Debugging Android gateway discovery or auth
2025-12-14 01:54:58 +00:00
- Verifying chat history parity across clients
2026-01-31 16:04:03 -05:00
title: "Android App"
2025-12-14 01:54:58 +00:00
---
2026-01-05 20:59:54 +01:00
# Android App (Node)
2026-01-07 21:37:05 +01:00
## Support snapshot
2026-01-31 21:13:13 +09:00
2026-01-07 21:37:05 +01:00
- Role: companion node app (Android does not host the Gateway).
- Gateway required: yes (run it on macOS, Linux, or Windows via WSL2).
2026-03-02 10:53:01 +05:30
- Install: [Getting Started ](/start/getting-started ) + [Pairing ](/channels/pairing ).
2026-01-07 21:37:05 +01:00
- Gateway: [Runbook ](/gateway ) + [Configuration ](/gateway/configuration ).
2026-01-19 08:54:21 +00:00
- Protocols: [Gateway protocol ](/gateway/protocol ) (nodes + control plane).
2026-01-07 21:37:05 +01:00
## System control
2026-01-31 21:13:13 +09:00
2026-01-07 21:37:05 +01:00
System control (launchd/systemd) lives on the Gateway host. See [Gateway ](/gateway ).
2026-01-05 20:59:54 +01:00
## Connection Runbook
2025-12-14 01:54:58 +00:00
2026-01-19 08:54:21 +00:00
Android node app ⇄ (mDNS/NSD + WebSocket) ⇄ **Gateway **
2025-12-14 01:54:58 +00:00
2026-03-02 10:53:01 +05:30
Android connects directly to the Gateway WebSocket (default `ws://<host>:18789` ) and uses device pairing (`role: node` ).
2025-12-14 01:54:58 +00:00
2026-01-05 20:59:54 +01:00
### Prerequisites
2025-12-14 01:54:58 +00:00
- You can run the Gateway on the “master” machine.
2026-01-19 08:54:21 +00:00
- Android device/emulator can reach the gateway WebSocket:
2025-12-17 15:29:19 +01:00
- Same LAN with mDNS/NSD, **or **
- Same Tailscale tailnet using Wide-Area Bonjour / unicast DNS-SD (see below), **or **
2026-01-19 08:54:21 +00:00
- Manual gateway host/port (fallback)
2026-01-30 03:15:10 +01:00
- You can run the CLI (`openclaw` ) on the gateway machine (or via SSH).
2025-12-14 01:54:58 +00:00
2026-01-19 08:54:21 +00:00
### 1) Start the Gateway
2025-12-14 01:54:58 +00:00
``` bash
2026-01-30 03:15:10 +01:00
openclaw gateway --port 18789 --verbose
2025-12-14 01:54:58 +00:00
```
Confirm in logs you see something like:
2026-01-31 21:13:13 +09:00
2026-01-19 08:54:21 +00:00
- `listening on ws://0.0.0.0:18789`
2025-12-14 01:54:58 +00:00
2026-01-19 08:54:21 +00:00
For tailnet-only setups (recommended for Vienna ⇄ London), bind the gateway to the tailnet IP:
2025-12-17 15:29:19 +01:00
2026-01-30 03:15:10 +01:00
- Set `gateway.bind: "tailnet"` in `~/.openclaw/openclaw.json` on the gateway host.
2025-12-17 15:29:19 +01:00
- Restart the Gateway / macOS menubar app.
2026-01-05 20:59:54 +01:00
### 2) Verify discovery (optional)
2025-12-14 01:54:58 +00:00
From the gateway machine:
``` bash
2026-01-30 03:15:10 +01:00
dns-sd -B _openclaw-gw._tcp local.
2025-12-14 01:54:58 +00:00
```
2026-01-10 14:51:21 -06:00
More debugging notes: [Bonjour ](/gateway/bonjour ).
2025-12-14 01:54:58 +00:00
2026-01-05 20:59:54 +01:00
#### Tailnet (Vienna ⇄ London) discovery via unicast DNS-SD
2025-12-17 15:29:19 +01:00
Android NSD/mDNS discovery won’ t cross networks. If your Android node and the gateway are on different networks but connected via Tailscale, use Wide-Area Bonjour / unicast DNS-SD instead:
2026-01-31 21:13:13 +09:00
1. Set up a DNS-SD zone (example `openclaw.internal.` ) on the gateway host and publish `_openclaw-gw._tcp` records.
2. Configure Tailscale split DNS for your chosen domain pointing at that DNS server.
2025-12-17 15:29:19 +01:00
2026-01-10 14:51:21 -06:00
Details and example CoreDNS config: [Bonjour ](/gateway/bonjour ).
2025-12-17 15:29:19 +01:00
2026-01-05 20:59:54 +01:00
### 3) Connect from Android
2025-12-14 01:54:58 +00:00
In the Android app:
2026-01-19 08:54:21 +00:00
- The app keeps its gateway connection alive via a **foreground service ** (persistent notification).
2026-03-02 10:53:01 +05:30
- Open the **Connect ** tab.
- Use **Setup Code ** or **Manual ** mode.
- If discovery is blocked, use manual host/port (and TLS/token/password when required) in **Advanced controls ** .
2025-12-14 01:54:58 +00:00
After the first successful pairing, Android auto-reconnects on launch:
2026-01-31 21:13:13 +09:00
2025-12-14 01:54:58 +00:00
- Manual endpoint (if enabled), otherwise
2026-01-19 08:54:21 +00:00
- The last discovered gateway (best-effort).
2025-12-14 01:54:58 +00:00
2026-01-05 20:59:54 +01:00
### 4) Approve pairing (CLI)
2025-12-14 01:54:58 +00:00
On the gateway machine:
``` bash
2026-03-02 10:53:01 +05:30
openclaw devices list
openclaw devices approve <requestId>
openclaw devices reject <requestId>
2025-12-14 01:54:58 +00:00
```
2026-03-02 10:53:01 +05:30
Pairing details: [Pairing ](/channels/pairing ).
2025-12-14 01:54:58 +00:00
2026-01-05 20:59:54 +01:00
### 5) Verify the node is connected
2025-12-14 01:54:58 +00:00
2025-12-18 00:37:40 +00:00
- Via nodes status:
2026-02-06 10:08:59 -05:00
2025-12-14 01:54:58 +00:00
```bash
2026-01-30 03:15:10 +01:00
openclaw nodes status
2025-12-14 01:54:58 +00:00
` ``
2026-02-06 10:08:59 -05:00
2025-12-14 01:54:58 +00:00
- Via Gateway:
2026-02-06 10:08:59 -05:00
2025-12-14 01:54:58 +00:00
` ``bash
2026-01-30 03:15:10 +01:00
openclaw gateway call node.list --params "{}"
2025-12-14 01:54:58 +00:00
` ``
2026-01-05 20:59:54 +01:00
### 6) Chat + history
2025-12-14 01:54:58 +00:00
2026-03-02 10:53:01 +05:30
The Android Chat tab supports session selection (default ` main`, plus other existing sessions):
2025-12-14 01:54:58 +00:00
- History: ` chat.history`
- Send: ` chat.send`
- Push updates (best-effort): ` chat.subscribe` → ` event:"chat"`
2026-03-02 10:53:01 +05:30
### 7) Canvas + screen + camera
2025-12-14 01:54:58 +00:00
2026-01-05 20:59:54 +01:00
#### Gateway Canvas Host (recommended for web content)
2025-12-18 11:39:30 +01:00
2025-12-18 13:18:24 +01:00
If you want the node to show real HTML/CSS/JS that the agent can edit on disk, point the node at the Gateway canvas host.
2025-12-18 11:39:30 +01:00
2026-02-14 14:55:10 +01:00
Note: nodes load canvas from the Gateway HTTP server (same port as ` gateway.port`, default ` 18789`).
2025-12-20 17:13:36 +01:00
2026-01-31 21:13:13 +09:00
1. Create ` ~/.openclaw/workspace/canvas/index.html` on the gateway host.
2025-12-18 11:39:30 +01:00
2026-01-31 21:13:13 +09:00
2. Navigate the node to it (LAN):
2025-12-18 11:39:30 +01:00
` ``bash
2026-02-14 14:55:10 +01:00
openclaw nodes invoke --node "<Android Node>" --command canvas.navigate --params '{"url":"http://<gateway-hostname>.local:18789/__openclaw__/canvas/"}'
2025-12-18 11:39:30 +01:00
` ``
2026-02-14 14:55:10 +01:00
Tailnet (optional): if both devices are on Tailscale, use a MagicDNS name or tailnet IP instead of ` .local`, e.g. ` http://<gateway-magicdns>:18789/__openclaw__/canvas/`.
2025-12-18 13:18:24 +01:00
2025-12-18 11:39:30 +01:00
This server injects a live-reload client into HTML and reloads on file changes.
2026-02-14 14:55:10 +01:00
The A2UI host lives at ` http://<gateway-host>:18789/__openclaw__/a2ui/`.
2025-12-18 11:39:30 +01:00
2025-12-14 01:54:58 +00:00
Canvas commands (foreground only):
2026-01-31 21:13:13 +09:00
2025-12-20 12:17:39 +00:00
- ` canvas.eval`, ` canvas.snapshot`, ` canvas.navigate` (use ` {"url":""}` or ` {"url":"/"}` to return to the default scaffold). ` canvas.snapshot` returns ` { format, base64 }` (default ` format="jpeg"`).
2025-12-18 10:44:50 +01:00
- A2UI: ` canvas.a2ui.push`, ` canvas.a2ui.reset` (` canvas.a2ui.pushJSONL` legacy alias)
2025-12-14 01:54:58 +00:00
Camera commands (foreground only; permission-gated):
2026-01-31 21:13:13 +09:00
2025-12-14 01:54:58 +00:00
- ` camera.snap` (jpg)
- ` camera.clip` (mp4)
2026-01-10 14:51:21 -06:00
See [Camera node](/nodes/camera) for parameters and CLI helpers.
2026-03-02 10:53:01 +05:30
Screen commands:
- ` screen.record` (mp4; foreground only)
### 8) Voice + expanded Android command surface
- Voice: Android uses a single mic on/off flow in the Voice tab with transcript capture and TTS playback (ElevenLabs when configured, system TTS fallback).
- Voice wake/talk-mode toggles are currently removed from Android UX/runtime.
- Additional Android command families (availability depends on device + permissions):
- ` device.status`, ` device.info`, ` device.permissions`, ` device.health`
- ` notifications.list`, ` notifications.actions`
- ` photos.latest`
- ` contacts.search`, ` contacts.add`
- ` calendar.events`, ` calendar.add`
- ` motion.activity`, ` motion.pedometer`
- ` app.update`