Instead of treating Claude Code as a clever autocomplete tool living on his own desktop, Abidi wired his Windows PC's Claude Code desktop and terminal apps to a dedicated spare machine on his home network. The result, as he describes it, transformed the assistant from a script-writing chatbot he had to babysit into a methodical junior sysadmin—one that inspects running services before touching anything, works within strict privilege boundaries, and tidies up its own messes afterward.
For Windows power users, developers, and home-lab tinkerers eyeing agentic AI tools, Abidi's setup offers a compelling blueprint—along with a few crucial security caveats that official Microsoft, Anthropic, and Docker documentation make clear you shouldn't overlook.
The Architecture: Windows at the Helm, Spare Laptop in the Hot Seat
According to Abidi's account in MakeUseOf, his workflow keeps his primary Windows PC clean and unencumbered. Both the Claude Code desktop client and terminal app run on his main Windows machine, while all actual deployment, container management, and troubleshooting happen across the LAN on a repurposed laptop.
There are three pillars to how that connection works:
- Static local IP over hostnames: Rather than relying on local DNS or mDNS hostnames—which can flake out at the worst possible moment—Abidi assigned a static local IP address to the server laptop and points Claude's SSH calls directly at it.
- Stateless, non-interactive commands: Every command Claude executes arrives as a single, non-interactive SSH call. No shell state persists from one step to the next—no lingering
cddirectory changes, no exported environment variables hanging around in memory. Each command has to stand on its own with full paths and explicit arguments, which Abidi notes makes the entire session far easier to audit later. - Native Windows OpenSSH tools: On a modern Windows desktop, you don't need to install third-party terminal suites to replicate this kind of remote workflow. Microsoft documents that OpenSSH client and server components are built into Windows 10 (build 1809 and later) and Windows 11—usually residing in
C:\Windows\System32\OpenSSHand toggleable under Settings > System > Optional features (or via PowerShell'sAdd-WindowsCapability). That built-in toolkit includesssh,scp,sftp,ssh-keygen, andssh-agentright out of the box.
Meanwhile, Anthropic's official Claude Code documentation notes that the Claude Desktop app's Code tab supports Windows (both x64 and ARM64) and explicitly includes running sessions locally, in the cloud, or over SSH. Better yet, because Anthropic's built-in sandboxed Bash tool relies on OS-level primitives tailored for macOS, Linux, and WSL2, pointing Claude at an isolated Linux box over SSH gives native Windows users physical separation without cramming experimental stacks onto their daily workstation.
A Quick Host-Key Reality Check
One networking detail worth clarifying: while a static local IP keeps your target address predictable, it does not verify that the machine answering on port 22 is actually your server. OpenSSH relies on host-key fingerprints stored in your client's known_hosts file—described in both Microsoft Learn's SSH tutorials and OpenBSD's ssh manual—to warn you if a server's identity unexpectedly changes, and Microsoft recommends key-based authentication over passwords for routine SSH and scp workflows.
Read-Only Recon and Mandatory Teardown
Anyone who has ever knocked offline a household media server or smart-home dashboard knows the sinking feeling of a hasty docker run stealing an occupied port. In Abidi's MakeUseOf report, the secret to keeping his shared home services intact wasn't magic—it was enforcing a "look before you leap" habit.
Before deploying a container or testing an app, Claude runs read-only discovery commands such as docker ps, docker inspect, and file reads on existing Docker Compose manifests to map out active containers and claimed ports. Because it surveys the machine first, Abidi says new test services land on unused ports rather than colliding with household infrastructure.
Just as valuable is the exit policy. Abidi prohibits Claude from rebooting the server, deleting user data, or modifying shared services without explicit permission, and instructs it to remove test artifacts once an experiment wraps up. That discipline prevents the classic home-lab graveyard of half-configured containers and mystery temp directories—though it's important to recognize that these habits come from explicit rules and prompting, not automatic technical locks enforced by SSH itself.
Why Blocking sudo Works—And Where That Boundary Breaks
Here is the cleverest part of Abidi's setup: because every remote step runs as a non-interactive SSH call, Claude cannot answer an interactive sudo password prompt. Rather than configuring passwordless sudo for convenience, Abidi left the lock bolted shut. Whenever a task genuinely requires root privileges—system package installs, removals, or reboots—Claude hands the exact command back to Abidi so he can read it, decide whether he approves, and paste it into his own terminal.
Surprisingly, that restriction rarely stalls progress. Abidi shares an example where his Home Assistant virtual machine suffered unexplained network dropouts; Claude used VBoxManage from the command line to inspect the VM's networking settings and resolve the issue without clicking through VirtualBox's GUI. For day-to-day testing without root, Claude leans on user-space tools:
- Isolated folders per Docker Compose stack
- User-level Nix package installations
- Self-contained AppImages
- Python virtual environments
The Docker Daemon Caveat Every Admin Should Know
Before you assume "no sudo equals total safety," there is a major Linux security nuance you need to understand. While blocking sudo stops an AI agent from casually running apt or rebooting your box, giving an account permission to control the standard Docker daemon is functionally equivalent to giving it root access.
Docker's official Linux post-installation and Engine security documentation states this bluntly: by default, the /var/run/docker.sock Unix socket requires root privileges or membership in the docker group, and the docker group grants root-level privileges to the user. Any user who can spin up arbitrary containers via the standard daemon can mount host directories or escalate privileges—unless you specifically deploy Docker in Rootless mode.
In other words, disabling sudo is an excellent human-in-the-loop speed bump against accidental administrative commands, and isolating experiments on a spare laptop dramatically shrinks your blast radius compared to running an agent on your main Windows PC. Just don't mistake it for a hardened security sandbox if the remote account can freely talk to a root-owned Docker socket.
Similarly, Claude Code offers built-in permission modes (Manual, acceptEdits, plan, auto, dontAsk, and bypassPermissions) and /permissions allow/deny rules. However, as practitioner guides on running Claude Code over SSH have pointed out, local command filters on tools like rm cannot reliably parse destructive commands tucked inside a quoted ssh command string. Server-side account permissions and tested backups remain your real safety net.
Localhost Binding, SSH Tunnels, and scp
Abidi's network hygiene carries over to how he previews unfinished apps and moves files:
- Bind to loopback, browse via SSH tunnel: When Claude launches a test web app or dashboard on the server laptop, it binds the service to
localhostrather than exposing it across the home network. When Abidi wants to test it from his Windows PC, he opens an SSH tunnel—using OpenSSH's documented-Llocal port-forwarding option—so an unhardened dashboard with default credentials never sits exposed to other household devices. - Use
scpinstead of Samba: Rather than configuring and securing a Windows-friendly Samba share on the Linux laptop, Claude transfers configs, scripts, and test payloads overscp, riding the same encrypted SSH channel.
Watch Out for Docker's Port-Publishing Gotchas
If you adopt Abidi's localhost-plus-tunnel trick for containerized test apps, verify how your containers actually bind their ports. Docker's official port-publishing documentation highlights two easy-to-miss traps:
- Default wildcard exposure: Running
docker run -p 8080:80without specifying a host IP binds port 8080 to0.0.0.0and[::]—every interface on the host—making it reachable across your LAN and potentially beyond. You must explicitly bind to loopback (for example,-p 127.0.0.1:8080:80). - The pre-28.0.0 Layer-2 caveat: Docker's documentation carries an explicit warning that in Docker Engine releases older than 28.0.0, other hosts on the same Layer-2 network segment (such as devices connected to the same home router or switch) could still reach ports published to localhost. Docker also notes that its own NAT firewall rules can bypass expectations set by host firewalls like UFW. Checking
docker --versionand verifying socket bindings withdocker inspectis well worth the ten seconds it takes.
How the Layered Workflow Stacks Up
Looked at as a whole, Abidi's setup succeeds not because of one silver bullet, but because each layer covers a different failure mode:
| Workflow Layer | Purpose in Abidi's Setup | Practical Limitation / Pro Tip |
|---|---|---|
| Dedicated spare laptop | Keeps experimental installs and AI execution off the main Windows PC. | Reduces blast radius to the spare box, not a zero-trust sandbox. |
| Non-interactive SSH calls | Prevents lingering shell state (cd, env vars) and simplifies command auditing. | Check known_hosts fingerprints and use SSH keys instead of passwords. |
| Read-only checks first | Maps running containers and ports before deploying new services. | Enforced via instructions/prompts rather than technical read locks. |
No sudo access | Forces human review before system-wide installs, removals, or reboots. | Standard docker group access still equates to root unless using Rootless mode. |
Loopback bind + SSH -L tunnel | Keeps half-baked test dashboards off the home LAN. | Verify Docker Engine >= 28.0.0 and explicit 127.0.0.1 bindings. |
scp file transfers | Moves configs and scripts over SSH without maintaining a Samba share. | Built natively into Windows 10/11 OpenSSH. |
The Takeaway for Windows Power Users
You don't need enterprise infrastructure to borrow the smartest parts of this pattern. If you have an aging laptop gathering dust in a closet, turning it into a dedicated SSH target for AI-assisted coding and container tinkering lets your Windows PC stay fast, tidy, and untouched by half-finished experiments.
Start small: enable Windows' built-in OpenSSH client, set up SSH key authentication, enforce read-only inspection and explicit teardown in your prompts, and treat every privilege boundary—especially around Docker—with healthy sysadmin skepticism. You'll spend far less time cleaning up after your AI assistant, and a lot more time actually shipping projects.
References
- Giving Claude its own computer changed everything about how I use it MakeUseOf · 2026-12-01T16:00:17+00:00
- claude.com code.claude.com
- claude.com code.claude.com