Skip to main content
If you connect to Claude Code using an API key and base URL (not OAuth), you can still use cac for identity isolation and telemetry blocking — no proxy needed.

Setup

What’s protected

Without a proxy, cac still provides:

How API vars are handled

When no proxy is configured, cac preserves your environment variables:
  • ANTHROPIC_API_KEY — kept
  • ANTHROPIC_BASE_URL — kept
  • ANTHROPIC_AUTH_TOKEN — kept
When a proxy is configured, cac clears these variables to force OAuth authentication through the proxy. This prevents accidental API key leakage through third-party endpoints.

Multiple API endpoints

You can create separate environments for different API endpoints:
Each gets its own identity and .claude config. Switch between them: