@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.

Licensing

buildd's server (dashboard, API, control plane) is source-available under the Functional Source License (FSL-1.1-ALv2), a Fair Source license. The runner, ai-kit and the contract packages are Apache-2.0.

Can I self-host it for my own team?
Yes. Use it, run it and change it for your own work, commercial or not.
Can I modify it?
Yes. Fork it, patch it, extend it.
Can I sell it as a hosted service or a competing product?
No. Not during the two-year window. That is the one thing the license holds back.
When does a release become Apache-2.0?
Two years after that release ships. Each release has its own date.
What is Apache-2.0 today?
The runner, plus @buildd/workflow-kernel, @buildd/spec-contract, @buildd/dispatch-contract, @buildd/shared and @builddai/ai-kit.
How do I contribute?
Contributions need a CLA. You sign it once, on your first pull request.

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