# TokenBeaver > TokenBeaver is an AI cost gateway for developers. It installs as a VS Code extension and runs a local gateway that sits between your AI coding agent and the model provider, trimming wasted tokens before they reach your bill. Internal testing shows 40–70% lower API spend. It is local-first: your prompts, code, and API keys never leave your machine. ## What it does - Optimizes both the input and output of AI coding requests, alongside context and cache, so each request carries fewer tokens while returning the same answer. - Runs as a local gateway (default Base URL http://127.0.0.1:4505/v1) that you point your coding tool at, using your own API key — TokenBeaver forwards it unchanged. - Fail-open architecture: if the gateway is unavailable, requests pass through normally rather than breaking your workflow. ## Key facts - Pricing: Free tier includes 20 optimizations per month with full feature access. Pro is $15/month or $100/year (about $8.33/month) with unlimited optimizations and a 14-day free trial. No credit card required to start. - Privacy: Local-first by design. Prompts, code, and provider keys stay on the user's machine. TokenBeaver never proxies billing or touches the user's model account. - Measured impact: 40–70% lower API spend and 15–25% more usable Claude Code quota in a 5-hour rolling window, depending on session length, model, workload, and number of sub-agents (figures from internal testing). ## Supported tools - Claude Code (set ANTHROPIC_BASE_URL to the gateway, without the /v1 suffix) - VS Code - Cursor (Settings → Models → Override OpenAI Base URL) - Cline / Roo Code (Settings → API Provider → OpenAI Compatible → Base URL) - GitHub Copilot (TokenBeaver Settings → Provider → GitHub Copilot, beta) ## Pages - Home: https://tokenbeaver.ai/ - Pricing & FAQ: https://tokenbeaver.ai/pricing - Integrations & setup: https://tokenbeaver.ai/integrations - About: https://tokenbeaver.ai/about ## Install - VS Code Marketplace: search "TokenBeaver" or install the extension directly. - Direct download (.vsix): https://tokenbeaver.ai for offline or locked-down setups.