logoalt Hacker News

Show HN: uvx ptn, scan a QR, get a terminal in your phone

96 pointsby yxl448last Saturday at 4:22 AM42 commentsview on HN

Scan QR → web terminal → vibe coding in bed. Mobile-first terminal via Cloudflare Quick Tunnel. No port forwarding. Feedback welcome.


Comments

simonwlast Saturday at 10:55 AM

"Warning: The URL is the only authentication. Anyone with the link has full terminal access."

Could you make it so the URL is one-use only, such that once you've scanned it with your phone you can stop worrying because anyone else who uses it won't be able to start a session?

show 1 reply
sa-codelast Saturday at 1:53 PM

I can recommend tailscale for creating private networks. It has a generous free tier and would reduce the attack surface considerably compared to ngrok

Better yet would be setting up your own wireguard instance and not relying on free lunches. But as far as free lunches go tailscale would be my preferred option

show 2 replies
smithclaylast Saturday at 3:09 PM

This is great. If you’re skeptical, vibe coding in the go is great because of how async the agentic coding workflows can be. Nothing like fixing a bug in the dentist office.

Lots of different technical solutions for how to do this, including the Claude and ChatGPT mobile apps nowadays. I use Tailscale. Choose what works best for you and enjoy.

reimuwulast Saturday at 12:25 PM

> I wanted to vibe code from bed.

In this case, I think using Termux + SSH would be more convenient and compatible with all devices running sshd.

show 3 replies
arisylafetalast Saturday at 10:00 AM

Love it, I've been looking for something like this for a while now. But please add a password to it if you have the time. I might chip in by next if you're open to contributions.

show 2 replies
MarsIronPIlast Saturday at 5:18 PM

Genuine question here: How is this better than a mobile SSH client + something like Tailscale or Yggdrasil?

show 1 reply
thomasht86last Saturday at 11:03 AM

I wanted a secure solution, that still can be run in one command, and came up with this, https://gist.github.com/thomasht86/86f0f8f62db1839054abd8a7e...

gschizaslast Saturday at 3:05 PM

This command:

  lsb_release -cs
Doesn't work for Linux Mint 22.2

What you want is UBUNTU_CODENAME from /etc/os-release (in the case of Linux Mint 22.2, it's "noble")

EDIT: Actually, I'm not even sure you can do $(command) inside /etc/apt/sources.list.d/*

show 1 reply
braplast Saturday at 1:54 PM

I like this but I hate how everything has to be tied to AI now to get attention. “I wanted to vibe code-“ who cares? It’s a neat tool, do we have to force AI into it?

show 2 replies
mark_l_watsonlast Saturday at 3:31 PM

Very cool, indeed.

One nit-pick: Terminus requiring a lot of setup work:

Terminus is trivial to use with a rented VPS. But, ptn solves a different problem

kosolamlast Saturday at 12:00 PM

I’m also vibing from the iphone. Termius connects via ssh to remote server where I run claude code. Ssh connects also over a wireguard connection. So ports are not an issue because they are all available via wg in a secure way. Additionally I have code server running there automatically port forwards and giving me ssl. So when I run “pnpm dev” in tmux in ssh then I access it via https://3000.dev.mydomain.com which works great for development.

show 1 reply
phs318ulast Saturday at 5:56 AM

Love it.

Laziness - the mother of (most) invention.

ballpug1xtrlast Saturday at 12:05 PM

Further information concerning tunneling protocols, sshd/ ssh is accessible in the man site:

[1]:https://man.openbsd.org/sshd.8

[2]:https://man.freebsd.org/cgi/man.cgi?ssh