@builddai/ai-kit · Apache-2.0 · v0.13.0

Your key, your prompts.

We pick the model. Your prompts never touch us.

The chat parts we run buildd on, packaged for your app. Only /models calls us.

npm i -E @builddai/ai-kit@0.13.0

Pin the exact version. Rerun your evals before you upgrade.

README ↗npm ↗

Live components · scripted data

A chat thread from @builddai/ai-kit/chat/react

The kit's real components on scripted data. Go ahead, click Discard.

We see the receipt, never the chat.

Your appHolds the key and makes every call
tier + budget
model plan
receipt: model, tokens, cost, latency, …
builddPicks the model, enforces the limit
prompts + tools
replies
Your providerYour account, your key
Prompts go straight to your provider. We only get the plan request and a receipt.
  • Fallbackbuildd down? You get the last good plan, then your defaults.
  • BudgetsOver the limit, a call is refused or moved to a cheaper model.
  • ReceiptsBuilt from a fixed field list, so a stray prompt can’t get in.

One list decides what the model can touch.

Declare tools once. The menu and the server both read it.

  • ask

    Every write asks first, with a before and after.

  • allow

    A write may skip its card, under tight rules.

  • read

    No writes at all.

  • never

    Not a tool. Shown locked.

Take the parts you want.

/chat/reactReady

Thread, composer, pickers and approval cards.

needs: react 19, @ai-sdk/react 4, ai 7

/chat/serverReady

The turn runner, with tool permissions enforced on the server.

needs: ai 7, loaded on the first turn

/chat/contractReady

The wire types. No dependencies.

needs: Nothing. Isomorphic

/modelsReady

Which model to call, and a receipt with no content.

needs: Nothing. Node, Bun, edge

/decideReady

A model picks one of your labels or answers yes or no.

needs: Optional @typesafe-ai/sdk

/surfacesRank slot ready

A model ranks your own chips.

needs: decide

Plain CSS. Map the --kit-* variables to your tokens.

Open source

The runner and ai-kit are Apache-2.0. The server is source-available under FSL-1.1. Each release becomes Apache-2.0 two years after it ships.

GitHub ↗Server license ↗Runner license ↗ai-kit license ↗