Run OpenCode on iPad over SSH
You can use OpenCode from an iPad or iPhone with Kodo Editor. Install it on a computer you control, connect from Kodo over SSH and use tmux so you can reattach the terminal session.
How to get started
- On a supported computer, install OpenCode using its official instructions. Complete the CLI’s sign-in or provider setup on that host. [source: OpenCode]
- Make the computer reachable from your iPad. Use the local network or the private network you already use for SSH.
- Open the SSH connection in Kodo, change into the project directory on the host and start a named tmux session.
- Choose a provider and model on the host first, then test the interaction in the same shell environment you will open from iPad.
- After a disconnect, connect to the same host and reattach the tmux session. Check the changed files and run your project’s tests there.
cd /path/to/your-project
tmux new -As mobile-dev
opencodeLimits to know
The CLI, files and shell run on your host. Kodo is the SSH client. Keep the host available and check any network, billing and authentication requirements with the agent provider.
Frequently asked questions
Does OpenCode run inside Kodo on iPad?
This workflow runs it on your remote computer. Use Kodo’s local AI workflow if you need offline inference. [source: OpenCode]
Do I need a hosted workspace subscription?
You can use a server you already manage. The CLI’s provider may have separate account or billing terms. [source: OpenCode]
Can I reconnect after losing Wi-Fi?
Yes, if the host and tmux session are still active. Reconnect over SSH and attach by name. [source: tmux]
Can I use an iPhone?
Yes. Use the same host and tmux session. For a long review, a larger screen or a physical keyboard may be more comfortable. [source: App Store]