LM Studio LM Link Explained: Connect Local AI Models Across Multiple Computers
LM Link is a networking feature in LM Studio that lets you connect multiple computers—such as a laptop, a dedicated GPU workstation, a home server, or a cloud VM—and use models loaded on remote devices as if they were running locally.
Built in collaboration with Tailscale using custom end-to-end encrypted mesh VPN primitives in userspace, LM Link routes model execution to whichever linked machine has the hardware while keeping your chats private and exposing your local API at localhost:1234 without opening public inbound ports.
How LM Link Works Under the Hood
- Private encrypted mesh without port forwarding: Devices communicate over a custom Tailscale-powered mesh VPN in userspace. No public ports need to be opened on your router or firewall, and LM Link is designed to coexist alongside existing Tailscale setups without altering global network settings.
- Local API surface, remote compute: You can load and run models on a high-VRAM desktop, GPU rig, or server while interacting from a lighter laptop or mobile client (such as Locally on iPhone). Tools expecting a local server at
localhost:1234continue to work seamlessly. - Privacy boundary: Chats remain local to your devices; LM Studio's backend only handles device list coordination needed for discovery and connection establishment.
Step 1: Prerequisites and Account Setup
- Install an up-to-date version of LM Studio (or
llmster/ thelmsCLI) on every computer you plan to link. - Sign in to your LM Studio account in the app or via the CLI before enabling your link.
- Ensure your machines stay awake during long inference runs—on recent builds such as Bionic 1.2.3, you can also enable the optional keep-awake setting for LM Link devices so hosts do not sleep mid-session.
Step 2: Provision and Enable LM Link
You can configure LM Link either from the LM Studio graphical interface or directly from the terminal using the lms link command group.
Option A: Using the LM Studio App
- Open LM Studio on your primary/host machine and navigate to the LM Link / Remote settings section.
- Provision your link when prompted—a custom link is created automatically the first time you initialize the feature.
- Repeat on your second computer (for example, your laptop and a desktop GPU rig) using the same account so both devices join the link.
Option B: Using the lms CLI
If you manage a headless machine, workstation, or server from the terminal, authenticate and enable LM Link with the CLI:
# 1. Sign in to your LM Studio account if not already logged in
lms login
# 2. Enable LM Link on the current device
lms link enable
# 3. Check connection status, peers, and loaded models
lms link status
# Optional: inspect status as JSON for scripts or automation
lms link status --json
Step 3: Configure Device Names and Preferred Routing
When you have multiple linked machines—say a MacBook for travel and a desktop rig with heavy VRAM—explicitly naming devices and setting a preferred device prevents ambiguous routing when multiple machines have models available.
# Give the current machine a clear name
lms link set-device-name "workstation-gpu"
# Set a preferred device for model resolution
lms link set-preferred-device "workstation-gpu"
In general, model loads route to the device where the model is present or to your configured preferred device when set, while your local machine exposes the unified interface.
Step 4: Connect Coding Agents and REST API Clients
Because LM Link exposes a local server endpoint at localhost:1234, existing OpenAI-compatible or Anthropic-compatible clients that point to your local LM Studio server can use remote models with minimal configuration.
# Start the LM Studio local server on port 1234
lms server start --port 1234
# Example: point Claude Code to your local LM Studio endpoint using a model on your link
export ANTHROPIC_BASE_URL=http://localhost:1234
export ANTHROPIC_AUTH_TOKEN=lmstudio
claude --model qwen3-8b
You can use the same http://localhost:1234 base URL pattern with other CLI coding agents (such as Codex), scripts, or custom REST API integrations.
Troubleshooting Common LM Link Issues
- Device appears offline or slow to reconnect after sleep: Verify both machines are signed into the same LM Studio account, check
lms link status, and upgrade to a recent release (such as Bionic 1.2.3) which improves reconnection after sleep and fixes WSL2 / small-MTU packet stalls. - Headless or non-interactive Windows startup fails: Make sure you are on an updated build (Bionic 1.2.2+) that resolved non-interactive Windows LM Link startup issues, and verify the daemon is running via
lms daemon status. - Turn off LM Link temporarily: Run
lms link disableon a device whenever you want to disconnect it from the link.
Summary
LM Link turns separate computers into a private, end-to-end encrypted inference network without manual port forwarding. Once your link is active and your preferred device is set, your laptop or terminal agents can tap into remote GPU or unified-memory hardware as if it were sitting right on localhost:1234.
