OpenSDL
Open-source workflow software for self-driving labs, with reproducible runs, connected results and a replay viewer.
- Status
- Active
- Period
- 2026–present
- Role
- Creator and maintainer
- Thread
- Self-driving labs

How fast a lab learns depends on how fast it gets from one result to the next test. Iteration rate beats brilliance. The person who tests ten hypotheses learns more than the person who tests one.
OpenSDL is open-source software for self-driving labs. You declare what a laboratory can do, and OpenSDL turns those declarations into reproducible workflows. It keeps the evidence from every run and uses each result to choose the next test.
- A capability is a named operation, and a person, an instrument, a robot, a simulator or an optimizer can perform it. A workflow names the capability and an adapter handles the details.
- The runtime is durable. It executes workflows as a graph with retries, timeouts, resource leases and policy checks, reconciles state after a restart, and keeps metadata in SQLite and artifacts in content-addressed storage.
- The reference profile ships simulated adapters for a mixer, a balance, a colorimeter and labware transport, plus local compute, a record for tasks a person does, and two optimizers, a fixed grid and a contracting search.
- It comes with a CLI, a Python SDK, an HTTP API and an optional MCP hook. Runs export as a portable archive, and a read-only viewer replays a recorded run inside a rendered model of the lab, the reference cell pictured on this page.
- The repository holds fourteen library packages, with applications, adapters and domain packs alongside. CI runs the tests on Python 3.12, 3.13 and 3.14, and the docs are rebuilt from main on every push.

A frame generated from the recorded run, after round two of six. Ninety-six recipes on one plate, each well colored by what its own run measured, beside the search that proposed them.
In the discovering-colors example, the lab is handed one color and has to find the three-dye recipe that makes it, with no idea how the dyes behave. Each round fills a 96-well plate, reads every well on a simulated colorimeter, and draws the next round from a region that has contracted around whatever came closest. After six rounds and 576 wells it recovered cyan 0.4612, magenta 0.0858 and yellow 0.2989. The target was mixed from 0.46, 0.09 and 0.30, and the search never saw those numbers. The median well started 95 RGB units from the target and ended 12.6 away, and the best well of the last round was 0.5 away.
The current implementation runs in simulation, with simulated instrument adapters, and its HTTP API is unauthenticated. A CI job re-runs the color-discovery example and checks it against the committed record. The README’s roadmap covers production authentication, richer approval workflows, Slurm execution and a first low-risk hardware integration.
The example needs only Python 3.12 or newer and uv, and takes about 80 seconds.
git clone https://github.com/fl-sean03/OpenSDL.git opensdl && cd opensdl
uv sync --locked --all-packages --group dev
uv run --locked python examples/discovering-colors/run_campaign.py
Results should compound, and too often they don’t, because connecting one to the next is manual. I’m building OpenSDL to keep that connection in the record, next to the result.