from day one opencode has been designed to be embeddable and composable
we're officially launching the opencode sdk today
here's an example launching a single instance and running a bunch of tasks in parallel - this is the same sdk the TUI uses so you can do anything it can