Yes. You can open a terminal on a Windows PC from your phone, and Windows gives you two main paths: enable the optional OpenSSH Server feature and connect with an SSH client, or run the CLIAnywhere daemon and connect from its iOS, Android and web clients. The first needs the PC to be reachable on your network; the second connects outbound, keeps sessions alive between phone connections, and works with cmd, PowerShell and pwsh alike.

Short Answer

On the same Wi-Fi, installing the OpenSSH Server optional feature and connecting from an SSH app works, though each reconnect gives you a fresh shell. Away from home, the PC is behind NAT like any other machine, so SSH needs port forwarding or a VPN on top. The CLIAnywhere daemon avoids both steps: build-windows.bat produces claw.exe, which you double-click to run; it connects outward, needs no public IP, and keeps the same session alive whether the phone is attached or not.

Why This Is Difficult

Unlike Linux servers, a Windows PC ships with no remote-shell service switched on. The OpenSSH server exists, but as an optional feature most people have never installed — so out of the box, there is simply nothing for a phone to connect to.

Reachability comes next. A home or office Windows PC sits behind a router doing NAT. From your own network that is fine; from anywhere else, you are into port forwarding, dynamic DNS or a VPN before the first byte moves.

And the shell landscape is more crowded than on other platforms. Windows has three shells in common use — cmd, powershell and pwsh — and the one you want depends on what you are doing, so a remote-access tool that only spoke one of them would be a poor fit.

Common Solutions

Option 1: The OpenSSH Server on Windows

Microsoft ships an OpenSSH server as an optional feature. Install it under Settings (System → Optional Features on current Windows 11 builds, or via PowerShell with Add-WindowsCapability), start the service, and any SSH client — Termius, Blink Shell, or the ssh command on another computer — can connect to user@your-pc-ip.

It is the standard answer and integrates with Windows accounts. The catches are familiar: outside your LAN the PC still needs to be reachable (port forwarding or a VPN), and every login is a new session, so a dropped phone connection kills whatever was running unless you add tmux-style tooling that is foreign to Windows habits.

Best for: mixed environments where other machines already SSH into the PC

Option 2: Remote Desktop (RDP)

Windows has a first-party answer for remote access: Remote Desktop. It mirrors the entire desktop, and the official client runs on phones. If the work is in GUI applications, this remains the right tool.

For terminal work it is a heavy vehicle — you encode a whole screen to reach one console — and hosting RDP sessions is limited on Windows Home editions, which is exactly what many personal PCs run. Like SSH, it also wants the machine reachable on the network.

Best for: full-desktop access on Pro/Enterprise machines

Option 3: CLIAnywhere

CLIAnywhere's open-source daemon builds on Windows with a single batch file, build-windows.bat, producing claw.exe — a normal executable you double-click to run, no service installation required. iOS, Android and web clients then attach to terminal sessions that live on the PC and survive disconnections.

The daemon connects outbound, so there is nothing to forward and no listening port facing the internet. All three Windows shells are supported on the host — cmd, powershell and pwsh — alongside the built-in file browser and localhost access.

Best for: terminal access to your own Windows PC from anywhere

Using CLIAnywhere

1

Install the Mobile Client

On Android, install CLIAnywhere from Google Play. On iOS, the app is available on the App Store — see the download page. The Web App at webapp.clianywhere.com runs in any browser and connects to the same sessions.

2

Build and Run claw.exe

The daemon is open source. Download a build from GitHub Releases, or build it yourself — on Windows that is one batch file, run from a command prompt or PowerShell:

Important: Because this software enables remote terminal access, some antivirus programs may mistakenly flag it as malicious. The daemon is fully open source, and we recommend building it from source yourself for maximum security.
Command Prompt or PowerShell
git clone https://github.com/CLIAnywhere/clianywhere_daemon.git
cd clianywhere_daemon
build-windows.bat

After the build completes, claw.exe will appear in the directory — double-click it to run. You can also double-click build-windows.bat directly in File Explorer if you prefer not to use a prompt at all.

3

Link the App and Pick Your Shell

Create an access key in the app and link it to the PC in either direction — paste the key into the daemon, or scan the daemon's QR code with the app. The key is used only for the local SPAKE2 key exchange and is never uploaded to any server.

The PC then shows up in the app's device list, and tapping it opens a terminal session in the shell you have configured. Which shell that is matters more on Windows than elsewhere:

The three Windows shells, briefly
cmdThe legacy Windows command interpreter — batch files, dir, ipconfig, decades of muscle memory.
powershellWindows PowerShell 5.1, the object-oriented shell that ships with Windows itself; the default for administration.
pwshPowerShell 7 and later — cross-platform, installed separately from Microsoft; the same language, newer engine.

All three are supported, and switching between them is a normal session choice. Shell-specific details are in the remote PowerShell guide.

CLIAnywhere on Windows: facts at a glance
Windows hostYes — built with build-windows.bat, run as claw.exe
Shells (Windows)cmd, pwsh, powershell
OpenSSH server requiredNo
Persistent sessionsYes
Desktop ↔ mobile session switchingYes
File browser + downloadYes
Localhost / LAN web accessYes
Port forwarding / public IP requiredNo
EncryptionSPAKE2 key exchange + AES-256-GCM, P2P (DTLS) with encrypted relay (WSS) fallback
Open-source daemonYes — github.com/CLIAnywhere/clianywhere_daemon

Example: A Service Incident Handled From the Kitchen

Your Windows PC runs a small internal service — a build agent behind a PowerShell window, plus the dev tools you use during the day. At 9 p.m., a message arrives: an internal tool is returning errors, and the process lives on that PC.

You open CLIAnywhere on your phone and tap the PC. The session opens in pwsh, exactly where you left it, with the service's output still in the scrollback. You read back through the last ten minutes of errors, check the service state with Get-Service, restart it, and watch the log lines turn healthy — all before the kettle finishes.

Nothing was pre-installed for this: no OpenSSH feature, no forwarded port, no RDP session left logged in. The PC needed only to be switched on with claw.exe running. The same story on a Linux machine is told in the Linux guide.

Security

Remote terminal access on Windows means remote code execution as your user, so the channel and the binary both matter. CLIAnywhere negotiates keys with SPAKE2 and encrypts every session with AES-256-GCM; the relay used as a fallback only ever sees ciphertext, and each linked PC is gated by a Security Code generated locally on that machine, never uploaded. If the antivirus warning above made you cautious, the honest answer is that caution is reasonable — the daemon is open source, and building it yourself with build-windows.bat is the recommended path. Full details are on the end-to-end encryption page.

Frequently Asked Questions

Windows does not run an SSH server by default, so you first have to add one: the built-in OpenSSH Server is an optional feature you can install under Settings, after which any SSH client can connect — if the machine is reachable on your network. Alternatively, run the CLIAnywhere daemon (built with build-windows.bat, producing claw.exe), which connects outbound, needs no port forwarding or public IP, and keeps sessions alive between phone connections.
Run the CLIAnywhere daemon on the Windows PC and open a session from the iOS, Android or web client. powershell, the Windows PowerShell 5.1 shell that ships with Windows, and pwsh, the separately installed PowerShell 7+, are both supported, along with cmd. Whatever you can do in PowerShell at the desk — check services, read event logs, run scripts — you can do from the phone, and commands execute on the PC, not on the phone. See the remote PowerShell guide for details.
cmd is the legacy Windows command interpreter, dating back to MS-DOS heritage. powershell is Windows PowerShell 5.1, the object-oriented shell that ships with Windows itself. pwsh is PowerShell 7 and later, the cross-platform version that must be installed separately. CLIAnywhere supports all three as host shells, so you can use whichever your scripts and habits already assume.
Because the software enables remote terminal access, some antivirus programs mistakenly flag it as malicious — a common false positive for any legitimate remote-access tool. The daemon is fully open source, so its code can be inspected, and we recommend building it from source yourself with build-windows.bat for maximum security.
No. The OpenSSH Server optional feature and CLIAnywhere are two independent ways to get remote terminal access, and CLIAnywhere does not depend on the first. CLIAnywhere's daemon makes its own outbound connection, so you can leave the OpenSSH server disabled. Keep it enabled only if you also connect from other computers or tools that speak SSH.

Your PC's terminal, in your pocket

Free download, one-minute setup, and the same terminal session on every device.

Download App Read the FAQ