Welcome to Drover Code! This tutorial will guide you through setting up and running your first autonomous agentic coding assistant using the Anthropic API.
By the end of this tutorial, you will have:
- Built the
drover-codebinary from source. - Configured your environment with an Anthropic API key.
- Started the interactive Terminal User Interface (TUI).
- Run your first task with the agent.
Before you begin, ensure you have the following installed on your system:
- Go 1.22+: Required to build the binary.
- Git: Required for the agent to use git tools.
- Anthropic API Key: You'll need a valid API key (
sk-ant-...) to communicate with the Claude models.
Drover Code is a single, static Go binary. Open your terminal, navigate to the root of the drover-code repository, and run the following command to build it:
CGO_ENABLED=0 go build -o drover-code ./cmd/drover-codeThis will produce a drover-code executable in your current directory.
The agent requires an API key to communicate with the model. You can set this via the ANTHROPIC_API_KEY environment variable.
export ANTHROPIC_API_KEY="your-api-key-here"Tip
If you are using an Anthropic-compatible provider (like Moonshot or GLM), refer to our Custom LLM Providers guide for setup instructions.
Now you are ready to start the interactive Terminal User Interface (TUI). Simply run the binary you built in Step 1:
./drover-codeYou should see the Drover Code TUI initialize, presenting you with a prompt where you can type your requests.
Let's test the agent by asking it to summarize the README file. In the TUI prompt, type:
Please summarize the README.md file in this directory.
Press Enter or Ctrl+J to submit your request.
The agent will read the README.md using its filesystem tools, stream its thought process, and present a concise summary on your screen.
Congratulations! You've successfully built and interacted with Drover Code.
- To learn how to integrate this into automated workflows, see our Integration Checklist.
- To understand how the agent loop works under the hood, read the Architecture Overview.
- To see what tools the agent has available, check out the Available Tools reference.