This guide documents how to use Factory's Droid CLI with your Claude Code Max subscription (OAuth authentication) instead of pay-per-token API keys. The solution leverages CLIProxyAPI as a transparent authentication proxy that converts API key requests from Factory CLI into OAuth-authenticated requests for Anthropic's API.
Factory CLI โ [Anthropic Format + API Key] โ CLIProxyAPI โ [Anthropic Format + OAuth] โ Anthropic API
โ
(Auth Header Swap)