← 返回资讯
苏晴
资深编辑
已审核

柏林地铁故障时,我用手机修了个线上Bug

**TL;DR:** Codex Appshot turns your phone into a remote coding terminal. We'll set it up, write some Python on a bus, and I'll share how it saved my 🥓 during a Berlin U-Bahn outage.

柏林地铁故障时,我用手机修了个线上Bug

柏林地铁故障时,我用手机修了个线上Bug


TL;DR: Codex Appshot turns your phone into a remote coding terminal. We'll set it up, write some Python on a bus, and I'll share how it saved my 🥓 during a Berlin U-Bahn outage.


Cover image description: A smartphone propped against a coffee cup, displaying a dark IDE with colorful code lines. The phone screen reflects a blurred Berlin cityscape in the background.


Picture this: You're stuck on the U8, underground, no laptop. A server alert buzzes. ☕ Panic? Not anymore.

Last Tuesday, my production API threw a 500 while I was commuting. No laptop, just my phone. That's when I truly fell in love with Codex Appshot 手机远程编程.

Basically, it's a mobile app that connects to your real dev environment. Not a toy editor — actual VS Code Server in your browser, optimized for touch. Well... mostly optimized. We'll get to that.

🔥 What Exactly Is Codex Appshot?

Codex Appshot (手机远程编程 literally means "mobile remote programming") is a Chinese-built tool that's gaining traction in global dev circles. It bridges your phone to a cloud or local dev machine. I stumbled on it back in March after seeing some buzz on X, and honestly, I was skeptical at first.

You code on your phone, but execution happens on your beefy server. Think of it as TeamViewer for your IDE, but way more responsive. Actually, wait—I should clarify that it's not screen mirroring at all. It's a native protocol. That's why the latency doesn't make you want to throw your phone against the wall.

Key features:

Version 2.4.1 dropped last week and finally fixed the infuriating bug where the terminal would randomly swallow your first keystroke. Thank god.

🚀 Setting Up in 5 Minutes

I run a DigitalOcean droplet for side projects. Let's connect it.

First, install the server component on your machine:

BASH
# SSH into your dev server
ssh alex@my-droplet

# Download and run the Codex setup script
curl -sSL https://get.codex-appshot.io/setup | bash

# Start the service
codex-appshot serve --port 8080 --auth-password "berlinCoffee42"

The script spits out a QR code and a pairing key. Took maybe 90 seconds total.

On your phone, open the Appshot app, scan the code, and boom — you're looking at your actual VS Code workspace. The first time this worked, I actually laughed out loud on the train. People stared. Whatever.

⚠️ Mistake alert: I used localhost instead of my server's IP the first time. Spent 3 hours debugging my firewall rules. Don't be like me — use 0.0.0.0 if you want external access. I think the docs have been updated since then, but at the time they were... let's say "sparse."

💡 Real-World Debugging from a Phone

Back to my U-Bahn story. The error log showed:

CODE
File "/app/utils/auth.py", line 47, in validate_token
 decoded = jwt.decode(token, SECRET, algorithms=['HS256'])
jwt.exceptions.InvalidSignatureError: Signature verification failed

I opened the file right on my phone. The touch-optimized keyboard has swipe gestures for symbols — swiping right on j gives >, swiping up on k gives +. It's surprisingly fast. Not "mechanical keyboard" fast, but definitely "I can't believe this is working" fast.

Found the issue: A config sync script had overwritten the SECRET key. Classic.

I edited the env file, restarted the service with a terminal command, and the alerts stopped. All before my stop at Hermannplatz. Took maybe 7 minutes from alert to resolution. Felt like a wizard. A very cramped, underground wizard.

Three data points that impressed me:

1. Connection time: Under 1.2 seconds on 4G (tested with curl -o /dev/null -s -w '%{time_total}')

2. Latency per keystroke: ~80ms, barely noticeable

3. Battery usage: 12% for a 45-minute session (iPhone 13)

That battery number surprised me. I expected way worse.

🔐 Security Considerations

You're exposing a dev environment to the internet. Please don't skip this.

I mean it.

BASH
# Always use TLS
codex-appshot serve --port 8080 --tls-cert /path/to/cert.pem --tls-key /path/to/key.pem

# Restrict IP ranges if possible
sudo ufw allow from 192.168.1.0/24 to any port 8080

I recommend:

The app stores credentials locally with AES-256 encryption. Not perfect, but solid for most use cases. From what I've seen in the GitHub issues, there was a minor CVE filed in January about session token handling, but the 2.4.0 release patched it. Keep things updated, obviously.

🎯 When Phone Coding Actually Makes Sense

I'm not suggesting you build an entire SaaS from your phone. That would be insane.

But for specific scenarios, it's ✨ magical:

Last month, I reviewed a PR while waiting for my döner. The kebab shop owner now thinks I'm some kind of hacker. I didn't correct him. He gives me extra meat now. Worth it.

📱 Touch-Friendly Tricks

The app has some clever UX for mobile coding:

My favorite: shaking the phone undoes the last action. It's like a real-life Ctrl+Z, minus the weird looks from fellow passengers. Well... you still get the looks. Just for different reasons.

I keep discovering new gestures. There's probably a manual somewhere.

⚠️ Honest Limitations

It's not all sunshine and artisanal espresso. Some rough edges:

For serious refactoring sessions, I still reach for my laptop. But for quick fixes? This is now my first choice. Probably says more about my lifestyle than the app, honestly.

One thing that genuinely bugs me: the extension support is limited. About 60% of my usual VS Code extensions work. The rest either crash silently or just... don't appear. The maintainers say they're working on it. We'll see.

🤔 What's Next?

The team behind Codex Appshot is working on offline editing with sync-on-connect. I'm cautiously excited — offline coding on a phone sounds ambitious. Maybe too ambitious? I don't know. The devlog on their Discord shows some promising prototypes though.

I'm also experimenting with connecting it to my Raspberry Pi home server. Imagine: a $35 computer doing the heavy lifting while you code from a hammock. We're living in the future, friends. Or maybe just a very specific, nerdy version of it.


What's your experience with mobile coding? Have you debugged production from an unlikely place? Or do you think this whole idea is absurd? Drop a comment — I'll be here with my coffee, probably coding from my phone. ☕


#mobile #webdev #python #productivity #beginners

284
14242 阅读
4 评论
分享
链接已复制
编辑说明

本文由 MakeSense 编辑团队撰写并审核。文中引用的数据和观点均经过交叉验证,如有疏漏欢迎在评论区指正。最后更新:2026年06月27日 16:31

苏晴

资深编辑

科技媒体从业 8 年,曾就职于多家科技媒体。关注 AI 创业和投资赛道,采访过 50+ 位行业从业者。

读者评论 4

老李 3天前
有个小问题想请教,文中提到的那个方案在大规模场景下性能怎么样?
回复 点赞 (5)
运营小陈 6天前
转发到团队群了,大家都觉得有参考价值。
回复 点赞 (4)
数据分析师 1周前
数据引用很扎实,建议补充一下近三个月的最新数据。
回复 点赞 (9)
产品经理阿杰 1周前
从产品角度看,这个方向确实有机会,但商业化路径还需要验证。
回复 点赞 (15)