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 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.
A normal computer
Your hardware → Linux or Windows (millions of lines of code) → drivers, libraries, Python → an AI app like llama.cpp → the AI
His computer
Your hardware → one 27 KB file → the AI
Why it's faster
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.
Nothing else is running. There are no background apps and no system services competing for the processor.
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.
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.
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.
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).
Open your agent on the computer you want to use.
Press Copy on the prompt for your way.
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.
His second system has no apps at all. You type the name of a game, and the AI writes it and runs it.
The computer starts with no hard drive and no apps.
You type "flappy bird".
The built-in AI (MiniCPM5-2B) writes about 1,600 tokens of assembly code, live on screen.
A tiny translator inside the system turns that code into a program. Flappy Bird comes out at 1,074 bytes.
The game runs inside a locked box (a sandbox), so it can't break the system.
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%).
A small AI doesn’t write working assembly by itself. This is how he taught it.
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.
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.
After 90 practice rounds, 56% of new programs built on the first try.
He trained it on 4 RTX 3090 gaming cards at home.
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.
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).
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.
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.
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.
“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.”
Part 4: Do it by hand
The full install guide with every command, for people who would rather type it themselves.
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
Project
Windows 11
Windows 10
Linux PC
A real PC from a USB stick
Mac with Apple Silicon
02 · 27 KB AI OS (main)
Yes, through WSL2
Build in WSL2, then boot from USB
Yes
Yes (build the USB file once)
No
06 · Zero-App OS (AI writes games)
Yes, through WSL2 with KVM
No (WSL2 on Windows 10 has no KVM)
Yes, with KVM
Not documented (see Home server below)
No
01 · 15 KB engine
Yes, through WSL2
Yes, through WSL2
Yes
No
No (jpr5's ARM64 port runs on Linux for ARM)
03 · 34 KB trainer
Yes, through WSL2
Yes, through WSL2
Yes
No
No
04 · Kernel surgeon
No
No
AMD processors only, experts only
No
No
05 · Secret guard
No
No
Linux 6.12 with BPF LSM, experts only
No
No
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.
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):
Open PowerShell as administrator.
Run wsl --install
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.
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.)
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):
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:
Plug in the stick and restart the PC.
Open the boot menu while it starts. General tip: the key is usually F12 (Dell, Lenovo), F9 (HP), F8 (Asus), F11 (MSI) or Esc.
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.
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:
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:
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
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.