openxlings/xlings

Universal package infrastructure with OS-like SubOS isolation - Multi-version · Rootless · Decentralized Index · Agent-ready.

What it solves

Installing software often means dealing with version conflicts, needing admin/root permissions, and environments that bleed into each other. xlings solves this by letting you install any version of any tool side by side, run them without root, and isolate each environment like a mini operating system. It works on Linux, macOS, and Windows.

How it works

xlings treats every piece of software (binaries, scripts, configs, even whole systems) as a package in a unified format called xpkg. You can pull packages from official, third-party, or self-hosted indexes. Multiple versions of a package can coexist without conflict, and you switch between them with a simple command like xlings use node@20. The core idea is the SubOS — a named environment that has its own tools, home directory, and policies. A SubOS can range from a simple PATH switch to a full rootless sandbox with a private network (on Linux, using bwrap). xlings also has built-in support for AI agents, with dedicated agent instructions and an NDJSON machine interface, plus a self-repair command (xlings self doctor --fix) that checks and fixes its own installation.

Who it's for

Developers who juggle multiple toolchains, teams that need a shared, reproducible project environment, and anyone running untrusted code in a sandbox. AI agents can also use xlings directly via its agent-friendly interface. It's especially useful for people who don't have root access but still need to install and manage many tools.

Highlights

  • Multi-version, side-by-side installs — install gcc@16 and gcc@11 together and switch anytime.
  • Rootless — run everything as a normal user, no admin needed.
  • Decentralized package indexes — use official, third-party, or self-hosted sources.
  • SubOS isolation — create isolated environments with their own tools and even a private network sandbox (Linux).
  • Agent-ready — xlings agent usage provides a full guide for AI agents, plus an NDJSON interface.
  • Project-level environments — declare dependencies in a workspace file and xlings install sets up the whole environment.
  • Luban OS — spin up a rootless Linux userland with luban new box, enter its shell, or even boot it as a machine with its own kernel.
  • Self-repair — xlings self doctor --fix checks and repairs its own state in one run.

Related

  • Project
  • Dispatch
  • Project
  • Project
  • Project