Linux on your phone, inside Moshi.
Moshi is a terminal and coding-agent app for iPhone and iPad: it keeps your shell alive through network changes and brings Claude Code, Codex and other agents on your own machine to your phone. No machine handy? The sandbox boots a real Linux kernel right on the phone, so you can try Moshi's terminal before connecting anything.
Get Moshi from getmoshi.app, then pick Just exploring in onboarding, or Try Moshi on a real Linux on Home. It needs iOS 27 or later.
You land in an Alpine Linux login shell, drawn by Moshi's own terminal (Ghostty). Things to try:
| Command | What it shows |
|---|---|
moshi-tour |
a short tour: hashing, maths and disk speed, a live truecolor plasma, the GPU, an inline image, styles, Unicode and links |
moshi-gl |
a cube drawn with OpenGL ES on the phone's GPU, each frame shown as an image |
htop |
live processes (q quits) |
tmux |
panes and windows (Ctrl-b % splits) |
apk add git |
install any Alpine package |
- It's online. The guest's network goes through the phone, so
apk addand downloads just work. - Your files stay. Home and everything you install are saved on the phone and are there next time. Reset the sandbox from the app to start over.
- It runs on the phone. Nothing here runs on a server: the kernel, the shell and your files never leave the device.
- GPU. OpenGL ES 3.0 runs on the phone's GPU through WebGL2
(
moshi-gl --infonames it), and Vulkan through WebGPU (vulkaninfo; a real device, not the Simulator).
When you're ready, tap Connect your own machine and point Moshi at your real computer.
The kernel is Linux compiled to WebAssembly by
unkernel, running an unmodified aarch64
Alpine userland. GL goes through Mesa's virgl driver, built for the sandbox
(/opt/moshi-gl), to unkernel's virglrenderer on the page's WebGL2. The app loads v2/index.html from this site
(sandbox.getmoshi.app) in a hidden WebView; the page boots the kernel,
starts a login shell on a pty and streams it to Moshi's terminal. This
repository is what that site serves, published from the Moshi app's source.
v2/: unkernel's uniprocessor kernel (kernel-*.wasm, from unkernel
v0.2.0-261128-df6d726, sha256 cd0ae1e06319c3fb14752743a7414572886c693584fba01f55fb996b41eb8b16) and the distro image
(image-*.erofs, which includes our Mesa build in /opt/moshi-gl); in each build folder, the page with unkernel's web SDK
(sandbox.js) and unkernel's GPU renderers for guest programs: GL on
WebGL2 (virgl.mjs, virgl.wasm: virglrenderer) and Vulkan on WebGPU
(kwvk-naga.wasm: naga).
The kernel and much of the image are free software under the GPL and other licenses. Their source:
- Kernel (Linux with unkernel's patches) and unkernel's base system: unkernel's release v0.2.0-261128-df6d726 and its source at that tag, https://github.com/pithings/unkernel/tree/v0.2.0-261128-df6d726. Licenses and notices: licenses/.
- The distro image: unkernel's Alpine image from that release
(sha256
9d6c94d4bede21d514c1648d82a148b9033445de5e9cf2016ac1ba272b8ce961), plus the packages listed in source/v2/packages.txt, built by source/v2/image/ (build.sh; our files are inrootfs/). Each package's source is Alpine's aports at that version, with the upstream sources itsAPKBUILDnames. - Mesa (
/opt/moshi-glin the image, MIT and others): Mesa 26.1.6, https://archive.mesa3d.org/mesa-26.1.6.tar.xz (sha2565296b88a0f1e012e2cb9ada150a2bbadf728ca81e5a4fb2ab43c83a4d2158606), unmodified, configured and built by source/v2/image/gl/build.sh, which also buildsmoshi-glfrom source/v2/image/gl/moshi-gl.c.
Older versions, still served to the app versions that load them, each have
their own: v1/ in source/v1/ (its image/pins.sh names the unkernel release, Alpine image and Mesa it used; packages.txt its packages).
To get any of this source from us directly, open an issue in this repository.
- alpine-baselayout-3.7.2-r1
- alpine-baselayout-data-3.7.2-r1
- alpine-keys-2.6-r0
- alpine-release-3.24.4-r0
- apk-tools-3.0.9-r0
- busybox-1.37.0-r32
- busybox-binsh-1.37.0-r32
- busybox-extras-1.37.0-r32
- ca-certificates-bundle-20261020-r0
- doas-6.8.2-r8
- doas-sudo-shim-0.2.0-r0
- expat-2.11.0-r0
- htop-3.5.3-r0
- hwdata-pci-0.408-r0
- libapk-3.0.9-r0
- libbsd-0.12.2-r0
- libcrypto3-3.5.9-r0
- libdrm-2.4.134-r0
- libevent-2.1.13-r0
- libexpat-2.11.0-r0
- libffi-3.8.2-r0
- libgcc-15.2.0-r5
- libmd-1.2.0-r0
- libncursesw-6.6_p20260516-r0
- libpciaccess-0.19-r0
- libssl3-3.5.9-r0
- libstdc++-15.2.0-r5
- libx11-1.8.14-r0
- libxau-1.0.12-r0
- libxcb-1.17.0-r2
- libxdmcp-1.1.5-r1
- lsof-4.99.6-r0
- musl-1.2.6-r3
- musl-utils-1.2.6-r3
- ncurses-terminfo-base-6.6_p20260516-r0
- scanelf-1.3.9-r1
- ssl_client-1.37.0-r32
- tmux-3.7c-r0
- vulkan-loader-1.4.347-r0
- vulkan-tools-1.4.347-r0
- wayland-libs-client-1.25.0-r0
- zlib-1.3.2-r1