1. Install the CLI and scaffold an app
Install thesentralbee CLI, then scaffold a new app. What you get is a complete starter, all wired up: a
Hono API on the install lifecycle, a session-authed API, a webhook handler, and a React embed.
Prefer not to install globally?
bunx @sentralbee/cli create my-app scaffolds the same app without a
global install. Installing the CLI is still the smoothest way to use the sentralbee dev / webhook /
token / manifest commands below from anywhere.2. Look around
The whole app is small:3. Run it
sentralbee dev, which:
- generates a throwaway dev keypair and starts your app with the matching public key,
- mock-installs a workspace — delivering a fake API key (and webhook secret) to
/install/provision, exactly as the real platform would, - prints an embed URL carrying a live session token.
&theme=dark to preview dark mode.
4. Exercise the pieces
From your app’s directory, in another terminal:5. Build your app
- Add an endpoint — add a route to the
apiHono instance inapi/src/app.ts. It’s session-authed, so read the tenant withc.get('workspace'), never from the request body. - Call Sentralbee — decrypt your stored key and use
sentralbeeClient; see Calling the API. - Handle webhooks — declare events in your manifest and verify with
verifyWebhookSignature; see Webhooks. - Request permissions — edit
sentralbee.app.json→scopes; see The manifest. - Build your UI — edit
ui/src/App.tsxwith theuseHostTheme/useSafeArea/useSessionTokenhooks; see The embed UI.
Where to next
- Concepts & lifecycle — the trust model and what happens on install.
- Install lifecycle — provisioning and teardown in detail.
- Publishing — when it’s ready, get it into the App Store.

