Skip to main content

Install

Requires Node 22 or later. The SDK is ESM-only and has no runtime dependencies. It uses the platform’s fetch, Web Crypto, AsyncLocalStorage, and node:http.

Configuration

Every entry point takes constructor options first, then environment variables.

The loop

Your backend and your agent communicate through the kernel.
  1. A client calls client.create(agentId, input). The kernel records the execution and POSTs a signed webhook to your agent.
  2. Your agent verifies the signature, looks up the execution, and runs your handler. Each effect goes to the kernel as a step before it runs. The kernel decides whether it proceeds, replays a recorded result, is denied by policy, or waits for approval.
  3. When the handler returns, the agent reports the output and the execution completes. If it blocked on an approval or crashed, the kernel re-dispatches later and the recorded steps replay.

A complete example

Running locally

The kernel is a separate service. Point REBUNO_URL or baseUrl at it. Next: Agents.