SDK

Examples

Real, runnable files on GitHub. Copy one, set RUNBERTH_API_KEY, and run. Every example is verified to compile against the published packages.

Provision on signup
One agent per customer, idempotent
Express / FastAPI chat API
An endpoint that provisions + chats
Next.js route handler
Drop-in app/api/assistant/route.ts
Webhook receiver
Verify the HMAC signature, handle events
Scoped worker key
Mint a deploy-only key for a subsystem
Per-customer secrets
Set + hot-reload encrypted env vars

The whole set lives in github.com/runberth-sh/runberth-sdk/examples.

A note on billing

Agents you provision run on your RunBerth plan. Each one runs in an agent box, billed per second at $1 a month per 2 GB of memory, awake or asleep, from your plan's usage credit first. See the billing page. Idle agents auto-sleep and keep their state.