Orca Framework
Install it from GitHub: see Installation. Coming from 2.3.0? See Upgrading a package from 2.3.0.
Orca Framework operates your lab. It schedules the work, moves labware between your instruments, and keeps the run going when something goes wrong.
You describe your instruments once, write your workflows in plain Python, put them in a folder, and run them on a service that stays running. The same code runs in simulation and on hardware, so you can build and debug an assay with nothing plugged in.
What you get
- The instruments you already own. No rip and replace, workflows you can validate, and visibility into every run.
- Workflows in plain Python. Four decorators, and your normal editor, diffs and code review.
- A runtime that stays up. Submit a workflow now, submit another an hour later, pause, resume, stop, or recover one labware thread without touching the rest.
- Three ways to drive it. The
orcaCLI, a localhost daemon over REST and a WebSocket, and a Python client. - State that survives a restart. Plates, runs, incidents and events are kept in a file in your package folder.
What a workflow looks like
import orca.orca as orca
from orca.sdk.workflow import ActionContext, MethodContext, ThreadContext
@orca.action(device=shaker, inputs=[plate])
async def shake(ctx: ActionContext):
await ctx.device().shake(duration=30, speed=500)
@orca.method
async def shake_step(ctx: MethodContext):
yield shake
@orca.thread(labware=plate, start="plate_pad", end="plate_pad")
async def sample_thread(ctx: ThreadContext):
yield shake_step
@orca.workflow(name="sample_assay")
def sample_assay(wf):
wf.start(sample_thread)
That is a complete workflow. Read it from the bottom: the workflow starts one labware thread, the thread is one plate's path through the lab, the method is a named sequence of steps, and the action is one step at one device. The runtime takes it from there.
Where to go next
- Building something: Installation, then Quick Start.
- Evaluating: Architecture is a one-page tour of how Orca Framework thinks about your lab.
- New to the vocabulary: the Glossary defines every term on this site.
Advanced
Two things that matter if you are comparing products or planning an integration. Skip both until your first workflow runs.
Coming from Legacy Orca
The high-level shape is unchanged: workflows compose labware threads, threads compose methods, methods compose actions. These are the differences that change what you would build.
- The runtime stays up. A long-lived daemon accepts submissions whenever they arrive. Legacy ran one workflow then exited.
- Python, not JSON.
@orca.method,@orca.thread,@orca.workflow. The JSON workflow path is gone, so you get real IDE support, real diffs and real refactors. - Nothing is scheduled up front. Threads take reservations as they go. A knot in the wait-for structure is detected as a deadlock, and one thread is told to yield and move its labware out of the way. What cannot be resolved that way is caught by the stall detector, which pauses the run and hands the operator something to act on.
- Plates converge. Labware arrives at a shared device from independent threads, and co-labware coordination is a first-class concept.
- Three run modes, sim first.
CHECK_RUN,SIMandLIVE. Each submission carries its own mode, and each device has its own sim or live setting, so you can validate an assay with zero hardware and bring a lab up one instrument at a time. - More than one sample per submission, and more samples later. One submission can fan N samples into one shared final plate. Later submissions can join an in-flight batchable execution, so an operator can drip-feed samples over hours into one run.
- One list of what is stopping the run. Device faults, error-paused threads, a paused execution, a plate waiting on a person: all of it derived into one list, each entry carrying the remedies that clear it. Anything the record cannot answer is listed as unsettled with the verb that settles it. No hunting across four surfaces to find out why nothing is moving.
- An operator can take over mid-run. The runtime holds the device so the engine cannot schedule it in between, and records every command against the run. A command that would rewrite the driver's own picture of where labware is is refused, and the refusal names the verb that writes the driver and the record together. An operator can also place a catalog type the workflow never declared, just by naming it.
- The instrument gets a vote. A liquid handler reports what is actually on its deck. Disagreement with the record is raised as an incident instead of being silently overwritten.
- State is kept. Labware positions, well volumes, runs, incidents and events are stored in
.orca/state.dbin your package folder. See Where state lives. State that comes back after a restart is marked for an operator to confirm. - Calibration lives outside your source. Workflows, methods and topology are Python files your repo already diffs and reviews. Teachpoints, deck layouts, access configs, grip profiles, move defaults and device setups are JSON files in the package folder. You edit them by hand or through the CLI and the API, and you can commit them.
- Every status change fires an event. External systems subscribe. No polling, no log scraping.
The legacy docs are still available. Pick Orca Legacy from the Orca menu in the navbar.
Network access, MCP and AI agents
Orca Framework's daemon listens on localhost. Orca AI wraps the same runtime with authenticated REST, MCP and WebSocket surfaces, which is what an AI agent, a dashboard, or another machine on the network talks to.
See also
- Installation: what you need, and the commands.
- Quick Start: a lab, a workflow and a run.
- Architecture: how the pieces fit together.
- Glossary: every term on this site, defined once.
- Orca Legacy docs: the previous generation.