Getting Started
Install sandgrouse and start saving bandwidth in under a minute.
Sandgrouse is an open source proxy that sits between your AI coding tools and the cloud API. It compresses response traffic, coalesces duplicate requests, and shows you exactly where your bandwidth goes.
Install
npm install -g sandgrouseOr use Homebrew:
brew install sandgrouseOr run directly without installing:
npx sandgrouseStart the proxy
sg startThis starts the proxy on localhost:8080 and the dashboard on localhost:8585. The proxy runs as a background daemon by default.
Point your AI tools at it
Set the base URL environment variable for your tool before launching it:
# Claude Code
export ANTHROPIC_BASE_URL=http://localhost:8080
# Cursor / OpenAI-compatible tools
export OPENAI_BASE_URL=http://localhost:8080Then use your AI tool as normal. All traffic flows through sandgrouse transparently.
Check your savings
Open the dashboard in your browser:
http://localhost:8585Or check from the terminal:
sg statsYou'll see per-request sizes, response compression ratios, and cumulative bandwidth savings across sessions.
Stop the proxy
sg stopStats are saved automatically and persist across restarts.