An excerpt from the repository, fetched Nov 13, 2026.
Read the project’s introduction
ToaruOS
ToaruOS is a complete, independent operating system for x86-64 PCs and ARMv8 VM environments.
The OS includes an SMP-capable modular kernel, C standard library with dynamic linker, a composited desktop environment, a dynamic bytecode-compiled programming language, advanced code editor, and a rapidly expanding collection of POSIX utilities,
all of which is original to the project and has no third-party dependencies.
Demonstration of ToaruOS's UI and some applications.
History
ToaruOS has been in development since January of 2011. The first full version was released in 2017.
Early versions of ToaruOS relied on a large suite of ports. In 2018, a project was started to replace all third-party runtime dependencies of the OS, culminating in the release of ToaruOS 1.6. It would take a few more years for functionality to reach full parity with the original release.
ToaruOS's kernel was rewritten in 2020 and 2021, and ported to x86-64, with support for SMP. ToaruOS 2.0 was released in December of 2021.
In early 2022, the OS was further ported to aarch64.
Notable Components
Misaka (kernel), kernel/, a hybrid modular kernel, and the core of the operating system.
Yutani (window compositor), apps/yutani.c, manages window buffers, layout, and input routing.
Kuroko (interpreter), kuroko/, a dynamic bytecode-compiled programming language.
Bim (text editor), bim/, is a Vim-inspired editor with syntax highlighting.
Terminal, apps/terminal.c, xterm-esque terminal emulator with 24-bit color support.
ld.so (dynamic linker/loader), libc/dlfcn/dl.c, loads dynamically-linked ELF binaries.
Current Goals
The following projects are currently in progress:
Improve POSIX coverage especially with new utilities, and more correct file system behavior.
Continue to improve the C library which remains quite incomplete.
Replace third-party development tools to get the OS to a state where it is self-hosting with just the addition of a C compiler.
Building / Installation
Building With Docker
General users hoping to build ToaruOS from source are recommended to fork the repository on Github and make use of the Github CI pipeline.
For those looking to build locally on an appropriately configured Linux host with Docker, a build container is available. The ToaruOS repository should be used as a bind mount at /root/misaka and util/build-in-docker.sh can be run within this container to complete the compilation process:
git clone https://github.com/klange/toaruos
cd toaruos
git submodule update --init kuroko
git submodule update --init bim
docker pull toaruos/build-tools:1.99.x
docker run -v `pwd`:/root/misaka -w /root/misaka -e LANG=C.UTF-8 -t toaruos/build-tools:1.99.x util/build-in-docker.sh
After building like this, you can run the various utility targets (make run, etc.). Try make shell to run a ToaruOS shell using a serial port with QEMU.
Build Process Internals
The Makefile uses a Kuroko tool, auto-dep.krk, to generate additional Makefiles for the userspace applications and libraries, automatically resolving dependencies based on #include directives.
In an indeterminate order, the C library, kernel, userspace librares and applications are built, combined into a compressed archive for use as a ramdisk, and then packaged into an ISO9660 filesystem image.
Project Layout
apps - Userspace applications, all first-party.
base - Ramdisk root filesystem staging directory. Includes C headers in base/usr/include, as well as graphical resources for the compositor and window decorator.
bim - Submodule checkout of the Bim editor.
boot - BIOS and EFI loader with interactive menus.
build - Auxiliary build scripts for platform ports.
kernel - The Misaka kernel.
kuroko - Submodule checkout of the Kuroko interpreter.
lib - Userspace libraries.
libc - C standard library and dynamic linker implementation.
modules - Loadable driver modules for the kernel.
tests - Test utilities that are not normally built.
util - Utility scripts, staging directory for the toolchain (binutils/gcc).
.make - Generated Makefiles.
Filesystem Layout
The root filesystem is set up as follows:
bin: First-party applications.
cdrom: Mount point for the CD, if available.
dev: Virtual device directory, generated by the kernel.
net: Network interface devices.
pts: PTY secondaries, endpoints for TTYs.
etc: Configuration files, startup scripts.
home: User directories.
lib: First-party libraries
kuroko: Kuroko modules.
mod: Loadable kernel modules.
proc: Virtual files that present kernel state.
1, etc.: Virtual files with status information for individual processes.
net: Network socket information, by protocol
src: Source files, see "Project Layout" section above.
tmp: Mounted as a read/write tmpfs normally.
usr: Userspace resources
bin: Third-party applications, normally empty until packages are installed.
include: Header files, including potentially ones from third-party packages.
lib: Third-party libraries. Should have libgcc_s.so by default.
share: Various resources.
bim: Syntax highlighting and themes for the text editor.
cursor: Mouse cursor sprites.
fonts: TrueType font files. Live CDs ship with Deja Vu Sans.
games: Dumping ground for game-related resource files, like Doom wads.
help: Documentation files for the Help Browser application.
icons: PNG icons, divided into further directories by size.
ttk: Spritesheet resources for the window decorator and widget library.
wallpapers: JPEG wallpapers.
var: Runtime files, including package manager manifest cache, PID files, some lock files, etc.
Running ToaruOS
VirtualBox and VMware Workstation
The best end-user experience with ToaruOS will be had in either of these virtual machines, as ToaruOS has support for their automatic display sizing and absolute mouse positioning.
Set up a new VM for an "other" 64-bit guest, supply it with at least 1GiB of RAM, attach the CD image, remove or ignore any hard disks, and select an Intel Gigabit NIC. Two or more CPUs are recommended, as well.
By default, the boo
Read the full README on GitHub