Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 2.57 KB

File metadata and controls

67 lines (43 loc) · 2.57 KB

Getting Started with Drover Code

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:

  1. Built the drover-code binary from source.
  2. Configured your environment with an Anthropic API key.
  3. Started the interactive Terminal User Interface (TUI).
  4. Run your first task with the agent.

Prerequisites

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.

Step 1: Build the Binary

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-code

This will produce a drover-code executable in your current directory.

Step 2: Configure Your Environment

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.

Step 3: Launch the TUI

Now you are ready to start the interactive Terminal User Interface (TUI). Simply run the binary you built in Step 1:

./drover-code

You should see the Drover Code TUI initialize, presenting you with a prompt where you can type your requests.

Step 4: Run Your First Task

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.

Next Steps

Congratulations! You've successfully built and interacted with Drover Code.