Stack builder

Pick your AgentsKit stack

Four choices, one snippet. Every setting persists locally and keeps the rest of the docs in sync — the framework you pick here becomes the default tab everywhere.

Stack builder
1. Framework
2. Provider
3. Memory
4. Capabilities
Install
pnpm add @agentskit/core @agentskit/react @agentskit/adapters @agentskit/memory @agentskit/tools
Starter code
import { useChat } from '@agentskit/react'
import { openai } from '@agentskit/adapters/openai'
import { inMemory } from '@agentskit/memory'
import { defineTool } from '@agentskit/tools'

const adapter = openai({ model: 'gpt-4o-mini' })

const memory = inMemory()

const clock = defineTool({
  name: 'get_time',
  description: 'Current server time',
  schema: {},
  execute: () => ({ time: new Date().toISOString() }),
})

// inside a component
const { messages, input, setInput, send } = useChat({
  adapter,
  memory,
  tools: [clock],
})