~/distillery setup → goose
Configure Block's Goose agent to route Claude API requests through The Distillery.
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 / 03Install Goose from the official installer:
curl -fsSL https://github.com/block/goose/releases/latest/download/download_cli.sh | bash$ configure
step 02 / 03Export 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:
export ANTHROPIC_HOST=http://localhost:3080
goose sessionset ANTHROPIC_HOST=http://localhost:3080
goose session$ verify
step 03 / 03thedistillery statsEvaluating 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.