Claude Remote
The cloud can have your code. It can't have your Claude.

Start, watch, and stop a Claude Code session on your Windows PC from your phone,
over Tailscale. Open the PWA, tap a project, and the session appears in the
Claude Code app - the same session whether you drive it from the phone or sit
down at the desk. Tap STOP and it ends the session.
It is a remote start button, not a terminal. There is no live console output
and no way to answer an interactive prompt from the phone; the actual
conversation happens in the Claude Code app. That is deliberate.
 |  |  |
| Choose folders to share | One session running | Two, side by side |
Project names in the screenshots are invented.
Read this before you install it
This is a small personal tool published in case it is useful. It is not
hardened for a shared or hostile network, and what it does is genuinely
powerful, so here is the whole trade in plain terms.
What you are turning on: a service on your PC that launches Claude Code
with the full permissions of your user account, reachable by every device
on your tailnet, protected by one six-digit passcode.
That is a reasonable trade for a single-user tailnet you control. It is a bad
one if other people are on your tailnet, or if a device on it might be lost or
unlocked. The threat this defends against is an unlocked phone in someone
else's hand - not a hostile network peer.
Specifically:
-
No filesystem isolation. A launched session can reach anything your user
account can. Claude Code's sandbox does not run on native Windows and governs
Bash only. This is an open design decision, not an oversight.
-
Only open projects you trust. Tapping a project never runs a file from
it, but the session it starts works inside it. With a venv active, a program
the project ships in venv\Scripts (a git.exe, say) runs in place of the
real one the first time Claude calls it by name.
-
The passcode is the only authentication. It is stored hashed (scrypt,
per-install salt), never logged or echoed, rate-limited with a lockout, and
asked every time the app opens. It is still six digits.
-
Tailscale identity headers are not used as auth, on purpose. The threat is
a device already carrying your identity, so those headers would wave an
attacker straight through.
-
There is a first-run window. Until you set a passcode, the agent answers
403 on every route except the one that sets it - so whoever reaches it
first sets it. That is why the agent switches tailscale serve on only
after you have set the passcode at the desk, never before.
-
Check your drive's ACL. On a drive that inherits
NT AUTHORITY\Authenticated Users:(I)(M) (Modify), any authenticated account
on the machine can rewrite the scripts that run as you at logon. That is not
caused by this tool, but installing it is what makes it worth exploiting.
Check with icacls <drive-or-folder>, and harden with:
icacls <folder> /inheritance:d
icacls <folder> /remove:g "Authenticated Users"
If any of that is not a trade you want, don't install it. That is a completely
reasonable conclusion and no feature here changes it.
Architecture
phone (PWA) --https(Tailscale)--> tailscale serve --http--> Local Agent
(Node,
127.0.0.1:8790)
|
v
agent/launch-session.ps1
|
v
claude.cmd --remote-control
(Claude Code app, Code tab)
STOP --> confirm on the tile --> taskkill on the session's process tree
(nothing is written on your behalf: ask the session for a
handoff first, while it still has its context)