remox-bridge
v0.4.0
Published
Remote bridge for OpenCode
Readme
Remox Bridge
Control OpenCode from your iPhone.
Remox is a local-first open-source bridge that keeps the OpenCode runtime on your Mac and lets your phone connect through a paired secure session.
Install
npm install -g remox_bridgeOr run from source:
npm install
npm run dev -- upQuick Start
remox upPrints a QR. Scan it with the Remox mobile app to pair.
After pairing:
- Your phone sends commands through the bridge to OpenCode
git/status,git/commit,git/pushand other git operations run locally on your Mac- Responses stream back to your phone in real-time
- The bridge keeps running so the phone can reconnect automatically
Commands
remox up # Start bridge + print pairing QREnvironment Variables
| Variable | Default | Description |
|----------|---------|-------------|
| REMOX_PORT | 8080 | WebSocket bridge port |
| REM OX_HOST | localhost | Bridge host |
Architecture
┌──────────────┐ Paired session ┌───────────────┐ stdin/stdout ┌─────────────┐
│ Remox iOS │ ◄────────────────────► │ remox (Mac) │ ◄──────────────────────► │ opencode │
│ app │ WebSocket bridge │ bridge │ JSON-RPC │ CLI │
└──────────────┘ └───────────────┘ └─────────────┘The bridge:
- Spawns
opencode run [command]for each execute request - Handles git operations directly via the
gitCLI - Persists session state locally
- Streams responses over WebSocket to the phone
Git Integration
| Command | Description |
|---------|-------------|
| git/status | Branch, tracking, dirty state, file list |
| git/commit | Commit staged changes |
| git/push | Push to remote |
| git/pull | Pull from remote |
| git/branches | List all branches |
| git/checkout | Switch branches |
| git/createBranch | Create and switch to new branch |
| git/log | Recent commit history |
| git/stash | Stash working changes |
| git/stashPop | Pop latest stash |
Security
End-to-end encrypted pairing between phone and bridge. The relay (VPS) sees only encrypted blobs — prompts, tool calls, responses, and git output are never exposed in plaintext.
Self-Hosting Relay
For remote access from anywhere, deploy a relay server on a VPS:
# On your VPS
git clone <remox-relay-repo> && cd relay
npm install
node src/index.jsPoint the bridge at your relay:
REMOX_RELAY="wss://your-relay.example/relay" remox upThe relay tunnels encrypted WebSocket traffic between phone and bridge without decrypting payloads.
License
ISC
