Introduction
Modern biology and chemistry laboratories increasingly rely on automated liquid handlers, robotic arms, and integrated workcells to achieve the throughput demanded by drug discovery, genomics, and synthetic biology workflows. However, the software stack controlling these instruments has historically been closed, proprietary, and locked to specific hardware vendors — creating costly vendor dependency and limiting reproducibility.
Three open-source platforms are changing this landscape: OpenTrons provides a complete hardware-plus-software ecosystem with its OT-2 and Flex robots and a Python API for protocol authoring; PyLabRobot offers a hardware-agnostic SDK that can control liquid handlers from multiple manufacturers including Hamilton, Tecan, and Beckman Coulter; and Aquarium Lab OS takes a higher-level approach as a laboratory operating system that manages protocols, inventory, and workflows across diverse equipment.
This guide compares these three self-hosted lab automation platforms, covering their architecture, deployment, and ideal use cases to help research teams select the right foundation for their automated laboratories.
Why Self-Host Your Lab Automation Software?
Academic labs, biotech startups, and core facilities face unique challenges that make self-hosted lab automation platforms particularly compelling:
Protocol Reproducibility: Scientific reproducibility demands that experiments be described precisely enough to be repeated. Self-hosted platforms store protocols as version-controlled code (Python scripts, YAML configurations), enabling peer review, sharing, and exact reproduction — something impossible with vendor-specific GUI-based protocol editors.
Multi-Vendor Orchestration: Most labs operate instruments from multiple manufacturers. PyLabRobot’s hardware-agnostic abstraction layer lets you write one protocol that works across Hamilton STAR, Tecan Fluent, and OpenTrons hardware, avoiding vendor lock-in and enabling cross-platform protocol portability.
Custom Workflow Integration: Research workflows often require custom logic — dynamic volume calculations based on real-time measurements, conditional branching based on previous results, and integration with external databases. Python-based platforms enable this complexity in ways that point-and-click vendor software cannot.
For labs building comprehensive digital infrastructure, see our guide on self-hosted electronic lab notebooks and the comparison of reproducible research environments.
Comparison Table
| Feature | OpenTrons | PyLabRobot | Aquarium |
|---|---|---|---|
| Hardware Support | OpenTrons OT-2, Flex | Hamilton, Tecan, Beckman, OpenTrons | Hardware-agnostic |
| Protocol Language | Python API | Python API | Web UI + Ruby |
| Deployment | Desktop app + OT-2 server | Python package (pip) | Docker + Kubernetes |
| Web Interface | OpenTrons App (desktop) | None (library) | Full web application |
| Inventory Management | Labware definitions | Via resource classes | Built-in sample tracking |
| Scheduling | Basic queue | Not included | Built-in workflow scheduler |
| Multi-User Support | Limited | N/A | Full RBAC |
| Protocol Versioning | Local files | Git-based | Built-in version control |
| REST API | Yes (robot server) | Via custom wrapper | Full REST API |
| License | Apache 2.0 | MIT | MIT |
| GitHub Stars | 502+ | 465+ | 68+ |
| Latest Update | 2026 (active) | 2026 (active) | 2025 (stable) |
OpenTrons: The Integrated Ecosystem
OpenTrons takes the most vertically integrated approach, providing both the hardware (OT-2 and Flex liquid handlers) and the open-source software to control them. The Python API is well-documented and intuitive, making it accessible to biologists with basic programming skills.
Key Capabilities:
- Opentrons Python Protocol API — write protocols as Python scripts with explicit volume, position, and timing control
- Opentrons App — desktop application for protocol upload, execution monitoring, and calibration
- Labware Library — extensive database of labware definitions covering plates, tips, tubes, and reservoirs from major manufacturers
- Protocol Designer — drag-and-drop interface for common operations (serial dilution, PCR setup, plate replication)
Docker Compose for OT-2 Server
The OT-2 robot itself runs a Raspberry Pi-based server, but you can replicate the development environment for protocol testing:
| |
Basic Protocol Example:
| |
PyLabRobot: The Universal Controller
PyLabRobot takes a fundamentally different approach — rather than being tied to specific hardware, it provides a universal abstraction layer that works across Hamilton STAR, Tecan EVO/Fluent, Beckman Biomek, and OpenTrons robots. This makes it invaluable for core facilities and CROs operating mixed-vendor fleets.
Key Capabilities:
- Unified Resource API — define tips, plates, and reagents once, then execute across any supported hardware
- Cross-platform protocol portability — write a protocol for a Hamilton STAR and run it on a Tecan Fluent with minimal changes
- Simulation mode — test protocols without physical hardware using the virtual deck
- Async execution — control multiple robots simultaneously from a single Python process
Installation and Basic Usage:
| |
| |
Aquarium Lab OS: The Laboratory Operating System
Aquarium takes the highest-level approach, functioning as a complete laboratory operating system rather than just a robot controller. It manages the entire experimental lifecycle: protocol definition, sample tracking, inventory management, workflow scheduling, and data association.
Key Capabilities:
- Protocol-based workflow engine — define experiments as composable protocol modules with explicit inputs/outputs
- Sample and inventory tracking — every sample, reagent, and consumable is tracked through its entire lifecycle
- Web-based interface — protocols are designed and executed through a browser, no local software installation required
- Kubernetes-native deployment — designed for production deployment on lab Kubernetes clusters
Docker Compose for Aquarium
| |
Choosing the Right Lab Automation Platform
| Laboratory Profile | Recommended Platform | Rationale |
|---|---|---|
| Small academic lab with 1-2 OT-2s | OpenTrons | Integrated ecosystem, lowest complexity |
| Core facility with mixed-vendor fleet | PyLabRobot | Hardware-agnostic, universal protocol portability |
| Large lab with complex workflows | Aquarium | Full workflow management, sample tracking, multi-user |
| Biotech startup scaling automation | PyLabRobot + Aquarium | PyLabRobot for robot control, Aquarium for workflow orchestration |
| Teaching lab / training | OpenTrons | Best documentation, Protocol Designer for beginners |
Frequently Asked Questions
Can I use PyLabRobot with OpenTrons hardware?
Yes. PyLabRobot includes an OpenTrons backend that can control OT-2 and Flex robots. This means you can write protocols using PyLabRobot’s universal API and execute them on OpenTrons hardware — useful if you plan to add non-OpenTrons instruments to your lab in the future.
How does Aquarium handle actual robot control?
Aquarium is primarily a workflow management and scheduling layer. For physical robot execution, it interfaces with robot-specific drivers (including OpenTrons and Hamilton Venus) through a plugin architecture. The protocol module defines “what” to do; backend drivers handle “how” to execute it on specific hardware.
What programming skills are needed?
OpenTrons and PyLabRobot require basic Python proficiency — roughly the level of a one-semester programming course for scientists. Aquarium’s protocol design is primarily web-based (point-and-click) but advanced customization requires Ruby knowledge. All three platforms are designed for biologists and chemists who code, not professional software engineers.
Can these platforms integrate with electronic lab notebooks?
Absolutely. OpenTrons has a REST API that can be triggered by ELN workflows. PyLabRobot can be wrapped in a FastAPI/Flask server for ELN integration. Aquarium has a full REST API designed for external system integration. See our guide on self-hosted electronic lab notebooks for compatible ELN options.
What about regulatory compliance (GLP, GxP)?
For regulated environments, all three platforms can be deployed with additional controls. OpenTrons provides audit logs in the OT-2 server. PyLabRobot protocols can be version-controlled in Git with signed commits for chain-of-custody. Aquarium includes built-in version control and user action logging. However, for full GxP compliance, you’ll need to add validation documentation, electronic signatures, and access controls specific to your regulatory framework.
💰 想测试你的市场判断力?我用 Polymarket 做预测市场交易——这是全球最大的预测市场平台,从大选结果到技术监管时间线,什么都可以押注。和赌博不同,这是真正的信息市场:你懂的信息越多,胜率越高。我靠预测技术相关事件的走向已经赚了不少。用我的邀请链接注册:Polymarket.com