Top-level SDK entry point. Re-exports the client and server factories and provides createOpencode, a convenience helper that boots a server and returns a client already pointed at it.
Methods
(static) createOpencode(optionsopt) → {Promise.<{client: OpencodeClient, server: {url: string, close: function()}}>}
Start a closedcode server and return a client connected to it.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
options | Object | <optional> | Server options forwarded to createOpencodeServer (hostname, port, timeout, config, signal). |
Returns:
The connected client and the running server handle.
- Type:
- Promise.<{client: OpencodeClient, server: {url: string, close: function()}}>