Skip to main content
Guides are recipes for specific goals. Use them when you know what you want to build, change, run, or verify. For concepts and boundaries, see Concepts. For full API details, see API reference.

Start a project

GoalGuide
Understand where files belongProject structure
Configure project behaviorConfiguration
Choose the right primitiveChoose a primitive

Build routes

GoalGuide
Add pages, layouts, and dynamic routesPages and routing
Load data for pagesData fetching
Add HTTP endpointsAPI routes
Add CORS, auth checks, logging, or timeoutsMiddleware
Set page metadata and social previewsHead and SEO

Add AI behavior

GoalGuide
Add an agentAgents
Choose model providers and runtime defaultsProviders
Give an agent a typed capabilityTools
Add memory or streamed responsesMemory and streaming
Build document Q&A with RAGBuild a RAG app
Coordinate more than one agentMulti-agent
Package reusable agent instructionsSkills

Build chat

GoalGuide
Add a preset or custom chat interfaceBuild a chat UI
Use headless chat stateChat hooks

Run background work

GoalGuide
Define reusable background workTasks
Coordinate multi-step workWorkflows
Add loops, large artifacts, or progress UIWorkflows: advanced
Run durable workRuns
Ingest documents into project knowledgeCLI knowledge ingestion

Connect external systems

GoalGuide
Sign users in with OAuthOAuth
Add connector-backed service toolsIntegrations
Expose tools, prompts, and resources to assistantsMCP server
Connect coding agents to the dev serverCoding agents
Run isolated commands or file operationsSandbox

Deploy and extend

GoalGuide
Build and deploy a projectBuild and deploy
Run agents as separate servicesAgent service runtime
Enable reusable runtime infrastructureExtensions
Write, test, and package an extensionAuthor extensions