← Back to docs
Docs / Reference

Commands & configuration

Every command, setting, CLI flag, and environment variable TokenBeaver understands — in the VS Code extension and in the standalone gateway.

VS Code Command Palette commands

Open the Command Palette with Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS) and type "TokenBeaver" to see all of these.

Command IDPalette titleWhat it does
tokenbeaver.openSettingsTokenBeaver: Settings & ProvidersOpens the settings/providers webview
tokenbeaver.openFeedbackTokenBeaver: Feedback & SupportOpens the feedback page
tokenbeaver.enterLicenseTokenBeaver: Activate or Upgrade to ProPaste an activation token, or activate via purchase email
tokenbeaver.showStatusInfoTokenBeaver: Show Status InfoShows current license/gateway status
tokenbeaver.copyShareSnippetTokenBeaver: Copy Shareable SavingsCopies a shareable savings summary to the clipboard
tokenbeaver.openDashboardTokenBeaver: Open Cost DashboardOpens the cost/savings dashboard
tokenbeaver.analytics.exportTokenBeaver: Export AnalyticsExports recorded analytics data
tokenbeaver.analytics.resetTokenBeaver: Reset AnalyticsClears recorded analytics
tokenbeaver.gateway.startTokenBeaver: Start GatewayStarts the local proxy
tokenbeaver.gateway.stopTokenBeaver: Stop GatewayStops the local proxy
tokenbeaver.gateway.copyBaseUrlTokenBeaver: Copy Gateway Base URLCopies the base URL for pointing agents at the gateway
tokenbeaver.gateway.statusTokenBeaver: Gateway StatusReports whether the gateway is running / on which port
tokenbeaver.gateway.setupTokenBeaver: Agent Setup InstructionsShows how to point coding agents at the gateway
tokenbeaver.claudeCode.repairHooksTokenBeaver: Repair Claude Code HooksRe-installs TokenBeaver hooks into ~/.claude/settings.json
tokenbeaver.openBillingPortalTokenBeaver: Manage SubscriptionOpens the Stripe Billing Portal (cancel/invoices/payment method)

VS Code settings

Set these in VS Code's Settings UI (search "tokenbeaver") or directly in settings.json.

SettingDefaultWhat it does
tokenbeaver.provideropenaiLLM provider for the engine/CLI (openai/anthropic/openrouter/custom/copilot)
tokenbeaver.baseUrl""Override API base URL for OpenAI-compatible providers
tokenbeaver.modelgpt-4o-miniModel for the engine/CLI
tokenbeaver.timeout15000Engine/CLI API timeout (ms)
tokenbeaver.analytics.retentionDays90Days of analytics kept for the dashboard (7–730)
tokenbeaver.gateway.port4505Local gateway port
tokenbeaver.gateway.provideropenrouterUpstream provider for the gateway (built-ins + custom names)
tokenbeaver.gateway.upstreamBaseUrl""Upstream base URL override (required for custom endpoints)
tokenbeaver.gateway.customProviders[]User-defined providers: { name, baseUrl }[]
tokenbeaver.gateway.timeoutMs60000Gateway upstream timeout (ms)
tokenbeaver.gateway.codeCompactionEnabledtrueFold/compact code-like content in context; off = send code untouched
tokenbeaver.gateway.readDedupEnabledtrueReplace repeated reads of unchanged files with a stub (needs gateway restart)
tokenbeaver.gateway.routingEnabledfalseOpt-in model routing (upgrades only, never downgrades)
tokenbeaver.gateway.tierModels{}Per-tier routing overrides: { cheap|balanced|premium: { provider, model } }
tokenbeaver.gateway.autoStartfalseStart the gateway when VS Code opens
tokenbeaver.claudeCode.installHookstrueAuto-install Claude Code hooks on gateway start

Gateway CLI

The standalone gateway runs outside VS Code too — same optimizer, driven from your terminal.

CommandWhat it does
tokenbeaver-gatewayStart the gateway server
tokenbeaver-gateway --reportPrint lifetime + per-session savings report
tokenbeaver-gateway --reset-metricsReset all recorded metrics
tokenbeaver-gateway --activate <token>Activate a Pro license from a checkout token
tokenbeaver-gateway --install-claude-hooksInstall hooks into ~/.claude/settings.json
tokenbeaver-gateway --uninstall-claude-hooksRemove those hooks
tokenbeaver-gateway --helpUsage message

Gateway environment variables

Environment variables configure the standalone gateway process. When the gateway is started from the VS Code extension, the corresponding VS Code settings above take care of these for you.

Env varDefaultWhat it does
TOKENBEAVER_GATEWAY_PORT4505Listen port
TOKENBEAVER_GATEWAY_PORT_STRATEGYauto-detectedstrict (fail if busy) · auto (scan for free port) · reuse (attach to existing gateway)
TOKENBEAVER_PROVIDERopenrouterUpstream provider (openai/anthropic/openrouter/copilot/custom)
TOKENBEAVER_UPSTREAM_BASE_URLExplicit upstream base URL (required for custom)
TOKENBEAVER_TIMEOUT_MS60000Upstream request timeout
TOKENBEAVER_CODE_COMPACTION_ENABLEDtruefalse disables code-folding compaction
TOKENBEAVER_READ_DEDUPonoff disables read deduplication
TOKENBEAVER_TOOL_BUDGETSBash 200 / Grep 150 / Agent 200 / other 500Override per-tool line caps, e.g. bash:100,grep:50 (empty value = no cap)
TOKENBEAVER_INSTALL_CLAUDE_HOOKSonoff skips hook install on gateway start
Something missing or unclear?

Email [email protected] or visit the support page — a real developer will get back to you.