logoalt Hacker News

Stop Doom Scrolling, Start Doom Coding: Build via the terminal from your phone

555 pointsby rbergamini27last Tuesday at 7:38 PM386 commentsview on HN

I used Tailscale, an old laptop, Claude Code, and Termius to code from my phone anywhere I have Internet connection.

Great for parties where you rather be home tinkering.


Comments

rcarmolast Wednesday at 7:36 AM

I have been doing this with toad and opencode and it is great for those unprompted ideas that pop up while in the big blue room, but not really useful for large projects.

show 1 reply
not_ailast Tuesday at 11:02 PM

This can be done not just with Claude but also with codex and gemeni cli. Well technically anything that has a cli interface.

I run both gemeni (fee) and codex (paid), with tmux thrown in to switch between phone and laptop. Laptop runs vscode with ssh to my server but I could also use the web version of vscode.

blauditorelast Tuesday at 8:52 PM

So, we've spent ages, blood, and tears building better UIs than text, and now with AI everyone is suddenly expected to type instructions on the phone? Yes, I realize this is hard to avoid for coding in particular, but generally I'm tired of typing text on my phone. And no, I don't want to talk to it either.

show 1 reply
andsmi2last Wednesday at 4:31 AM

Cursor--run in cloud seems to work just fine for this. I setup my project and then github to publish web or mobile app.... i believe claude can also take instructions from github...or am i missing something.

zhoujianfulast Wednesday at 2:05 AM

I made something very similar for myself and now have decided to open it up to others if you want to help me beta test.. free for all and it sets you up with your own hetzner vps and you even share my claude code max account: clodhost.com

japhiblast Tuesday at 10:00 PM

Btw this is basically Replit's entire product (replit.com). Costs some money but the UX is pretty good

sjrdlast Tuesday at 8:20 PM

I genuinely did that a few times. Using an ssh client to fix a commit failing CI, for example. Even launching release builds remotely. Notably once when I was on vacation and half the Scala ecosystem was waiting for me.

auspivlast Tuesday at 8:01 PM

Using this with tmux and various VPN tech. Main issue is scrolling. Termius + tmux don't scroll very well. And I've been led to believe tmux is necessary to keep sessions open when I turn off my phone screen

show 5 replies
zamadatixlast Wednesday at 3:26 AM

Tailscale is a lot of permanent runtime overhead/latency just to avoid setting up dynamic DNS and changing a few lines in the sshd_config.

show 1 reply
LTL_FTClast Tuesday at 8:33 PM

"Even code at the club!" haha if you're coding at the club, just go home! but also, I really wish Sony still made their micro Vaio laptops (Sony Vaio P, for instance).

show 2 replies
borisandcrispinlast Wednesday at 2:26 AM

I just use Happy https://happy.engineering/

victorymakeslast Wednesday at 1:30 AM

This looks neat. How do you handle code verification in this workflow, especially if you want to be confident about what actually ran?

darepubliclast Wednesday at 2:01 AM

I might just be old fashioned but in a party with a couple of drinks in me I don't trust my ability to even vibe code well.

show 1 reply
qazplm17last Tuesday at 11:31 PM

I have similar setup, one thing to add is map action button to a shortcut for dictate to clipboard since you can’t dictate directly into termius.

tomjugglerlast Tuesday at 8:16 PM

Pretty cool idea, I'm going to be trying this only using open source Cecli (with DeepSeek API) instead of Claude CLI because I don't have infinite $$$

show 1 reply
crawshawlast Tuesday at 8:59 PM

I am a huge fan of driving agents from my phone, though this is one of the places where I don’t think terminal UIs work. Agents need a web UI for phones.

pjmlplast Wednesday at 8:49 AM

Just install proper development tools on the device, some examples from my setup,

- Pydroid

- C# Shell .NET IDE

- Pascal N-IDE

- Shader Editor

sabareeshlast Tuesday at 8:26 PM

I am looking for some open source terminal for iphone .I have code server running which i can just use terminal from vs code on safari

someguyiguesslast Wednesday at 3:57 AM

I’m wary of enabling ssh/remote login. It seems like it could be an attack vector.

mritchie712last Tuesday at 8:15 PM

to keep your mac awake:

    caffeinate -di
show 1 reply
OakNinjalast Tuesday at 7:52 PM

Please mask your identifiers, unless they are already spoofed. You potentially give out a lot of your info to bad actors.

Other than that, love it :)

show 1 reply
FooBarWidgetlast Tuesday at 8:05 PM

Does this approach work for anyone? For my life, I've found that if I'm not behind the computer then I'm not in a productive situation anyway, even with AI access. I don't have a setting where I can concentrate for a long time and think clearly. For examole when watching children, doing groceries, during transit (probably have to change train in 20m, or walking to next destination). No convenient access to a notepad and pen. On a phone it's also inconvenient to do research.

For me personally I've found two better uses of in-between time:

1. Micro exercises. Really important for health and longevity, especially when it's hard to find dedicated time for exercise.

2. Resting. This means no phone. Yeah hard to resist doom scrolling. Just relaxing muscles and breathing exercises, calming down the nervous system. Increases long term resillience and reduces stress.

So I'm a bit puzzled. If you are in a situation where you can concentrate, why not just pull out a laptop? Typing on phone is really annoying. Even complex conversations with AI I prefer doing on a laptop.

Perhaps there are coding tasks where the prompt is not too complex and it's more about writing code. But you still have to review the result. That's even more annoying on a phone than writing text.

show 3 replies
knowsuchagencylast Tuesday at 11:52 PM

I love this! This concept on steroids is one of the main reasons I made https://github.com/knowsuchagency/vibora after trying both happy.engineering and Vibe Kanban for remote coding. There's the claude mobile app, too, but I want to run Claude on my own hardware in a terminal

kaiwenwanglast Wednesday at 6:06 AM

Why not Claude Code on web/cloud linked to your GH repo?

Sjeitilast Tuesday at 9:36 PM

İ've been using Termux (and Vim) to code on my phone for years, way easier than this setup.

LeicaLattelast Tuesday at 11:54 PM

My setup is very similar.

After you log in you can unlock keychain by running this command

‘security unlock-keychain’

opanlast Tuesday at 10:12 PM

I was expecting this to be about using Termux or similar. Why are LLMs involved here?

hambeslast Tuesday at 8:33 PM

Why would I need claude code for remote programming, if I could just use ssh and tmux?

saadn92last Wednesday at 3:23 AM

Yeah I just built www.makerkit.io for the exact same thing

koinedadlast Tuesday at 11:26 PM

I’ve thought about this many times, maybe with a custom telegram bot!

pmarrecklast Tuesday at 8:50 PM

this is literally my setup and it is a game-changer:

tailscale, tmux, codex/claude code, mosh, blink shell (iOS) https://blink.sh/

show 1 reply
hayksaakianlast Tuesday at 9:15 PM

claude.ai + vercel and you can do it all without anything but your phone

their web interface lets you use Claude code and push changes to a GitHub repository

vercel can auto build from a GitHub repo

even less setup and infrastructure needed

october8140last Wednesday at 3:56 AM

I like to "doom read" books.

kalmyklast Wednesday at 7:29 AM

is termius free, I was wondering if there is a free open source ios terminal

mikojanlast Wednesday at 7:55 AM

Why Tailscale instead of plain wireguard?

show 1 reply
erelonglast Wednesday at 3:10 AM

ollama runs locally in termux preferably on proot-distro (with less "coding power")

sylwarelast Wednesday at 2:15 PM

Fixed IPv6 workstation, ssh (pre-shared key) and vim, 4G usb modem, a "big" screen, nice battery life, "code anywhere" on your workstation (the best would be a "backpack" modular system: a RISC-V board in its case slapped to a "big" DP/eDP screen on a stand, an usb dvorak [ortholinear|columnar] keyboard, a 4[5]G usb modem (using the USB modem standard) with a IPv6 enable mobile ISP sim card, and a rather good battery pack.

(I even use a webcam to capture what my monitor does display when I do remote coding of low level GFX oriented software! Actually my wayland compositor for linux and AMD GPUs)

BTW, IPv6 = ZERO NAT to setup, delicious.

"It's magic".

mattacularlast Wednesday at 11:49 AM

Account created 16 hours ago posting highly dubious AI hype? This user is almost certainly part of the intense astroturfing campaign likely financed by Anthropic that has been ongoing for days/weeks now.

integricholast Wednesday at 9:47 AM

Calling "telling the LLM what to do" coding is dishonest, and I have no respect for any of this.

functionmouselast Tuesday at 8:17 PM

> What You'll Need

> A Computer running 24/7 with Internet Connection

> A Smartphone

> A Claude Pro subscription

Or.. just install Termux and do it the same way you do it anywhere else?

show 5 replies
croeslast Tuesday at 9:44 PM

If you don’t write a single line of code that’s not coding.

Otherwise my customers are coders to. they to the same. The difference is the recipient of the order

henearkrlast Tuesday at 9:39 PM

I was coding a lot many years ago with a Nokia N900.

The loss of the physical keyboard ruined everything for me. I really need the sense of touch.

adhamsalamalast Tuesday at 9:15 PM

I run Claude Code on my phone itself via Termux.

334f905d22bc19last Wednesday at 11:52 AM

Did I read that right, that you have to have your computer unlocked at all times?

Yeah what can go wrong when you are travelling and your computer is at home unlocked lmao?

wickedsightlast Wednesday at 11:02 AM

Does anyone have any good advice or resources on a good workflow to do this with web apps? There's some stuff I'd really like to solve, for myself/family, that would require a front and back-end with persistent storage.

I would love to easily be able to set this up easily when a new idea pops into my mind and then have something running (locally or securely in some cloud) within a few hours/days. I wouldn't want to spend a ton of money for this though, nor have a lot of overhead to manage.

Edit: In addition, I'd like some safeguards where I can't have the LLM of choice accidentally delete stuff or do other unintended things on my network.

show 1 reply
urbandw311erlast Tuesday at 8:24 PM

I already doom code! I’ve always found coding a highly addictive activity and struggle to stop when I should. So for me it’s a hard no thanks :-)

show 1 reply
immibislast Wednesday at 9:13 AM

Vibe coding is not coding (unless by vibe-coding you meant buttplug.io)

system2last Wednesday at 8:53 AM

Can't we do the same with an SSH client such as Termius?

spacecadetlast Tuesday at 9:43 PM

I built my AI dungeon master game and play it using my phone, Tailscale, and an app called Termius.

https://github.com/derekburgess/dungen

🔗 View 13 more comments