Short version: to learn commands or run small scripts on the phone itself, install a-Shell or iSH (both free). To do real work, use an SSH client and connect to a Mac, a Linux box or a server. No App Store app can open the iPhone's own system shell.

The honest answer

Yes, you can use a terminal on an iPhone, but only inside an app you install. A Mac ships with Terminal, which opens a shell on the Mac itself. An iPhone ships with nothing like it. We checked Apple's iPhone User Guide for iOS 27 in October 2026: it lists no Terminal app, and there is no setting that turns one on. So "how do I open Terminal on iPhone" has no answer in the Mac sense; there is nothing to open until you add an app.

The reason is the sandbox. Apple's platform security guide says all third-party apps are sandboxed, each gets its own home directory, and none can modify other apps' data or make changes to the device. No App Store app can hand you the phone's system shell. When people say "terminal on iPhone" they mean one of three things:

  1. A local shell that runs inside an app on the phone.
  2. An SSH client, which shows you the terminal of another computer.
  3. An app built for one job on a remote machine, such as watching coding agents.

1. Local shells: a-Shell and iSH

These work with no network and no second computer. Both are free and open source.

a-Shell is a set of Unix commands built for iOS. Its App Store listing says most commands are compiled to native Arm64, so they run at full speed. It includes Python, Lua, Perl, JavaScript, C, C++ and TeX, plus vim, grep, awk, sed, curl, scp and a git client called lg2, and it can be driven from Apple's Shortcuts app. C and C++ are the exception to "native": clang produces WebAssembly, which a-Shell then runs.

Its limits, from the project's README: you can only write in ~/Documents, ~/Library and ~/tmp; pip install works only for pure-Python packages; WebAssembly programs get no sockets and no fork; and the pkg command installs a fixed list of precompiled WebAssembly tools, not arbitrary software.

iSH takes the opposite approach. It is a usermode x86 emulator with system call translation, running Alpine Linux, so you get a real Linux userland and a package manager: apk add python3 works. This is the closest thing to a Linux terminal on an iPhone.

The cost is speed and compatibility. The iSH FAQ explains that it emulates 32-bit x86 and cannot run 64-bit executables, and that it has to interpret every instruction because iOS exposes no hardware virtualisation to apps and JIT compilation is not available to App Store apps. The project's own compatibility table marks Python and pip as working but slow, and go build as not working. The App Store version was last updated in May 2023 (1.3.2); the app is still listed, and the project says it will always be free.

Both apps live inside the sandbox described above. They cannot see other apps, system files or processes, beyond folders you explicitly share with them.

2. SSH clients: another computer's terminal

An SSH client runs nothing on the phone. The shell, your files, compilers and packages are all on the other computer; the phone is a screen and keyboard for it. For anything beyond practice this is the better setup, because the other machine has none of the limits above.

  • Termius runs on iOS, Android and desktop. Its App Store listing says the free Starter plan covers SSH, Mosh, Telnet, port forwarding and SFTP. The paid Pro plan adds an encrypted vault that syncs across devices; the pricing page lists it at $10 a month billed annually.
  • Blink Shell is for iPhone and iPad, with SSH and Mosh and some local Unix tools. Its site says two weeks free, then $19.99 a year.
  • Prompt 3 from Panic runs on iPhone, iPad, Mac and Vision Pro and supports SSH, Mosh, Eternal Terminal and Telnet. It is a free download with in-app purchases; the US App Store lists $9.99 for the annual option and $49.99 one time. We could not confirm from Panic's pages what the free download allows before you pay.

a-Shell and iSH can also run a command-line ssh, which is fine for a quick login. A dedicated client is nicer for saved hosts, keys and an extra key row.

The app is half of it. The computer has to accept SSH and be reachable from wherever you are. For a Mac at home that means turning on Remote Login and putting both devices on a private network; the steps are in Tailscale SSH from iPhone or Android to your Mac, and the usual errors are in Fix SSH from your phone. If you are choosing between Mosh and SSH, see Mosh vs SSH.

3. Apps built for one job

A full terminal on a phone screen is awkward for long sessions, so some apps wrap one task in a phone-shaped interface. The current example is coding agents. Anthropic's Remote Control connects the Claude app to a Claude Code session running on your own machine. Moshi is a terminal over SSH, Mosh or Eternal Terminal designed around agents. Melta, which is coming soon to the App Store and Google Play, connects over SSH to a Mac or Linux computer running Herdr and shows each agent pane with its status, a chat view with Allow and Deny buttons, and a terminal view with a key bar. It is not a general SSH client: it needs Herdr on the computer.

The options are compared in the best phone apps for Claude Code and Codex.

Which to pick

Your goalUseWhy
Learn commands (ls, cd, grep, pipes)a-Shell or iSHFree, offline, nothing to break
Run Python or shell scripts on the phonea-ShellNative speed, works with Shortcuts
Practise Linux with a package manageriSHReal Alpine userland, but slow
Administer a serverAn SSH clientThe work happens on the server
Use your Mac's terminal from your phoneAn SSH client, plus Remote Login and TailscaleThe Mac's own shell, files and tools
Check on coding agentsAn agent appStatus and approvals without typing

Android, for contrast

Android allows more. Termux is a terminal emulator and Linux environment that works without rooting the phone and can be extended with packages. Where you install it from matters: the project's README points to F-Droid or GitHub for the stable build, and describes the Google Play build (Android 11 and later) as experimental, with missing functionality and bugs. The README also warns that Termux may be unstable on Android 12 and later, because the system kills processes beyond a set limit or using too much CPU.

Common questions

Is there a terminal for iPhone? Not from Apple. There are terminal apps: a-Shell and iSH run a shell on the phone, and SSH clients such as Termius, Blink Shell and Prompt 3 connect to another computer.

How do I open Terminal on an iPhone? You can't, because iOS does not include one. Install one of the apps above from the App Store and open that.

Can I run a Linux terminal on an iPhone? iSH gives you Alpine Linux under emulation, with apk for packages. It runs 32-bit x86 software only and is slow for heavy work. For a full Linux system, SSH into a real one.

How do I use my Mac's terminal from my iPhone? Turn on Remote Login on the Mac, install an SSH client on the phone, and connect over your home Wi-Fi or Tailscale. The step-by-step guide takes about ten minutes.

Are iPhone terminal apps free? a-Shell and iSH are free. Termius has a free plan. Blink Shell is a yearly subscription after a trial, and Prompt 3 has in-app purchases.

Sources