Skip to content

Introduction

MerlionOS is a Singapore-inspired AI-native hobby operating system kernel written in Rust for x86_64, aarch64, RISC-V, and LoongArch.

Born for AI. Built by AI. (生于AI,成于AI)

MerlionOS explores what an operating system looks like when AI is a first-class citizen — not bolted on, but woven into the kernel itself. The entire OS was built using AI agents working in parallel, demonstrating that complex systems software can be created through human-AI collaboration.

CategoryFeatures
MemoryFrame allocator, 4-level page tables, demand paging, slab allocator, heap with leak detection
ProcessPreemptive multitasking, context switching, per-process page tables, signals, process groups
FilesystemVFS, FAT16, ext2, ext4 (extents/journaling), tmpfs, procfs, sysfs
Storagevirtio-blk, AHCI, NVMe, GPT partitions, NTFS read-only, software RAID 0/1/5, KV database
NetworkingTCP (Reno/Cubic/BBR), UDP, IPv4+IPv6, ARP/NDP, DHCP, DNS, HTTP/HTTPS, TLS, WebSocket, MQTT, QUIC/HTTP/3, gRPC, OSPF/BGP, iptables/NAT, eBPF, DPDK
ServersHTTP server, SSH server, DNS server, MQTT broker, HTTPS reverse proxy
SecurityCapabilities (14 flags), seccomp, ACLs, file permissions, sudo, AES-128, RSA, X.509
AINL shell, neural network inference (INT32), ML training, vector store, AI workflows, self-evolution, LLM inference (INT4/INT8), AI system administration, self-hosting compiler
GPUSoftware compute shaders, buffer management, benchmarks
AudioMulti-channel mixer, WAV playback, tone synthesis, MIDI parser
GUIWidget toolkit (10 types), layout engine, dialog system, themes
DisplayWindow compositor, desktop environment, framebuffer terminal
InputUSB mouse, keyboard layouts, touchpad
HardwareSMP, APIC, HPET, PCI, USB (xHCI), Bluetooth (HCI/L2CAP), e1000e NIC
LanguagesForth, Lisp, WASM/WASI runtime, shell scripting (if/for/while/function)
ContainersProcess isolation, veth pairs, network bridge, microkernel mode, OCI runtime, KVM virtualization
Self-hostingRust subset compiler, x86_64 assembler, ELF linker
DevToolsKernel debugger, CPU profiler, alloc tracker, syscall stats, fuzzing framework
PowerCPU P-states/C-states, thermal management, battery simulation, ACPI events
ArchitectureTargetHardwareBuildTest
x86_64Intel/AMD PCBIOS + UEFImake build / make isomake run / make run-uefi-mac
aarch64Raspberry Pi 3/4/5Pi firmwaremake pimake run-pi
riscv64RISC-V (SiFive, StarFive)OpenSBImake riscvmake run-riscv
loongarch64Loongson 3A5000/6000UEFImake loongarchmake run-loongarch
  • 360 source modules, 132,670 lines of Rust
  • 100 releases (v1 through v100)
  • 480+ shell commands
  • 4 CPU architectures (x86_64, aarch64, riscv64, loongarch64)
  • Optional microkernel mode with service isolation and hot-restart
  • Runs on QEMU; UEFI boot via Limine on real hardware
  • MIT licensed