Introduction
krOS is a realistic OS made on Roblox, and it’s NOT realistic because of the GUI!
NOTE
It is not a 1 to 1 emulator, hence the word “Realistic” and not “Real”, but it is still very interesting and shares a lot of concepts with real operating systems
The core components of the OS
1. The process manager (PM)
In krOS, the Process Manager is one of the main features. It handles process creation, running the processes and destroying them. It does so with Lua 5.1 code that is compiled into bytecode by Yueliang and executed by FiOne.
The environment of the processes is also tightly locked, the processes are unable to access any Roblox specific globals (such as game, etc.)
But, the Process Manager strictly depends on the next component:
2. The virtual file system (VFS)
The VFS is one of the most important components of krOS. It stores entries in the file system, has functions for creation, deletion, listing, reading, etc. All the apps are stored in the VFS as Lua source code. You might find weird in the experience how the core programs have the extension .exe even though they are far from the Windows Portable Executable model. I have named them like this purely for cosmetic reasons, and for them to be easily recognized by users as “meant to be executed”. The file system also has a basic permission system: rwxc
| PERM | MEANING |
|---|---|
| r | read perms |
| w | write perms |
| x | execute perms |
| c | create children perms |
r -- any program can read this
w -- any program can write to this
x -- any program can execute this
c -- any program can add children to this directory
When you use krOS, the VFS is limited to 8MB of storage. There is a gamepass that can be purchased to double the storage. This wasn’t done for pay-to-win reasons. It was done due to DataStore limits. If fewer people can access large storage then the DataStore limits become more manageable.
NOTE
The filesystem hierarchy is saved on sanitized shutdown. Leaving the experience without shutting down means all the changes to the filesystem that happened during that session will be lost.
3. VGA
In krOS, VGA is made strictly for text and has been inspired by real OS development (address 0xB8000 is all you need to search to find more details). This is made solely for the boot phase and is inaccessible after the boot phase switches to modern graphics
4. Advanced Graphics Output (AGO)
In krOS, AGO stands for Advanced Graphics Output, and it is a way to draw Roblox objects to the screen. It uses numeric IDs, and never returns the objects themselves.
5. Window manager (WM)
Contrary to what you might think, the window manager isn’t built on top of the AGO. It’s part of the somewhat kernel of krOS. This was the design choice due to two reasons: speed and avoiding issues.
6. Graphics Manager (GM)
The sole purpose of the Graphics Manager is to handle graphics within WM created windows.
7. The other subsystems
There are a lot of other systems that would make this post too centered on the internals of the OS itself, let’s switch up the theme a bit.
Using the console
Once you are in krOS, the first (and temporarily the only) thing you can do is open the Console. You will be greeted with:
The first thing we can naturally do is type help
Let’s see what exists in our current directory, let’s run ls
As you can see, there are no children inside of root/user. Let’s create a file, even better, let’s create a file that prompts the user for their name then greets them!
Go ahead and run in the console editor test_program.exe
A new window pops up:
If you know how to code, the code that I will show you is pretty easy to read, if not, you can just paste it and see how it works
local stdio = import("stdio.lib") -- import replaces require in krOS
stdio.out("What is your name > ")
local name = stdio.inp()
stdio.out("Hello, "..name)
Now, press the Save button. Ctrl + S is not supported yet.
You can close the editor window, and now we are back in the Console!
Now, let’s see if what we just wrote got saved in the file. Type cat test_program.exe
It absolutely did! Now, let’s run:

Type in your name, then press enter:
There we go! It works!
root/user > being printed twice is a small bug that doesn’t seem to have any crazy effect in my testing.
You can see all the commands using the help command as previously discussed.
Further documentation
The documentation is still currently a WIP, but has some useful information you may need to know: Documentation Here
Bugs
Let me know if there are ANY bugs.
I hope you enjoyed this short presentation! I wish you an amazing day, have fun!







