Your Dev Environment Anywhere: Remote Access Opencode + Tailscale + WhisperCode

Ezequiel Depetris

- Apr 23, 2026
  • Opencode
  • Tailscale
  • Remote Work
  • Development
  • Tooling
Picture this: you're at a coffee shop, on vacation, or just away from your office. You pull out your laptop (or phone), and you have your exact development environment — Opencode running, your Rails server up, everything accessible as if you were sitting in front of your regular machine.
No expensive VPN. No complex setup. No costing you a single dollar.
This isn't magic — it's the combination of three free tools that, together, give you a completely free remote workflow.
Let's build it. 🚀


Why Opencode? (and Not Claude Code)
Opencode is an alternative to Claude Code (Anthropic's CLI). Both give you access to a language model for programming help, but there's a key difference:
Opencode is built for teams. (and it's open-source ❤️)
While Claude Code works primarily as a local tool, Opencode has a server mode that lets you connect from any device. This means you can have your development environment running on one machine (your main laptop), and access it from another laptop, or even from your phone.
In short: if you need to access your development environment from multiple devices, Opencode lets you do it without extra configuration.


Step 1: Start Opencode in Server Mode


Opencode's server mode lets you connect remotely. Here's what to run on your main machine (the laptop you leave at home or in the office):

export OPENCODE_SERVER_PASSWORD="your-secure-password"
opencode serve --hostname 0.0.0.0 --port 4096 --cors "*"
# Why this setup:
# OPENCODE_SERVER_PASSWORD: adds an extra security layer. You don't want just anyone running commands on your machine.
# --hostname 0.0.0.0: makes the server accessible from any network interface (not just localhost).
# --port 4096: the port you'll use to connect from other devices.
# --cors "*": allows connections from any origin.


⚠️ Security note: Delegating control of your machine to an AI model is serious. That's why we use the password — it's your extra layer of protection. Also consider limiting access by IP if you know which networks you'll connect from.


Opencode serve


Step 2: What Is Tailscale and Why Use It (vs Cloudflare Tunnel)


Tailscale is a private VPN that connects your devices securely, without needing to set up servers or worry about public exposure.
It works as a mesh network: each device you install gets a unique private IP (like 100.x.x.x), and you can reach any other device on the network using that IP.

Quick comparison with Cloudflare Tunnel:
  • Setup
    • Tailscale: Install app, log in, done
    • Claudflare: Create tunnel, generate credentials, configure
  • UI
    • Tailscale: Simple dashboard
    • Claudflare: More complex dashboard
  • Devices
    • Tailscale: Unlimited
    • Claudflare: Unlimited
  • Cost
    • Tailscale: Free (personal use)
    • Claudflare: Free
  • Philosophy
    • Tailscale: Direct private VPN
    • Claudflare: Proxy through Cloudflare

Tailscale is simpler for this use case: connect your laptop, and it's available for the rest of your devices.


How to Create an Account and Connect Your Laptop


  1. Create account: Go to tailscale.com (https://tailscale.com) and sign up (use your Google or GitHub email).
  2. Install Tailscale: On your laptop, download the client from tailscale.com/download (https://tailscale.com/download).
  3. Log in: Open the app and click "Log in." It'll redirect you to the browser to approve the device.
  4. Done. Your laptop now has a Tailscale IP (like 100.xx.xx.xx). You can see it in the Tailscale dashboard or the app.

Tailscale dashboard


From another device (another laptop outside your network):
  1. Install Tailscale on that device too.
  2. Log in with the same account.
  3. You're now connected to the same private network.

tailscale-mobile.png 158 KB


Now you can reach your main laptop using its Tailscale IP.

Step 3: Connect to Opencode from Another Device


Once you have Tailscale running on both laptops, the connection is straightforward:
You can go to your browser and go to http//100.XXX.XXX.XX:4096
Replace 100.XXX.XXX.XX with your main laptop's Tailscale IP.

Username: opencode
Password: your-secure-password

Now you type on your external laptop, but the commands run on your main laptop. All you need is:

– Your main laptop powered on (with Opencode serve running)
– Tailscale on both machines
– Your main machine's Tailscale IP
Total cost: $0.


Step 4: WhisperCode — Your Setup on Your Phone


WhisperCode is an app that connects you to an Opencode server from your iPhone. If you have Tailscale running on your main laptop, you can access everything from your phone.
What you can do from WhisperCode:

opencode mobile


  • Open the same development environment as on your laptop
  • Edit files
  • Chat with Opencode to help write code or explain errors
  • View your local server logs

Basically: your development environment in your pocket.
opencode mobile working
Note: WhisperCode requires a running Opencode server (the same setup we covered in Step 1).


Step 5: Your Development Server Accessible (Bonus)


The same applies to your Rails development server (or any other service):
bin/rails server -b 0.0.0.0 -p 3000

What -b 0.0.0.0 does: Binds the server to all network interfaces, not just 127.0.0.1. This makes it accessible from any device on your local network, including Tailscale.

Now you can:
  1. From your external laptop (or your phone via WhisperCode), open http://100.XX.XX.XX:3000 in the browser
  2. View your application as if you were in front of your main machine
  3. While writing code in WhisperCode, see changes live

For example: You're fixing a bug on your main laptop. You fix it in WhisperCode from your phone, refresh the page on your external laptop, and see the result.
All without leaving your couch.



Setup Summary


  • Opencode serve: AI server you connect to remotely
  • Tailscale: Free VPN that connects your devices
  • OPENCODE_SERVER_PASSWORD: Extra security layer
  • WhisperCode: Opencode on your iPhone
  • bin/rails server -b 0.0.0.0: Your Rails server accessible from any device


What you need:
Two laptops (or one laptop + a phone)
– Free Tailscale account
– WhisperCode app (on your phone)
– Your main laptop powered on

And that's it. You have your development environment accessible from anywhere.


---
Does this work for you? For me, this changed how I think about remote work — I don't need my machine with me to have my development environment. I just need it powered on and connected to the internet.
If you want to see more about how we use this at Plum, or have questions about the setup, reach out.