agentskit.js
CLI

agentskit init

Scaffold a new project — 9 starter templates spanning React, SvelteKit, Nuxt, Ink, Vite+Ink, Cloudflare Workers, Bun, runtime, and multi-agent.

agentskit init is the fastest way to get from blank folder to a working AgentsKit project. It is the best entry point when you want proof that the ecosystem already composes in practice.

pnpm dlx agentskit init
# or
npm create agentskit@latest

Interactive. Picks template + provider + memory backend.

#Flags

FlagPurpose
--template <name>react / nextjs / sveltekit / nuxt / ink / vite-ink / cloudflare-workers / bun / deno-deploy / expo / angular / runtime / multi-agent
--provider <name>openai / anthropic / ollama / ...
--name <dir>target directory
--no-installskip pnpm install

#Templates

  • react — Vite + @agentskit/react + useChat + headless components.
  • nextjs — Next.js App Router + @agentskit/react client + a streaming Edge Route Handler at app/api/chat/route.ts.
  • sveltekit@agentskit/svelte + a +server.ts route streaming over fetch.
  • nuxt@agentskit/vue + a Nitro server/api/chat.post.ts event handler.
  • ink — terminal chat via @agentskit/ink, run with tsx.
  • vite-ink — same Ink chat but with vite-node --watch for hot reload during dev.
  • cloudflare-workers — edge runtime + itty-router + wrangler.toml with nodejs_compat. Bind D1 / KV when wiring memory.
  • bunBun.serve with --hot reload; the fastest dev loop on the list.
  • deno-deployDeno.serve + deployctl + npm: imports for the AgentsKit packages.
  • expo — Expo Router + expo-secure-store for token persistence; mobile chat screen ready to wire.
  • angular — Angular 21 standalone bootstrap + Signals, ready for @agentskit/angular.
  • runtime — standalone createRuntime with ReAct loop, no UI.
  • multi-agent — supervisor topology starter (planner + delegates).

#When to use it

  • You want a working starter instead of assembling packages by hand.
  • You are evaluating how the packages fit together in a real project.
  • You want the shortest path from docs to a repo you can actually run.

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page