In Termux, start the server:
opencode serve --hostname 127.0.0.1 --port 4096
It prints a server password on start. Or create a one-time link:
opencode pair
Paste either the password or the whole pairing link above. The link expires in 5 minutes.
The app talks straight to your phone. Nothing leaves your network unless you expose it yourself.