Skip to content

Getting Started

Welcome! This guide will help you set up your development environment for paiOS.

  • Rust: Edition 2021 (install via rustup)
  • Node.js: For building documentation (v18 or later)
  • Docker: For building OS images (optional, for OS development)
  • Git: For version control

Depending on what you want to build, we provide different toolchains:

If you are contributing to the PAI Engine or the OS Recipes, you should set up Rust locally as described above.

For 3rd party app developers, we provide the pai-builder Docker image. This image encapsulates the entire cross-compilation toolchain and system headers (sysroot).

  • No manual SDK installation: Just run your build command inside the container.
  • Reproducible: Ensures your app builds the same way as in our CI/CD.
# Example: Build an app using the builder container
docker run --rm -v $(pwd):/workspace \
pai/pai-builder:latest \
cargo build --release --target aarch64-unknown-linux-gnu
  1. Clone the repository:

    git clone https://github.com/aurintex/pai-os.git
    cd pai-os
  2. Set up the engine:

    cd engine
    cargo build
  3. Set up the documentation:

    cd docs
    npm install
    npm run dev
  4. Install Pre-commit Hooks (Recommended): To ensure your code always follows our standards, install the pre-commit hooks:

    # We use basic hooks for formatting and linting
    # Make sure you have rustfmt and clippy installed
  5. Configure Git for automatic DCO sign-off (see DCO Guide for details):

    git config format.signoff true

If you have questions, found a bug, or need clarification, please reach out: