← back to blog
4 min read
  • #termux
  • #gear
  • #mobile-coding

Coding on your phone: the gear that makes it work

The folding keyboard, phone stand, and power bank that turn Termux on a phone into a workable dev setup. Plus the honest limits of coding on 6 inches of glass.


Typing code on a phone's glass keyboard is miserable. Autocorrect mangles variable names, your thumbs cover half the screen, and a pipe character takes three taps. I still write real code on my phone with Termux, including a fix I once shipped from a chairlift, and the reason it works is around $60 of gear.

Quick honesty note: the product links below are Amazon search links through my site, and I may earn a small commission. If that bothers you, search the names yourself. The recommendations are the same either way.

The gear that earns its pocket space

A tri-fold Bluetooth keyboard. I use an iClever tri-fold Bluetooth keyboard. Folded, it is about the size of a phone. Open, it is a near full-size layout with a real Ctrl key, which matters more than anything else in a terminal. Ctrl-C, Ctrl-R, Ctrl-D, tab completion: that is the difference between using Termux and fighting it. The tradeoff: the two fold seams sit right where your fingers land, and the keys next to the hinges flex a little. Expect a week of mistyping before your hands adjust. It is not a mechanical keyboard and never will be.

A folding phone stand. A Lamicall adjustable phone stand turns any table into a desk. Without one you either lay the phone flat and hunch over it or prop it against a water bottle that slides. This one is aluminum, folds flat, and holds the phone at eye level in landscape. The tradeoff: it is a table accessory. On an actual chairlift you are holding the phone in one hand, which is why chairlift commits are one-line fixes, not features.

A 10000 mAh power bank. An Anker PowerCore 10000 is the boring, correct answer. The battery math is below. The tradeoff is speed: the basic model charges your phone slower than a wall charger, and the 20000 mAh versions are twice the weight for capacity I have never needed in a single day.

Touchscreen glove liners. Cheap touchscreen glove liners are what make winter use possible at all, and in Heber City the winter is long. They earn the spot because bare fingers at 15 degrees stop working before your ideas do. The tradeoff: precision drops hard. They are fine for scrolling logs and tapping enter, useless for real typing, and the conductive fingertips wear out after a season or two.

A small electronics pouch. A small electronics organizer pouch sounds like filler, but it is the reason the rest gets used. If the keyboard, cable, and power bank live in one zippered pouch, the whole setup goes in the backpack every time. If they live in three different drawers, they stay home. The tradeoff: it is a zippered bag. Any pouch works. Do not spend more than around $15.

Skip: a Bluetooth mouse. This is the one people buy and regret. A terminal does not need a pointer. Termux is keyboard-driven, touch handles the rare scroll, and a mouse is one more thing to pair, charge, and lose. I bought one. It has been in a drawer since week two.

The battery math

My phone has roughly a 4500 mAh battery. Termux with the screen at medium brightness costs me about 12 to 15 percent per hour, more if I am installing packages over LTE. So the phone alone is a 6 to 8 hour workday, minus everything else a phone has to do.

A 10000 mAh bank does not deliver 10000 mAh. After voltage conversion losses you get roughly 6000 to 6500 mAh into the phone, call it 1.3 full charges. Phone plus bank covers a full day of terminal work with margin. The keyboard is a rounding error; mine goes weeks between charges.

What this setup cannot do

I want to be straight about the ceiling. You are not debugging a 50,000 line codebase on a 6 inch screen, and no amount of gear fixes that.

What works: git operations, editing one or two files in vim or nano, quick Python and shell scripts, ssh, and shipping a small targeted fix. My chairlift commit was a one-file change I already understood before I sat down. What does not work: multi-file refactors, reading a large diff, or anything that needs a browser and an editor side by side. When I need more on the go, I ssh from Termux into my machine at home and let it do the heavy lifting. The phone is the terminal, not the computer.

One more limit: Termux is Android only. On iPhone, a-Shell and iSH exist but are more restricted. The keyboard and stand still help there.

If you only buy one thing, buy the folding keyboard. Everything else on this list makes phone coding nicer. The keyboard is what makes it possible.

$ share

community rating

$ ls ./comments

sign in or create an account to rate and comment.

no comments yet, be first.