Skip to content

About

A Platform for Laboratory Automation.

Resources

Stars

190 stars

Watchers

10 watching

Forks

Latest commit

 

History

155 Commits

Folders and files

Repository files navigation

Uni-Lab-OS

English | 中文 | Open-source Developer Guide

GitHub Stars License: GPL-3.0

Uni-Lab-OS is an open-source framework for laboratory automation. It loads device drivers from separate device packages, runs workflows on a lab station, and provides a browser console to manage devices, workflows, tasks, and inventory. The open-source scheduler runs one workflow task at a time.

Quick start

Follow the steps below to install from source and start a sample device package in dry-run mode. For more details, see the installation guide.

1. Set up the environment and install from source

Allow at least 1 GB of free disk space. Check that Git and Mamba are available with git --version and mamba --version. If Mamba is missing, install Miniforge for your platform and reopen the terminal. The unilabos-env package provides ROS 2 and the base Python dependencies.

mamba create -n unilab python=3.11.14
mamba activate unilab
mamba install uni-lab::unilabos-env -c robostack-staging -c conda-forge

Clone the repository and enter its directory. If you already have a source checkout, open its root directory and skip the clone.

git clone https://github.com/deepmodeling/Uni-Lab-OS.git
cd Uni-Lab-OS

With the unilab environment active, run the installer from the repository root. It downloads and verifies the matching browser console, then installs Uni-Lab-OS and its Python dependencies.

python scripts/install_public.py

2. Verify the installation

In a new terminal, run conda activate unilab first. Check that the Python path points to the unilab environment and that the CLI help commands work.

python -c "import sys; print(sys.executable)"
python -c "import unilabos; print(unilabos.__version__)"
unilab --help
unilab workspace start --help
unilab package inspect --help

3. Generate and check a sample device package

From the directory where you want to keep the package, generate a sample workspace. The target directory must not exist yet.

unilab workspace init --output ./sample-lab

Install the package with its development dependencies, run its tests, and inspect it.

cd ./sample-lab
export DEVICE_PACKAGE_ROOT="$(pwd)"
python -m pip install -e '.[dev]'
python -m pytest -q
unilab package inspect --path . --out dist/inspect

4. Start in dry-run mode

Use the sample package's dry-run graph for the first launch. This verifies startup, package discovery, and workflow loading without connecting to lab hardware.

unilab workspace start \
  --workspace "$DEVICE_PACKAGE_ROOT" \
  --component all \
  --graph "$DEVICE_PACKAGE_ROOT/deployment/graphs/dry-run.json" \
  --runtime-mode dry-run \
  --json

unilab workspace status \
  --workspace "$DEVICE_PACKAGE_ROOT" \
  --json

Once the workspace is running, open the URL at components.backend.address in the status output to load the browser console.

If startup fails, inspect the backend logs.

unilab workspace logs \
  --workspace "$DEVICE_PACKAGE_ROOT" \
  --component backend \
  --json

Stop the workspace when you are done.

unilab workspace stop \
  --workspace "$DEVICE_PACKAGE_ROOT" \
  --component all \
  --json

To turn the sample into your own device package, see Create a device package.

Development

The Open-source Developer Guide covers device packages, station configuration, workflow authoring, and debugging.

To add a device, use the workspace generated by unilab workspace init as a starting point or explore these standalone device packages.

Example What it shows
LabDeviceTemplate Template for a standalone device package
LabDeviceLanDemo Cross-device subscriptions with @subscribe and remote actions with call_device_action
LabDeviceWorkstationDemo Sharing a serial port or Modbus connection across devices through hardware_interface

Report bugs or suggest improvements in GitHub Issues.

Citation

If you use Uni-Lab-OS in academic research, please cite:

@article{gao2025unilabos,
    title = {UniLabOS: An AI-Native Operating System for Autonomous Laboratories},
    doi = {10.48550/arXiv.2512.21766},
    publisher = {arXiv},
    author = {Gao, Jing and Chang, Junhan and Que, Haohui and Xiong, Yanfei and
              Zhang, Shixiang and Qi, Xianwei and Liu, Zhen and Wang, Jun-Jie and
              Ding, Qianjun and Li, Xinyu and Pan, Ziwei and Xie, Qiming and
              Yan, Zhuang and Yan, Junchi and Zhang, Linfeng},
    year = {2025}
}

License

The framework is distributed under GPL-3.0. Separately installed device packages are subject to their own licenses. See LICENSE and NOTICE.

About

A Platform for Laboratory Automation.

Resources

Stars

190 stars

Watchers

10 watching

Forks

Releases

Packages

Used by

Contributors

Languages