Skip to content

Instantly share code, notes, and snippets.

View shariqriazz's full-sized avatar

Shariq Riaz shariqriazz

View GitHub Profile
@shariqriazz
shariqriazz / FACTORY_PROXY_CC.md
Created October 3, 2025 08:48 — forked from chandika/FACTORY_PROXY_CC.md
Factory CLI with Claude Subscription / ChatGPT Codex via CLIProxyAPI

Executive Summary

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.

Architecture Overview

Factory CLI → [Anthropic Format + API Key] → CLIProxyAPI → [Anthropic Format + OAuth] → Anthropic API
                                                  ↓
 (Auth Header Swap)