Skip to content

Get started with weft

View as Markdown

Read the pages in this order. Start with the Quickstart if you already know you want weft; start with What is weft if you are still deciding. Each tutorial runs offline on a scripted model, so you need Go 1.26 or newer and no API key.

PageTypeWhat you get
What is weft, and when should you not use it?conceptThe packages, the rules every run keeps, and the cases weft does not fit
Quickstart: run an agent in five minutestutorialA tool, an agent, Generate and a streamed run, in one main.go
Your first agent: a support bot from a tool to StudiotutorialCoded tool errors, a refund that waits for your approval, recorded runs, Studio
Install weft and choose a modulehow-toweft or weft/core, the Go version, provider adapters, the weft command

The shortest path from nothing to a run:

Terminal window
mkdir quickstart && cd quickstart
go mod init example.com/quickstart
go get github.com/weftgo/weft@v0.20.2

Then follow the Quickstart from step 2.