Skip to content
The Distillery
Docs / Clients / Goose
SETUP · gooseverified

~/distillery setup → goose

Configure Block's Goose agent to route Claude API requests through The Distillery.

vendorAnthropic
authAPI key
methodenv var
portlocalhost:3080

Overview

Goose is an open-source AI agent from Block that supports multiple LLM providers including Anthropic. Goose reads the Anthropic base URL from the `ANTHROPIC_HOST` environment variable (not `ANTHROPIC_BASE_URL`). Setting this variable before running Goose routes all Claude traffic through The Distillery.

Prerequisites

You have The Distillery installed and running locally on port 3080. Goose 1.0 or newer is required with the `anthropic` provider configured.

$ install

step 01 / 03

Install Goose from the official installer:

curl -fsSL https://github.com/block/goose/releases/latest/download/download_cli.sh | bash

$ configure

step 02 / 03

Export the `ANTHROPIC_HOST` environment variable pointing at The Distillery before running Goose. Note: Goose specifically uses `ANTHROPIC_HOST`, not the more common `ANTHROPIC_BASE_URL`; setting the wrong variable will silently route through the default endpoint.

To make this persistent, add the export line to your shell rc file:

macOS · Linux
export ANTHROPIC_HOST=http://localhost:3080
goose session
Windows
set ANTHROPIC_HOST=http://localhost:3080
goose session

$ verify

step 03 / 03
01Start a Goose session and send any prompt. Then in a separate terminal run:
thedistillery stats
$ comparing tools

Evaluating other Claude Code cost-reduction approaches alongside Goose? See how The Distillery compares to Claude Code Router (model-routing approach), Compresr (YC W26), or browse alternatives to Claude Code Router for the full landscape.

Pricing breakdown: thedistillery.com/pricing.