You have better things to do than tap through menus.
Say what you want in your own words. HOPA uses your apps for you: opens them, taps, reads and answers. Then it tells you what happened — and it asks before money moves.
▶ Watch the 62-second demo — HOPA saying hello, then the real Bilibili app and a real Weibo post, end to end.
Working prototype on HarmonyOS 7.0. Chat, browsing, app control through the PC bridge, the run pane and the payment gate are real. Next in line: local app control (Huawei's ACL), MCP tool calling and Chinese. What comes next →
|
|
|
|
- It has hands. Not a chat that describes taps — a runtime that taps, types, launches and reads, then checks the screen actually changed.
- Money always asks. A payment is a decision with the item, the total and the seller in plain words — never a remembered "yes", never after the fact.
| On the phone | On the web |
|---|---|
| “Send Alice ‘running 10 minutes late’ on WeChat.” “Check my messages on Feishu.” “Find a charger on Xianyu.” |
“What are the top stories on Zhihu?” “What’s trending on Xiaohongshu?” “Summarize the top videos on Bilibili.” |
Site examples run in the browser HOPA opens for you. App examples need that app installed; HOPA names a missing app instead of guessing. It also remembers facts and skills you choose to keep.
“Order the cheapest one in my cart.”
HOPA shows the item, the total and the seller. You choose Deny or Allow. Nothing is paid without you, and a payment is never remembered as a yes. The approval is written in your language — “Confirm payment?” — never in raw action names.
HOPA started on the phone. It also runs on a HarmonyOS 2-in-1, and the two are one conversation: ask in your hand, open the laptop, and the same thread is there — with the same answer, the same steps and the same picture of what it did.
On the desk the answer gets a run pane beside it: THIS RUN with numbered
steps and durations, WHAT HOPA SAW — the frame it read at each step — earlier
runs in the same chat, and the cost when it was measured. A run can also choose
its machine — this phone or this laptop — so “open Settings” can act on either,
and the result still lands in the same conversation.
|
The two devices, one conversation ? 20 seconds: asked on the laptop, run on the phone, answered in the same chat - and the phone goes back to where it was. Click the picture to play it. |
What it keeps honest
|
| Mode | Reading | Where it runs |
|---|---|---|
| Everyday | 13.5 pt | rail/metrics where there is room |
| Easy | 15 pt | fewer controls; no rail |
| Power | 13 pt | metrics, schedules |
| Social | 13 pt | no rail, no metrics |
| Kid | 16 pt | no history, parent PIN to leave |
The presentation adapts to the screen; the rules do not. Kid blocks payments and public posts on the phone, and gates the desk behind a parent PIN.
flowchart TB
subgraph Phone["Phone · HarmonyOS"]
direction LR
P1[Chat]
P2[Activity]
P3[Capabilities]
end
subgraph Desk["Laptop · HarmonyOS"]
direction LR
D1[Sidebar]
D2[Chat + run pane]
D3[Activity · Plans]
end
subgraph PC["A PC"]
B["hopa-bridge bridge
/chats · /images · /screenshot"]
end
Phone -->|hdc reverse tunnel · or cloud relay| B
Desk -->|same tunnel| B
B -->|hdc| T["phone / this laptop
taps · types · reads · launches"]
The bridge is the only part that touches a device, and the only part that keeps state. It lives on a PC — usually the laptop, but it is a separate process, not a feature of one app.
- One store.
GET/POST /chatsmerges by content (role:at:text), with tombstones for deletes, so either app can start or finish a thread. - One image store. Frames are content-addressed on the PC (
/images), so a screenshot taken on the phone is shown on the desk. A path inside one device's sandbox would mean nothing on the other. - One bridge. A pooled listener serves every device, routes by
X-Hopa-Roleor/d/<serial>/…, and authorises each caller once. - No cloud account. For a phone away from the cable,
hopa-bridge relayon a public host plushopa-bridge cloud-linkon the PC keeps the same store and tokens where they belong.
1. Build the app.
.\tools\scripts\build.ps1
.\tools\scripts\deploy.ps1deploy.ps1 installs the right HAP per device, restores the reverse tunnel and
starts the bridge. There are two HAPs, one per device, from one codebase.
Installing on a retail phone is its own guide:
Install on a phone.
2. Connect a model. Open Capabilities → Settings, pick a provider (OpenAI-compatible, Anthropic, Gemini or DeepSeek), enter endpoint, model and key. A loaded key stays loaded; leave the field blank to keep it.
3. Give it hands. Enable the accessibility service where Huawei allows it.
On the current test phones the ACL is pending, so app control goes through the
PC bridge: start it with tools\scripts\bridges.ps1, then connect in
Settings → Bridge — or tap Use the HOPA cloud relay to fill the relay
address in one tap.
4. Ask.
“What’s trending on Bilibili today?” · “Open Settings and show me Wi-Fi.” · “Draft a one-line message to my team.”
- HOPA sees the screen you see, while the app is open.
- Unknown apps are named, not guessed.
- Login, CAPTCHA and verification codes stay with you. Passwords and OTPs are never typed.
- Some apps block automation; HOPA stops and hands over.
- The bridge is for a trusted network, and pairing one device means it may act on the others in the pool.
- The mascot shows thinking, waiting, success and failure — and celebrates only when an action actually completed.
| Works | Partial | Next |
|---|---|---|
| Chat, memory, skills, plans, batch, runs, export | Speech (phone) | MCP tool calling |
| App control through the PC bridge | On-device app control (Huawei ACL) | Chinese copy on both apps |
| Shared store, image store, relay, run-on-any-device choice | Desk mode depth (Easy/Kid are type-and-chrome today) |
Taskbar jump actions |
| Run pane on the desk with steps, evidence, cost | Compact run view on the phone | Window repaint after long idle |
The dated, per-capability detail is in docs/design/product/coverage.md; the remaining work with effort is in docs/project/status.md.
Build it, test it, or look under the hood
Build and install
.\tools\scripts\build.ps1 # both HAPs
.\tools\scripts\deploy.ps1 # install per device, tunnels, bridge
.\tools\scripts\bridges.ps1 # the bridge alone (start/stop/status)Test
.\tools\scripts\run-tests.ps1The bridge suite alone: pytest services/bridge — 121 tests today,
including the pooled bridge, the shared store, the image store and the relay.
CI also runs ruff, the structure and link checks, the generated-catalogue check
and a secret/license scan.
What is where
apps/android/— the active client: Compose shell, Android capabilities and storage.apps/windows/— the next client (planned).apps/harmony/app/— the shared ArkTS kit: runtime, chat formatting, bridge client, conversation contracts.apps/harmony/core/— the ArkTS core: loop, gate, executor, run records.apps/harmony/phone/— the phone app (moduleentry).apps/harmony/laptop/— the laptop app (modulelaptop); frozen.core/contracts/— shared wire types, port interfaces, model types and approval data classes; no logic, no Android imports.core/- the Kotlin client engine shared by the Android and Windows clients:contracts(wire types and ports),codec(JSON helpers),catalog(the generated app catalogue and the router),observation(the screen model),records(run history),prompt,agent(the turn and the loop),providers(model adapters) andtransport(bridge and gateway).services/bridge/— the PC companion and bridge: device control, store, images, relay.services/brain/— the Kotlin reference brain for routing and knowledge.services/evals/— the reference loop and HOPA-Bench.build-logic/— the Gradle convention plugins that the Android, Windows and backend builds share, since all three includecore/.docs/— setup, architecture, contracts and the status.
Links
- Setup and toolchain
- Build, sign and install
- PC bridge, tunnels and the cloud relay
- Architecture
- Safety model
- Status and remaining work
The apps are ArkTS only. Python and Kotlin are development and PC-side tools; they are not packaged into the HAP.
HOPA runs both the phone shell and the laptop shell through one Render relay.
There is one /tunnel endpoint; the phone and laptop use separate tunnel
sessions (default and laptop). The PC runs one bridge pool on 8765 and
one hdc-tunnel per session (5556 for the phone, 5557 for the laptop); the pool
routes requests by X-Hopa-Role (phone or 2in1).
flowchart LR
subgraph Devices["Devices"]
Phone["Phone HOPA<br/>role: phone"]
Laptop["Laptop HOPA<br/>role: 2in1"]
PhoneHdcd["phone hdcd<br/>127.0.0.1:5555"]
LaptopHdcd["laptop hdcd<br/>127.0.0.1:5555"]
end
subgraph Cloud["One Render relay"]
Relay["hopa-relay.onrender.com<br/>/tunnel + bridge API"]
PhoneSession[("session: default")]
LaptopSession[("session: laptop")]
end
subgraph PC["PC"]
Link["cloud-link"]
Pool["bridge pool :8765<br/>routes by X-Hopa-Role"]
PhoneTunnel["hdc-tunnel :5556"]
LaptopTunnel["hdc-tunnel :5557"]
end
Phone -- "HTTPS bridge calls" --> Relay
Laptop -- "HTTPS bridge calls" --> Relay
Relay -- "long-poll" --> Link
Link --> Pool
Pool -- "phone" --> PhoneTunnel
Pool -- "2in1" --> LaptopTunnel
Phone -- "WSS tunnel" --> PhoneSession
PhoneTunnel -- "WSS host" --> PhoneSession
Phone -- "TCP 127.0.0.1:5555" --> PhoneHdcd
Laptop -- "WSS tunnel" --> LaptopSession
LaptopTunnel -- "WSS host" --> LaptopSession
Laptop -- "TCP 127.0.0.1:5555" --> LaptopHdcd
| Piece | Count | Note |
|---|---|---|
| Render relay | 1 | one service, one /tunnel endpoint |
| Tunnel sessions | 2 | default = phone, laptop = laptop |
| PC hdc tunnels | 2 | 127.0.0.1:5556 and 127.0.0.1:5557 |
| PC bridge pools | 1 | port 8765, routes by X-Hopa-Role |
| Conversation stores | 1 | the pool's /chats is shared |
The laptop's local 8767 bridge is a fallback, not a second relay. On a fresh
laptop, hdc tmode port 5555 opens the device-side hdcd TCP port (it reboots
the laptop once); after that the laptop app's tunnel can reach
127.0.0.1:5555 and the PC needs no USB.
.\tools\scripts\run-agent.ps1 starts the pool, cloud link and both hdc
tunnels. .\tools\scripts\run-laptop.ps1 launches the laptop in cloud mode
(HOPA_LAPTOP_CLOUD=1); -Local keeps the 8767 fallback.
Read CONTRIBUTING.md. Run the tests before a pull request. Do not weaken the payment gate: a change that makes payment skippable, or moves it after execution, will not be accepted. Report security issues privately through SECURITY.md.





