Get started with weft
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.
| Page | Type | What you get |
|---|---|---|
| What is weft, and when should you not use it? | concept | The packages, the rules every run keeps, and the cases weft does not fit |
| Quickstart: run an agent in five minutes | tutorial | A tool, an agent, Generate and a streamed run, in one main.go |
| Your first agent: a support bot from a tool to Studio | tutorial | Coded tool errors, a refund that waits for your approval, recorded runs, Studio |
| Install weft and choose a module | how-to | weft or weft/core, the Go version, provider adapters, the weft command |
The shortest path from nothing to a run:
mkdir quickstart && cd quickstartgo mod init example.com/quickstartgo get github.com/weftgo/weft@v0.20.2Then follow the Quickstart from step 2.