Follow @0xCodila

F*CK LINUX

One developer wrote a whole operating system in 27 KB of raw assembly. You switch the computer on, and it goes straight into an AI chat. No Linux. No Windows. No apps.

  • 27 KBthe whole operating system
  • 0.09 sfrom power-on to ready
  • 0 GBno hard drive needed
  • +54%up to 54% faster than llama.cpp on the same processor

Everything here was built by Alexey Fateev (@superalesha). It is free and open source under the MIT license. This page explains it in plain words and shows you how to run it.

His Zero-App OS writing Flappy Bird live. No Linux. No apps. Video: @superalesha, watch on X (481K views)

Part 1: Understand it

What he built, why it is fast, and what it can’t do. Plain words, no code.

  1. 1. Understand it
  2. 2. Try it yourself
  3. 3. See how it works
  4. 4. Do it by hand
His 27 KB system running in a virtual machine on a home server with no disk
His 27 KB system on a home server with no disk at all.

How it works

A normal computer stacks many layers between the hardware and the AI. His computer keeps one tiny file. Scroll, and the drawing changes with the text.

  1. A normal computer

    Your hardware → Linux or Windows (millions of lines of code) → drivers, libraries, Python → an AI app like llama.cpp → the AI

  2. His computer

    Your hardware → one 27 KB file → the AI

Why it's faster

  1. Every line is written by hand for the processor's fast math instructions (AVX2). This hand-written engine gives most of the speed. Even as a normal Linux program, it is 18% to 36% faster than llama.cpp.

  2. Nothing else is running. There are no background apps and no system services competing for the processor.

  3. The AI model sits in memory in big 2 MB blocks instead of tiny 4 KB ones, so the processor spends less time looking up where the data is. Booting without Linux adds about 10% more speed.

So is Linux dead?

Short answer: no. Here is what is true and what isn’t, so you know exactly what you are getting.

What's true

  • His operating system boots straight into an AI. There is no Linux or Windows underneath it.
  • The whole system is 27 KB, smaller than one photo on your phone.
  • On the same processor, his AI answers up to 54% faster than the popular llama.cpp running on Linux.

What it isn't

  • It can't replace Linux on your computer. There is no browser, no internet and no files. It runs one AI and nothing else.
  • The AI is small (0.6 billion parameters). It is fast and fun, not ChatGPT.
  • You need Linux tools once, to build the USB stick. After that, the PC boots into the AI without them. An AI agent can do the build for you (prompts below).

Linux isn't dead. But this shows how little of it an AI actually needs.

Part 2: Try it yourself

Check your computer, pick one of 4 ways and copy one prompt into your AI agent. The agent does the install for you.

  1. 1. Understand it
  2. 2. Try it yourself
  3. 3. See how it works
  4. 4. Do it by hand
Your AI agent
You paste Prompt 1:
Goal: run the bare-metal AI operating system from https://github.com/alesha-pro/llm.asm (folder 02-baremetal-os) on my computer, so I can chat with it in a window.
…the agent works, then a small window opens with the AI chat.
You paste one prompt. The agent checks your computer, builds the system and asks before anything that needs your password.

What you need

You need three things: a computer that can run it, one of the 4 ways below, and the prompt for that way.

Before you start

  • You need a PC or laptop with an Intel processor from 2013 or newer, or an AMD processor from 2015 or newer (it uses the AVX2 instructions). For older Intel and AMD chips there is a slower build that runs on any 64-bit processor.
  • Apple Silicon Macs (M1 and newer) can't run it at real speed, because it is written for Intel and AMD chips.
  • There is no ready-made USB file for the 27 KB system. You build it once, and an AI agent can do that for you with the prompts below.
  • Not sure about your computer? See who can run what.

Pick one way

  1. Way 1: Try it in a window (easiest)

    Paste Prompt 1 into Claude Code, Antigravity or Codex. The agent checks your computer, builds the system and opens it in a window. On Windows it uses WSL (Microsoft's built-in Linux), which is where Linux is needed once.

    Prompt 1
  2. Way 2: Boot a PC from a USB stick

    1. Paste Prompt 2 into your agent. It builds the USB file (about 660 MB) and tests it first.
    2. Write the file to a USB stick of 1 GB or more with balenaEtcher or Rufus.
    3. Plug the stick into the PC, open the boot menu (usually F12, F11 or Esc while it starts) and choose the USB stick.
    4. Wait for the asm-llm> prompt and start typing.
    5. If the keyboard doesn't respond, turn on "Legacy USB support" in the BIOS settings.
    6. The system has no disk driver at all, so it can't touch your files. Pull out the stick and restart to get your normal system back.

    The PC needs at least 2 GB of memory.

    Prompt 2
  3. Way 3: The Zero-App OS, where the AI writes games

    Paste Prompt 3. This one runs in a virtual machine on a Linux host (or WSL on Windows) with 3 GB of memory for it. The model download is about 2.5 GB.

    Prompt 3
  4. Way 4: Check the speed claim yourself

    Paste Prompt 4. It races his 15 KB engine against llama.cpp on your own processor and gives you a table.

    Prompt 4

What is a prompt?

A prompt is a message you paste into an AI coding agent: Claude Code, Antigravity or Codex. The agent reads it, checks your computer and runs the commands for you. It asks you before any command that needs your password (sudo).

  1. Open your agent on the computer you want to use.
  2. Press Copy on the prompt for your way.
  3. Paste it and press Enter. Answer its questions. It stops when it needs you.

Copy the prompt for your way

Prompt 1: Run the 27 KB AI OS in a window

For Way 1. You get: the AI chat in a window on your computer.

Goal: run the bare-metal AI operating system from https://github.com/alesha-pro/llm.asm (folder 02-baremetal-os) on my computer, so I can chat with it in a window.

Use only the commands in the repository's README.md, 01-qwen3-inference/README.md and 02-baremetal-os/README.md. Don't invent commands.

1. Check my machine first: operating system, CPU model, whether the CPU has AVX2, FMA and F16C, free RAM and free disk space. If I'm on Windows, do everything inside WSL2 with Ubuntu. If I'm on an Apple Silicon Mac, stop and tell me it needs an Intel or AMD x86-64 processor.
2. Install the tools the READMEs list: nasm, binutils, qemu-system-x86, and python3 with numpy and huggingface_hub.
3. Download Qwen/Qwen3-0.6B and export it to models/qwen3-0.6b-q8_0.asmbin with --scale-dtype fp16, as the Phase 1 README shows.
4. Build with make os, check it with make os-check, then boot it in QEMU with a VGA window.
5. If /dev/kvm is missing, explain how to turn on virtualization for my exact machine, then stop.

Done means: a QEMU window shows the asm-llm> prompt, and you've told me the boot time and tokens per second it printed.
Ask me before any command that needs sudo. Otherwise keep going, and stop only if you can't continue without me.
End with three things: what you installed, the one command to start it again, and five things I can type to try it.
Prompt 2: Make a bootable USB stick

For Way 2. You get: a file for a USB stick. You write it to the stick yourself.

Goal: build a bootable USB image from https://github.com/alesha-pro/llm.asm so a PC boots straight into the AI chat, with no Linux or Windows.

Follow 02-baremetal-os/README.md, Option B (the hybrid BIOS+UEFI ISO). Use only commands from the repository's READMEs.

1. Ask me which PC will boot the stick and what processor it has. If it has AVX2, FMA and F16C, use the default build. If not, use the SSE2 build that the main README describes.
2. Build the model file (Qwen/Qwen3-0.6B exported with --scale-dtype fp16), then build the ISO with make os-iso and that model. If I'm on Windows, build inside WSL2 with Ubuntu.
3. Boot the ISO in QEMU once to prove it reaches the asm-llm> prompt.
4. Tell me where the ISO file is, how to write it to a USB stick with balenaEtcher or Rufus, and how to open the boot menu on my PC brand.

Done means: the ISO booted to the asm-llm> prompt in QEMU, and I have the file path and the USB steps.
Never write to any disk or USB drive yourself. I will flash the stick. Ask me before any command that needs sudo.
Prompt 3: Run the Zero-App OS (the AI writes games)

For Way 3. You get: the Zero-App OS in a window, ready for “flappy bird”.

Goal: run the Zero-App OS from https://github.com/alesha-pro/llm.asm (folder 06-zero-app-os), where I type "flappy bird" and the AI writes and runs the game.

Follow 06-zero-app-os/README.md only. It needs a Linux host with KVM and an x86-64 processor with AVX2, FMA and F16C. If I'm on Windows, use WSL2 with Ubuntu. If my machine can't run it, stop and tell me why.

1. Build the kernel with make (it needs nasm and binutils).
2. Download the Q8_0 weights (about 2.5 GB) from huggingface.co/alesha-pro/I-Deleted-Linux-ZeroApp-2B with the hf command from the README.
3. Boot it with the README's QEMU command (NVDIMM weight mapping, 3 GB of RAM). Give it as many cores as I have, up to 16.

Done means: the zero-app> prompt is on screen in a QEMU window.
Ask me before any command that needs sudo. End with the one command to start it again and the list of things I can type.
Prompt 4: Check the speed claim yourself

For Way 4. You get: a speed table, his engine against llama.cpp, on your own processor.

Goal: test his speed claim on my own machine. Build the 15 KB engine from https://github.com/alesha-pro/llm.asm (folder 01-qwen3-inference) and race it against llama.cpp on the same Qwen3-0.6B Q8_0 model, CPU only.

Use only commands from the repository's READMEs and llama.cpp's official docs. This runs on Linux, or WSL2 with Ubuntu on Windows.
Test 1, 4 and 8 threads (and 16 if I have them), 3 runs each, with the same prompt and the same number of generated tokens for both.

Done means: a table with tokens per second for both engines, the percent difference, and my CPU model.
Ask me before any command that needs sudo.

Full list of resources at the end of the page: All resources

Part 3: See how it works

Every step of the 27 KB computer and of the Zero-App OS, how he trained the AI, and all 6 projects, with his videos.

  1. 1. Understand it
  2. 2. Try it yourself
  3. 3. See how it works
  4. 4. Do it by hand
The Zero-App OS: assembly code written by the AI on the left, the Flappy Bird game running on the right
His Zero-App OS: the AI writes Flappy Bird on the left, the game runs on the right.

Inside the 27 KB computer

What happens when a PC boots his 27 KB system, one step at a time. The highlighted step matches the highlighted part of the drawing.

  1. You switch on the PC with his USB stick plugged in.

  2. In 74 to 94 milliseconds the system is ready. That is faster than a blink.

  3. It wakes up every core of the processor, so they all work on the AI together.

  4. It loads the AI model (Qwen3-0.6B, 614 MB) straight from memory. There is no hard drive and no file system.

  5. You see the asm-llm> prompt. You type a question, and the AI answers on screen.

  6. It remembers the conversation, and it can switch on a "thinking" mode with /think.

The AI OS booting on a virtual machine with no disk, straight into the chat. From his 1.5M-view post. Video: @superalesha · Watch on X (1.5M views)

Numbers that matter

  • 27,164 bytes for the whole system, written without C, Rust or any library.
  • 134.9 tokens per second on 16 processor cores, up to 54% faster than llama.cpp on the same chip.
  • 55 tokens per second on a 2014 Intel Xeon in a virtual machine with no disk at all.
  • Its answers match the reference PyTorch output token for token.

What it can't do: it has no browser, no internet, no files and no other programs. It is a computer that only runs the AI.

The boot screen of the 27 KB AI OS, with the chat
The boot screen with the chat. Post (1.5M views)

Inside the Zero-App OS

His second system has no apps at all. You type the name of a game, and the AI writes it and runs it.

  1. The computer starts with no hard drive and no apps.

  2. You type "flappy bird".

  3. The built-in AI (MiniCPM5-2B) writes about 1,600 tokens of assembly code, live on screen.

  4. A tiny translator inside the system turns that code into a program. Flappy Bird comes out at 1,074 bytes.

  5. The game runs inside a locked box (a sandbox), so it can't break the system.

  6. If the game crashes, the system catches the crash, shows the AI the exact broken line, and the AI fixes it in about 0.3 seconds with a 10 to 20 token patch.

The videos show the wins. In his own tests, the AI made a working app for about 1 prompt in 4, even with 6 tries each (24.7%).

Flappy Bird: 1,595 tokens of assembly, 1,074 bytes of machine code. Video: @superalesha · Watch on X (481K views)
Tetris: 2,524 tokens of assembly, 328 instructions, 1,366 bytes. Video: @superalesha · Watch on X (43K views)
Arkanoid: 1,243 tokens of assembly, 177 instructions, 755 bytes. Video: @superalesha · Watch on X (33K views)
The crash screen of a Zero-App OS program
The crash screen.
The Emerald Mandelbrot program running after the AI fixed it
After the AI fixed it.

How he taught the AI

A small AI doesn’t write working assembly by itself. This is how he taught it.

  1. First he showed it examples. That failed: 0 of 32 new prompts produced code that worked, because the AI got stuck repeating the same loop.

  2. Then he let it practice for rewards (reinforcement learning). Every program it wrote was really run inside one of 16 virtual machines. It got a reward only if the program built, survived 60 frames, drew colorful animation and reacted to the keyboard.

  3. After 90 practice rounds, 56% of new programs built on the first try.

  4. He trained it on 4 RTX 3090 gaming cards at home.

Charts of the reinforcement learning training run
Training metrics from his repository.

All 6 projects

Everything he built, from a 15 KB engine to an AI that fixes Linux while it runs. The badge on each card says where it runs.

  • No Linux boots on its own, with no operating system underneath.
  • Runs on Linux a normal Linux program.
  • Under Linux runs below Linux and protects it.
  • Inside Linux runs inside the Linux kernel.
Runs on Linux

The 15 KB AI engine

What: A program that runs the Qwen3-0.6B AI. Normal AI tools need gigabytes of software. This one is 15 KB, with zero libraries.

Why it matters: It is 18% to 36% faster than llama.cpp on the same processor, from 1 to 40 threads. Its answers match PyTorch on all 64 test tokens.

No Linux

The 27 KB AI operating system

What: Switch on the computer and it goes straight into an AI chat, with no Linux or Windows.

Why it matters: It is ready in under 0.1 seconds, runs with no hard drive, and is up to 54% faster than llama.cpp.

Runs on Linux

The 34 KB AI trainer

What: It trains a small GPT from zero, written entirely in assembly, and draws the learning curve live in your terminal.

Why it matters: In 4 minutes it learns to write Shakespeare-style text. Its math matches PyTorch exactly.

Under Linux

The kernel surgeon (75 KB)

What: An AI that sits underneath Linux. When Linux is about to crash, the AI freezes it, finds the broken instruction, rewrites it in memory, and lets Linux keep running. There is no reboot.

Why it matters: It fixed 97.5% of 122 crash cases it had never seen, with 0 dangerous fixes. The same model before training managed 16%.

Note: It needs an AMD processor with virtualization (SVM).

Inside Linux

The 21 KB secret guard

What: A tiny AI inside the Linux kernel that watches AI agents. If an agent reads your secret keys and then tries to send them out, it blocks the connection before a single byte leaves.

Why it matters: It decides in 5.65 microseconds. It blocked 0 of 1,000 normal developer workflows by mistake and caught 75% of sneaky multi-step attempts. A simple rule broke 500 of the same 1,000 normal workflows.

No Linux

The Zero-App OS (113 KB)

What: A computer with zero apps. You type what you want, and the AI writes the app in raw assembly and runs it.

Why it matters: It is 19,138 lines written by hand, with 0 lines of C. It beats the GCC compiler's best code by 11.6% on reading the prompt and 9.6% on writing the answer.

Bonus: Claude vs Gemini, in raw machine code

What: He gave Claude Opus 5.5 and Gemini 4 Neon the same task: write the whole AI engine as raw hex bytes, with no compiler and no assembler. Both beat llama.cpp.

  • Claude Opus 5.5: 7,331 bytes, finished in about 65 minutes, cost $21.40, up to 28.9% faster than llama.cpp.
  • Gemini 4 Neon: 10,752 bytes, took 1 hour 43 minutes, cost $16.72, up to 81.4% faster than llama.cpp.
The engine build: a terminal runs make clean && make inference and the build finishes. Video: @superalesha · Watch on X (64K views)
Left: normal Linux crashes. Right: the same crash under his AI surgeon, and Linux keeps running. Video: @superalesha · Watch on X (792K views)
4 uncensored AI agents vs a 21 KB neural net: 4-0. Video: @superalesha · Watch on X (101K views)
How the guard works, live. Video: @superalesha · Watch on X (67K views)
Gemini 4 Neon vs Claude Opus 5.5, both writing an AI engine in raw machine code. Video: @superalesha · Watch on X (114K views)

How he built it

In his own words (Nov 29):

“Who do you think helped me ship the bare-metal assembly OS (1.3M views), the Ring -1 hypervisor (422K views), and the Linux 6.12 eBPF neural net? Fable or Opus? They would have hit me with a safety lecture 2 seconds after I typed the prompt. It was Neon.”

Alexey Fateev, Nov 29 · on X

Part 4: Do it by hand

The full install guide with every command, for people who would rather type it themselves.

  1. 1. Understand it
  2. 2. Try it yourself
  3. 3. See how it works
  4. 4. Do it by hand
Ubuntu terminal
git clone https://github.com/alesha-pro/llm.asm.git
cd llm.asm
make os FAST_Q8=1
make os-check
make os-run MODEL=models/qwen3-0.6b-q8_0.asmbin SMP=16
Five of the commands from the guide below. Every one comes from his READMEs.

The full install guide

The same thing your AI agent does with a prompt, typed by hand. Use it if you want to run every command yourself, or if something goes wrong.

Who can run what

ProjectWindows 11Windows 10Linux PCA real PC from a USB stickMac with Apple Silicon
02 · 27 KB AI OS (main)Yes, through WSL2Build in WSL2, then boot from USBYesYes (build the USB file once)No
06 · Zero-App OS (AI writes games)Yes, through WSL2 with KVMNo (WSL2 on Windows 10 has no KVM)Yes, with KVMNot documented (see Home server below)No
01 · 15 KB engineYes, through WSL2Yes, through WSL2YesNoNo (jpr5's ARM64 port runs on Linux for ARM)
03 · 34 KB trainerYes, through WSL2Yes, through WSL2YesNoNo
04 · Kernel surgeonNoNoAMD processors only, experts onlyNoNo
05 · Secret guardNoNoLinux 6.12 with BPF LSM, experts onlyNoNo

This guide covers 02 (chat in a window, then a USB stick) and 06 (games in a window). Projects 01 and 03 get a short block at the end. For projects 04 and 05, read their READMEs: the kernel surgeon and the secret guard.

Check your processor

His code needs an x86-64 processor with AVX2, FMA and F16C. His README says that means Intel Haswell (2013) or AMD Excavator (2015) or newer.

On Linux or inside WSL2, run:

grep -o -w 'avx2\|fma\|f16c' /proc/cpuinfo | sort -u

You should see three lines: avx2, f16c and fma.

No AVX2? The 27 KB OS (project 02) has a slower build for any 64-bit Intel or AMD processor (Core 2, Athlon 64 and newer). Use make BUILD=build-sse2 SSE2=1 os instead of make os. The other projects need AVX2.

Apple Silicon Macs (M1 and newer) can't run it, because the code is written for Intel and AMD processors.

Get Linux tools (one time only)

This is the only place Linux is needed. You use it once to build things.

Windows 10 or 11 (general tip, Microsoft's official command):

  1. Open PowerShell as administrator.
  2. Run wsl --install
  3. Restart the PC, open "Ubuntu" from the Start menu, and pick a username and password.

Windows 11 only, for running in a window (general tip): WSL2 on Windows 11 supports nested virtualization, which gives you /dev/kvm. Check it inside Ubuntu:

ls -l /dev/kvm
  • If it exists but says "permission denied" when you run QEMU: run sudo usermod -aG kvm $USER, then close and reopen the Ubuntu window.
  • If it doesn't exist: turn on virtualization (Intel VT-x, or AMD-V / SVM) in your BIOS. On Windows 10 there is no KVM in WSL2, so build there and use the USB stick path (Step 6).

Linux (Ubuntu or Debian): you already have everything you need.

Install the build tools

His READMEs list nasm, binutils and qemu-system-x86, plus Python with numpy and huggingface_hub. git, make and python3-venv are added here so the commands below work on a fresh Ubuntu.

sudo apt update
sudo apt install -y git make nasm binutils qemu-system-x86 python3 python3-venv

Python packages (general tip: new Ubuntu versions block pip outside a virtual environment, so make one):

python3 -m venv ~/llmasm-venv
source ~/llmasm-venv/bin/activate
pip install numpy huggingface_hub

Run source ~/llmasm-venv/bin/activate again each time you open a new terminal.

Download his code

git clone https://github.com/alesha-pro/llm.asm.git
cd llm.asm

Download the AI and convert it (one time)

This downloads Qwen3-0.6B from Hugging Face and packs it into his format (a 614 MB file).

mkdir -p models
hf download Qwen/Qwen3-0.6B \
  config.json model.safetensors tokenizer.json \
  --local-dir models/qwen3-0.6b-bf16

python3 scripts/export_weights.py \
  --model-dir models/qwen3-0.6b-bf16 \
  --out models/qwen3-0.6b-q8_0.asmbin \
  --scale-dtype fp16

If hf is not found, his README says to use huggingface-cli download instead.

Build the 27 KB OS and run it in a window

Build it and check the size:

make os FAST_Q8=1
make os-check

The first line of the check should show 27164 bytes for build/asm-llm-os.elf.

Run it in the terminal (the chat appears right there):

make os-run MODEL=models/qwen3-0.6b-q8_0.asmbin SMP=16

Set SMP to the number of processor cores you have (for example SMP=4 or SMP=8).

Run it with a real VGA window and keyboard (on Windows 11 the window opens through WSLg):

qemu-system-x86_64 -enable-kvm -cpu host -m 2G -smp 16 \
  -kernel build/asm-llm-os.elf \
  -initrd models/qwen3-0.6b-q8_0.asmbin \
  -vga std -serial stdio

Ask one question at boot and switch off when done:

make os-run MODEL=models/qwen3-0.6b-q8_0.asmbin SMP=16 \
  CMDLINE='prompt="Explain how a CPU cache works in 3 concise sentences." max_tokens=64 think=0 shutdown=1'

You'll see the asm-llm> prompt. Type a message and press Enter. Type /halt to switch it off. (General tip: in terminal mode, Ctrl+A and then X also closes QEMU.)

Make a USB stick and boot a real PC with no Linux

Install the ISO tools:

sudo apt install -y grub-pc-bin grub-efi-amd64-bin grub-common mtools xorriso

Build the bootable file (BIOS and UEFI, about 661 MB, the model is inside):

make os-iso MODEL=models/qwen3-0.6b-q8_0.asmbin

The file is build/asm-llm-os.iso. For an old processor without AVX2, build with make BUILD=build-sse2 SSE2=1 os-iso MODEL=models/qwen3-0.6b-q8_0.asmbin; the file then lands in build-sse2/asm-llm-os.iso. (His README documents the SSE2 build only for os. The Makefile uses the same switches for os-iso, but he hasn't published a test of it.)

Test it in QEMU before you touch a USB stick (needs KVM):

qemu-system-x86_64 -enable-kvm -cpu host -m 2G -smp 16 \
  -cdrom build/asm-llm-os.iso -nographic

On Windows, copy the file out of WSL (general tip; use your Windows user name):

cp build/asm-llm-os.iso /mnt/c/Users/YOUR_WINDOWS_NAME/Downloads/

Write it to a USB stick of 1 GB or more. His README names dd, Rufus and balenaEtcher.

  • balenaEtcher (easiest): Flash from file, pick the ISO, pick the USB stick, Flash.
  • Rufus: pick the ISO. General tip: if Rufus asks how to write it, choose DD Image mode.

Boot the PC from the stick:

  1. Plug in the stick and restart the PC.
  2. Open the boot menu while it starts. General tip: the key is usually F12 (Dell, Lenovo), F9 (HP), F8 (Asus), F11 (MSI) or Esc.
  3. Choose the USB stick. You land at the asm-llm> prompt.

If something goes wrong:

  • The keyboard doesn't type: his README says keyboard input on real UEFI boards depends on the firmware's legacy USB emulation. Turn on "Legacy USB support" in the BIOS.
  • The stick won't boot at all: general tip, turn off Secure Boot in the BIOS, or boot in Legacy / CSM mode. His GRUB image is not signed for Secure Boot.
  • Nothing on screen: his README says the serial port (COM1) always works, if the PC has one.

The PC needs at least 2 GB of memory (614 MB model plus a 449 MB work area). The system has no disk driver, so it never touches the PC's drives. Pull the stick and restart to get the normal system back.

The Zero-App OS, where the AI writes games (project 06)

Needs a Linux host or Windows 11 WSL2 with KVM, a processor with AVX2, FMA and F16C, and a window for the graphics. His VM gets 3 GB of memory, and the model file is 2.5 GB.

cd 06-zero-app-os
make

hf download alesha-pro/I-Deleted-Linux-ZeroApp-2B \
  zappm/minicpm5-2b-zeroapp-v21-q8_0.zappm \
  --local-dir .

qemu-system-x86_64 -enable-kvm -cpu host \
  -machine pc,nvdimm=on \
  -smp 16 \
  -m 3G,slots=2,maxmem=8G \
  -vga std \
  -object memory-backend-file,id=zmodel,mem-path=zappm/minicpm5-2b-zeroapp-v21-q8_0.zappm,size=2684620800,readonly=on \
  -device nvdimm,id=nv1,memdev=zmodel,unarmed=on \
  -kernel build/zero-app-os.elf

At the zero-app> prompt:

  • Type flappy bird, tetris, arkanoid, pong, dino or falling sand and press Enter.
  • Press 1 to 5 and Enter to watch the AI repair a crashing program.
  • Press Esc to stop the app.

What to expect: on his 20-core machine, Flappy Bird took 45 seconds to write (1,595 tokens at 35.3 tokens per second, from his screenshot). With fewer cores it takes longer. About 1 prompt in 4 gives a working game (his own test, 24.7% with 6 tries).

Home server (Proxmox VE)

The 27 KB OS (02): upload build/asm-llm-os.iso to the node's ISO storage, then on the Proxmox host:

qm create 250 \
  --name asm-llm-os \
  --machine pc \
  --bios seabios \
  --cpu host \
  --cores 12 \
  --memory 2048 \
  --balloon 0 \
  --vga std \
  --serial0 socket \
  --ide2 local:iso/asm-llm-os.iso,media=cdrom \
  --boot order=ide2

qm start 250

Use the noVNC console in the web UI, or qm terminal 250.

The Zero-App OS (06): copy minicpm5-2b-zeroapp-v21-q8_0.zappm and zero-app-os.elf to /var/lib/vz/zero-app-os/ on the host, create a VM with a 0 GB disk, cpu host, 16 cores, 3072 MB memory, vga std, bios seabios, and add this line to the VM config:

args: -machine type=pc+pve0,nvdimm=on -m 3G,slots=2,maxmem=8G -object memory-backend-file,id=zmodel,mem-path=/var/lib/vz/zero-app-os/minicpm5-2b-zeroapp-v21-q8_0.zappm,size=2684620800,readonly=on -device nvdimm,id=nv1,memdev=zmodel,unarmed=on -kernel /var/lib/vz/zero-app-os/zero-app-os.elf

Zero-App OS from a USB stick: not in his README. His 06 Makefile has a make iso-full MODEL=... target that puts the 2.5 GB model inside the ISO, and his code checks for a model loaded that way before it looks for NVDIMM. So it may work on real hardware, but he hasn't published it.

The 15 KB engine and the 34 KB trainer (Linux programs)

The 15 KB engine (01), after Steps 2 to 4:

make inference test-math FAST_Q8=1
make check
./build/asm-llm -m models/qwen3-0.6b-q8_0.asmbin --chat -t 16

The 34 KB trainer (03):

mkdir -p data checkpoints
curl -fsSL https://raw.githubusercontent.com/karpathy/char-rnn/master/data/tinyshakespeare/input.txt \
  -o data/tinyshakespeare.txt
make train
./build/asm-gpt-train --data data/tinyshakespeare.txt --steps 400 --seq 128 -t 16 --save checkpoints/shakespeare.ckpt

Troubleshooting (general tips)

  • "Could not access KVM kernel module" or /dev/kvm missing: virtualization is off in the BIOS, or you are on Windows 10 WSL2. Use the USB stick path.
  • "externally-managed-environment" from pip: create the virtual environment from Step 2.
  • "hf: command not found": activate the virtual environment, or use huggingface-cli download.
  • grub-mkrescue errors: install the packages at the top of Step 6.
  • The answers are short or simple: it is a 0.6 billion parameter model. It shows the speed, not ChatGPT-level answers.

What to type

Once the prompt is on screen, this is what you can type.

In the 27 KB AI OS (asm-llm> prompt)

  • Type any message and press Enter to chat.
  • /think turns on reasoning mode. /nothink turns it off.
  • /more continues an answer that got cut off.
  • /clear starts a new conversation.
  • /bench runs a built-in speed test.
  • /halt switches the computer off. /reboot restarts it.
  • /help shows every command.

In the Zero-App OS (zero-app> prompt)

  • Type flappy bird, tetris, arkanoid, pong, dino or falling sand and press Enter. The AI writes the game and runs it.
  • Press 1 to 5 and Enter to watch the AI repair a crashing program: Ocean Waves, Emerald Mandelbrot, Cyan Matrix Rain, Blue Mandelbrot, Canary Crossing.
  • Press Esc at any time to stop the app and go back.

All resources

The main links from this page in one place.

Questions

Is Linux dead?

No. His system runs one AI and nothing else. But it proves an AI doesn't need millions of lines of operating system underneath it.

Can I use it as my everyday computer?

No. It has no internet, no browser, no files and no apps, apart from the games the AI writes in the Zero-App OS.

Will it run on my Mac?

Not on Apple Silicon (M1 and newer), because it is written for Intel and AMD processors. jpr5's ARM64 port is the closest thing for Apple chips.

Is it safe to boot on my PC?

It runs from memory and has no disk driver, so it can't change your files. Pull out the USB stick and restart to get your normal system back.

Why is it faster than llama.cpp?

Mostly because of his hand-written engine. Even as a normal Linux program it is 18% to 36% faster. Booting with no operating system adds about 10% more.

Who made this?

Alexey Fateev (@superalesha). He runs everything on 4 RTX 3090 graphics cards at home. This page only explains his work.

Every project on this page was built by Alexey Fateev (@superalesha) and released under the MIT license. This page explains his work and is not affiliated with him. Numbers come from his repository and his posts, as of Dec 1, 2026.