Building s&box from source lets you compile the engine yourself, inspect the internals, and contribute changes back to the project. This page walks you through every step — from installing the required tools to running the editor binary you just built.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/facepunch/sbox-public/llms.txt
Use this file to discover all available pages before exploring further.
If your goal is to create games rather than modify the engine itself, install s&box directly from Steam instead. This repository is intended for contributors and advanced users.
Prerequisites
You need three tools installed on Windows before you begin:Git
Version control. Required to clone the repository.
Visual Studio 2022+
C++ and C# build toolchain. Install the Desktop development with C++ and .NET desktop development workloads.
.NET 10 SDK
Required to run the build tooling and compile C# code.
Building the engine
Clone the repository
Open a terminal and clone the public repository from GitHub:This downloads the engine source and all build configuration files into a new
sbox-public directory.Run Bootstrap.bat
Navigate into the cloned directory and run the bootstrap script:This script runs three build stages in sequence using the
SboxBuild tool:build --config Developer— compiles the engine in developer configurationbuild-shaders— compiles all engine shadersbuild-content— packages engine content assets
License notes
The s&box engine source code is licensed under the MIT License.Next steps
Contributing
Learn how to report bugs, request features, and submit pull requests.
Scripting basics
Start writing C# components once you have the engine running.