<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: CLIAnywhere</title>
    <description>The latest articles on DEV Community by CLIAnywhere (@clianywhere).</description>
    <link>https://dev.to/clianywhere</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4201537%2Fc61d5f9d-d32f-412c-b587-8940fcbf8a5c.png</url>
      <title>DEV Community: CLIAnywhere</title>
      <link>https://dev.to/clianywhere</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/clianywhere"/>
    <language>en</language>
    <item>
      <title>I built a remote terminal that keeps the same shell when I switch to my phone</title>
      <dc:creator>CLIAnywhere</dc:creator>
      <pubDate>Fri, 23 Oct 2026 03:41:16 +0000</pubDate>
      <link>https://dev.to/clianywhere/i-built-a-remote-terminal-that-keeps-the-same-shell-when-i-switch-to-my-phone-51p9</link>
      <guid>https://dev.to/clianywhere/i-built-a-remote-terminal-that-keeps-the-same-shell-when-i-switch-to-my-phone-51p9</guid>
      <description>&lt;p&gt;I got tired of losing context every time I left my desk.&lt;/p&gt;

&lt;p&gt;SSH works, but each connect is a new shell. tmux helps if you already live in it — I wanted something closer to "same session, different screen," including from my phone, without opening ports on my home network.&lt;/p&gt;

&lt;p&gt;That's what &lt;a href="https://www.clianywhere.com" rel="noopener noreferrer"&gt;CLIAnywhere&lt;/a&gt; is for.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it actually does
&lt;/h2&gt;

&lt;p&gt;You run a small daemon (&lt;code&gt;claw&lt;/code&gt;) on your Windows, macOS, or Linux machine. Then you open the iOS / Android app or the web client, link the PC, and you're in that machine's terminal.&lt;/p&gt;

&lt;p&gt;A few things I cared about while building it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The session keeps running on the PC if the phone sleeps or the network drops. Reconnect and you're back in the same shell.&lt;/li&gt;
&lt;li&gt;Switch between desktop and phone without starting over.&lt;/li&gt;
&lt;li&gt;Browse files on the PC and pull them down to the phone when you need a log or a build artifact.&lt;/li&gt;
&lt;li&gt;Open localhost / LAN web apps from the phone (handy for a local &lt;code&gt;localhost:3000&lt;/code&gt; while you're on the couch).&lt;/li&gt;
&lt;li&gt;Prefer a direct P2P link; fall back to an encrypted relay when P2P can't punch through. No public IP, no port forwarding.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Commands run on your PC. The phone is just another window into that session.&lt;/p&gt;

&lt;h2&gt;
  
  
  How connection security works (short version)
&lt;/h2&gt;

&lt;p&gt;Account login gets you to your devices. Each PC also has a local Security Code that stays on that machine — it isn't uploaded to our servers. Traffic uses DTLS for P2P or WSS for relay, with SPAKE2 for key exchange and AES-256-GCM for the payload. The relay only forwards ciphertext.&lt;/p&gt;

&lt;h2&gt;
  
  
  Daemon is open for inspection
&lt;/h2&gt;

&lt;p&gt;The PC daemon is on GitHub: &lt;a href="https://github.com/CLIAnywhere/clianywhere_daemon" rel="noopener noreferrer"&gt;CLIAnywhere/clianywhere_daemon&lt;/a&gt;. Some antivirus tools flag remote-access software in general; if that bothers you, build from source. Releases for macOS are signed/notarized.&lt;/p&gt;

&lt;p&gt;There's a free tier (with ads on the free client). Paid plans are in-app if you want more.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup in practice
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Install the app (App Store / Play) or use the web app.&lt;/li&gt;
&lt;li&gt;Run the daemon on the PC.&lt;/li&gt;
&lt;li&gt;Create an access key in the app (or scan the daemon QR) and paste it in.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Usually under a minute if the PC build/install is already done.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who this is for
&lt;/h2&gt;

&lt;p&gt;If you already live in Termius / plain SSH and that's enough, you probably don't need this. It's more for people who leave long jobs running (builds, servers, coding agents in a CLI) and want the same live session from the phone without babysitting tmux and without punching holes in the router.&lt;/p&gt;

&lt;p&gt;Site: &lt;a href="https://www.clianywhere.com" rel="noopener noreferrer"&gt;clianywhere.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;
Daemon: &lt;a href="https://github.com/CLIAnywhere/clianywhere_daemon" rel="noopener noreferrer"&gt;github.com/CLIAnywhere/clianywhere_daemon&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions in the comments — especially about the networking bits or weird antivirus false positives.&lt;/p&gt;

</description>
      <category>terminal</category>
      <category>remote</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
