AI coding sessions,
from your phone.
DriftCode is a self-hostable mobile client for opencode. Connect your own server, browse your GitHub repos, and run full agentic coding sessions — anywhere.
iOS coming soon · Open source · No subscription
Add a loading skeleton to the dashboard
I'll add a loading skeleton component to your dashboard.
components/skeleton.tsx
Make it match the dark theme
Agentic chat
Full opencode sessions with streaming, tool calls, and file edits
Repo browser
Browse GitHub repos, clone to your server, and open sessions in one tap
Your infra
Your server, your data. No shared backend, no subscriptions
How it works
Up and running in minutes
Spin up an opencode server
On a VPS, your laptop, or behind a Cloudflare Tunnel
Connect DriftCode
Enter your server URL and password — done in under a minute
Link GitHub (optional)
Browse your repos, clone them to the server, pick a session
Start coding
Full agentic AI sessions from your phone
Use the models you already pay for
opencode supports 75+ providers. If you already have GitHub Copilot, ChatGPT Plus, or GitLab Duo — DriftCode costs you nothing extra beyond a ~$4/mo VPS.
Self-hosting
Own your setup
Three ways to host opencode. Pick the one that fits your setup.
Local Network
Run opencode on your laptop or home server and connect over Wi-Fi.
Install opencode
Install the opencode CLI globally via npm.
npm install -g opencode-aiStart the server
Bind opencode to all network interfaces so your phone can reach it.
opencode serve --hostname 0.0.0.0 --port 4096Keep this terminal open — the server runs in the foreground.
Find your local IP address
You need your machine's local IP to connect from your phone.
# macOS / Linux
ifconfig | grep "inet " | grep -v 127.0.0.1
# Windows
ipconfig | findstr "IPv4"Your IP will look like 192.168.1.x or 10.0.0.x.
Connect DriftCode
Open DriftCode on your phone. Tap "Connect server", enter your server URL, and tap Connect.
Server URL format: http://192.168.1.x:4096 (replace with your IP from step 3)
DriftCode is open source. Star it, fork it, contribute.
MIT License · Not affiliated with the opencode team