From idea to AI-powered application.
Build, customize, and integrate intelligent experiences, all in one place.
Chat Starter
A small, readable chat app that runs on your computer and talks to Aivana MMI through the Node.js SDK.
What it shows
- Answers that stream in as they are written
- Formatted answers: Markdown, code and tables, with a Copy button
- Stop, Retry and Regenerate
- Effort, answer length and web search settings
- An optional Agent Kit Blueprint, loaded from a file (read-only)
Built on the Node.js SDK 0.8.0
Run it
Before you start: Node.js 20.6 or newer, with npm. An Aivana API key with credit available.
Unzip the download, then in its folder:
node setup.mjsCreates a private .env file. Open it and paste your API key.
npm ciInstalls the starter’s dependencies.
npm run doctorChecks your setup. It makes no paid request.
npm startStarts the app. Open http://127.0.0.1:3006 in your browser.
npm run doctor checks your setup and makes no paid request. Sending a message, Retry and Regenerate each make a new request that uses credit.
Then open http://127.0.0.1:3006.
Keep your key on the server
The starter reads your API key from a local .env file and uses it only in its own server, never in the browser. Do not commit that file or paste the key into a web page. You can create a key on the API Keys page.
What to know
- Conversation history is kept in your browser only; closing the tab clears it.
- A Blueprint is read from the exported file. Its system instructions are not sent to the browser, and the starter does not import your Playground prompt or settings.
- It is an example to learn from and build on, not a hosted service.
If something goes wrong
- The API key is missing or rejected
- Open the .env file in the starter’s folder, paste a current key, then run npm run doctor. Keys are managed on the API Keys page.
- You are out of credit
- Requests are refused until credit is added. See Billing, then try again.
- You are sending too fast
- Wait a moment and send again. The Rate Limits guide explains how limits work.
- An answer stops partway
- It stays on screen marked Interrupted. Retry sends a new request, which uses credit.
- Port 3006 is already in use
- Stop the other program using it, then run npm start again.
- Setup fails on your computer
- It needs Node.js 20.6 or newer. It was checked on macOS, Windows and Linux with Node.js 20, 22 and 24.
Errors and limits are covered in the guides: Errors & Retries, Rate Limits, API Keys and Billing.