Coding on iPad: how the setup works
An iPad cannot run your compiler, your database or Docker the way a laptop does. It does not need to. The trick developers use is to keep the work on a machine that can, and use the iPad as the best screen and keyboard you own.
- A machine that runs the code: a VPS, a home server or your Mac.
- An SSH app on the iPad, with a proper key bar and keyboard support.
- tmux on the machine, so work survives a closed cover.
- An editor in the terminal, such as Neovim, Helix or micro.
- An SSH tunnel to preview web apps in Safari.
The result: same languages, same tools, same Git as on a computer, and a battery that lasts the day.
Step 1: pick the machine that does the work
- A VPS is always on and reachable from anywhere. A small one handles most web and backend projects. Secure it first with our Linux server security checklist.
- Your Mac at home works too: turn on Remote Login in System Settings, General, Sharing. Reaching it from outside needs a VPN or a tunnel; see how to access a home server remotely.
- A Raspberry Pi is a cheap, quiet option for learning and small projects.
Install your toolchain there as on any computer: git, your language, tmux and an editor.
Step 2: set up the iPad for SSH coding
- Add the server in your SSH app, or import your
~/.ssh/configfrom the Mac. In Wardterm, each Host becomes a server with its user, key and jump hosts (import hosts). - Create a key on the iPad. A key in the secure chip, confirmed with Face ID or Touch ID, never leaves the device and needs no password typing.
- Add the public key to
~/.ssh/authorized_keyson the server. - Turn on the keyboard tweaks: Caps Lock as Escape (vim users) or Control (Emacs and tmux users), and Option as Meta for shell shortcuts like Option+B.
The Wardterm key bar adds Esc, Ctrl, Tab and arrows above the on-screen keyboard, and hides when a hardware keyboard is connected. See keyboard and gestures.
Which editor is best for coding on iPad over SSH?
Anything that runs in a terminal. Three common choices:
- Neovim: fast, endlessly configurable, with language servers for completion and errors. The learning curve pays off on an iPad, where the mouse matters less.
- Helix: modal like vim, with language support built in and almost no config.
- micro or nano: familiar shortcuts such as Ctrl+S, good for quick edits.
For small changes to a config file you can also skip the terminal: the Wardterm file panel opens a file in a built-in editor with colours, find and replace, and earlier versions to restore. Our guide to editing remote files over SSH compares the options.
What about VS Code?
VS Code does not run as an iPad app, but it runs in Safari: start a remote tunnel on your machine with code tunnel and open vscode.dev, or host code-server yourself. It works, with the usual limits of a big web app in a mobile browser. Many people end up using it for reviews and a terminal editor for typing.
Step 3: keep your work alive with tmux
iPadOS pauses apps in the background, and a paused app loses its connection. tmux on the server means it does not matter:
tmux new -A -s dev
That line attaches to the session dev or creates it. Put your editor in one window, a shell in another, a test runner in a pane. Close the cover, open it on the train, attach again. Our tmux cheat sheet has the keys.
In Wardterm, save tmux new -A -s dev as the server's startup command, and each connection lands in the same session. Open sessions also stay connected while you switch apps, and Mosh keeps them through a change of network. It is part of every plan.
How do you preview a web app when coding on iPad?
Your dev server runs on the remote machine, say on port 3000. An SSH local tunnel brings it to the iPad:
ssh -L 3000:localhost:3000 dev@your-server
Then open http://localhost:3000 in Safari. In Wardterm, save the tunnel once (local, port 3000 to localhost:3000 through your server) and start it with a tap. Keep the app open while you use it, for example with Safari next to it in Split View. See port forwarding.
Can you use AI coding agents when coding on iPad?
This is where the iPad shines. An agent such as Claude Code, Codex or Gemini CLI does the heavy typing on the server, and you review, steer and approve. The iPad's screen is large enough to read diffs, and the battery lasts through a long session.
Run the agent inside tmux so it keeps working when you put the iPad down. Attach to it again from the iPad, the iPhone or the Mac with tmux attach. See our guide to Claude Code from iPhone.
A day of coding on iPad: what it looks like
- Open Wardterm and connect to
dev. The startup command attaches you to yesterday's tmux session, still running. - Split the tab side by side: Neovim on the left, tests on the right (Cmd+D).
- Start the dev server tunnel and check the page in Safari.
- Hand a refactor to Claude Code in another tmux window, and keep coding.
- Glance at the Server tab when the build feels slow: CPU, memory and disk, live.
- Commit, push, close the cover. Everything waits on the server.
Your iPad, ready for real work
SSH, Mosh, tunnels and files in the Free plan. Try Pro free to sync your servers and keys, end-to-end encrypted, to your Mac, iPhone and every other device.
The Free plan costs nothing. Pro is €6.99 or $8.49 a month before tax, and you can try it for 14 days with no card.
Servers4
deploy@10.20.0.30Productiondeploy@10.20.0.11Productiondeploy@10.20.0.12Productionredis@cache-eu.internalServers4
Questions
Can you code on an iPad?
Yes. The easiest way is to run the code on a server or Mac and reach it over SSH, so you use the same languages and tools as on a computer. Swift Playgrounds also builds Swift apps on the iPad itself.
Is an iPad good for programming?
For remote work, yes: long battery, a great screen and a good keyboard case. It is less suited to work that needs desktop programs running locally, such as Xcode or Docker on the device.
Can I run VS Code on an iPad?
Not as an app, but you can open VS Code in Safari with vscode.dev and a remote tunnel, or with code-server on your own machine. Many people prefer a terminal editor over SSH, which works offline from the browser.
Which editor should I use for coding on iPad over SSH?
Neovim and Helix are popular for their keyboard focus, and nano or micro are easier to start with. Any editor that runs in a terminal works.
How do I get an Escape key on an iPad keyboard?
Map Caps Lock to Escape in your SSH app, or use Cmd+period on many apps. In Wardterm, Caps Lock can act as Escape or Control, and the key bar always has Esc.
How do I preview a web app when coding on iPad?
Forward the port with an SSH tunnel, such as local port 3000 to the server's port 3000, and open http://localhost:3000 in Safari while the SSH app stays open, for example side by side in Split View.
Do I need a server, or can I use my Mac?
Either. A Mac at home with Remote Login on is a fine dev box. A small VPS is always on and reachable from anywhere. See how to turn on SSH on a Mac.
Can I use AI coding agents from an iPad?
Yes. Run Claude Code, Codex or Gemini CLI on the server inside tmux and attach to it from any device.
Sources
Each page was read on the date shown. Prices and features change, so check the maker's page before you decide.
- Apple, Swift Playgrounds, read on
- VS Code docs, remote tunnels, read on
- code-server, source repository, read on
- Neovim, home page, read on
- Helix editor, home page, read on
- Wardterm docs, keyboard and gestures on iPhone and iPad, read on
- Wardterm docs, port forwarding, read on