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
Install
pnpm add @agentskit/core @agentskit/react @agentskit/adapters @agentskit/memory @agentskit/toolsStarter 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()
// One example tool. @agentskit/tools also ships web-search, fetch, shell,
// filesystem, MCP, plus 25+ ready-made integrations (Slack, GitHub, Linear,
// Stripe, Postgres, weather, maps, browser-agent, …).
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],
})