Templates
The fastest way to start is from a template. create-kuralle-agents scaffolds a working project — no clone, no boilerplate to wire up.
Create a project
Section titled “Create a project”-
Run the scaffolder. It copies a template, sets your project name, and prints the next steps.
Terminal window npm create kuralle-agents@latest my-appOr pick the template up front:
Terminal window npm create kuralle-agents@latest my-app --template nextjs-chatbot -
Install and run.
Terminal window cd my-appnpm installcp .env.example .env # add your OPENAI_API_KEYnpm run dev
With no arguments, the CLI asks where to create the project and which template to use.
Templates
Section titled “Templates”| Template | What it is |
| --- | --- |
| nextjs-chatbot | A Next.js chat app wired to a Kuralle agent — streaming chat UI, thread history, and persistence through Kuralle SessionStore (in-memory by default, Postgres when POSTGRES_URL is set). |
What you get
Section titled “What you get”Every template is a complete, runnable project:
- Kuralle already wired —
defineAgent+createRuntime, ready to extend. - A real example of the pattern it demonstrates (chat UI, persistence, flows, or triage).
.env.examplelisting the keys you need.
Edit lib/kuralle/ (or the equivalent) to change the agent, add tools, or attach a flow — see the Agents, Flows, and Tools guides.