SDKs
Lobu ships a handful of developer surfaces. Which one you reach for depends on whether you’re calling an agent from your own app or extending what an agent can see and do.
Pick a surface
Section titled “Pick a surface”| You want to… | Use | Language |
|---|---|---|
| Call agents from a TypeScript/Node app: create a session, stream the reply | @lobu/client | TypeScript |
| Call agents from any language, a webhook, or a cron job over HTTP | REST API | any (HTTP) |
| Feed external events (Slack, GitHub, a custom source) into an agent’s memory | Connectors | TypeScript |
| Run code after a watcher extracts data: notify, derive, mutate | Reactions | TypeScript |
| Give an OpenClaw / coding agent persistent Lobu memory | Memory plugin | npm + MCP |
| Run automated quality checks against an agent | Evals | promptfoo |
The split is client/REST vs connectors/reactions:
- Client and REST API are the outside-in surface: your code on the outside, talking to a running agent over the wire. The client is the typed wrapper around the same HTTP endpoints the REST API exposes; use it from TypeScript, drop to raw HTTP from anything else.
- Connectors and reactions are the inside-out surface: TypeScript you author into a Lobu project, compiled and run by the runtime. Connectors bring events in; reactions act on them after a watcher extracts. Both ship from
@lobu/connector-sdk.
Install
Section titled “Install”# Call agents from your own appbun add @lobu/client
# Author connectors and reactions inside a Lobu projectbun add @lobu/connector-sdkThe REST API needs no install; it’s HTTP. The connector/reaction packages are authoring-time types; the runtime injects the live client at execution.
See also
Section titled “See also”lobu.config.tsreference: the declarative config that wires connectors and reactions into agents.- CLI reference:
lobu apply,lobu run, and friends. - Interactive API reference: every REST endpoint, generated from the gateway’s OpenAPI spec.