Step 0 of 7
Make an empty project
Before you can build with blocks you need a table to build on. These four commands make the table: a folder, a file that tells Go this folder is a project, an empty main.go to write in, and your key so Claude knows the bill goes to you.
What you add
- Nothing in main.go yet. You only run commands in your terminal.
- The folder name does not matter. The module name after
go mod initdoes not matter either; the tutorial usesagent.
Type these in your terminal
mkdir code-editing-agent cd code-editing-agent go mod init agent touch main.go export ANTHROPIC_API_KEY="paste your key here"
Watch out. The export line only lasts for the terminal window you typed it in. If you open a new window, type it again.