Open Source · MIT License

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

9:41
DriftCode

Add a loading skeleton to the dashboard

I'll add a loading skeleton component to your dashboard.

write_file

components/skeleton.tsx

Make it match the dark theme

Message...

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

01

Spin up an opencode server

On a VPS, your laptop, or behind a Cloudflare Tunnel

02

Connect DriftCode

Enter your server URL and password — done in under a minute

03

Link GitHub (optional)

Browse your repos, clone them to the server, pick a session

04

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.

GitHub Copilotexisting subscriptionChatGPT Plusexisting subscriptionGitLab Duoexisting subscriptionAnthropic ClaudeAPI keyOpenAIAPI keyDeepSeekAPI keyOpenRouterAPI keyOllamafree / local+ 67 more providers

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.

Best for: home use & local dev
1

Install opencode

Install the opencode CLI globally via npm.

bash
npm install -g opencode-ai
2

Start the server

Bind opencode to all network interfaces so your phone can reach it.

bash
opencode serve --hostname 0.0.0.0 --port 4096

Keep this terminal open — the server runs in the foreground.

3

Find your local IP address

You need your machine's local IP to connect from your phone.

bash
# 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.

4

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.

View on GitHub

MIT License · Not affiliated with the opencode team