opencode auth login
# Select "Kimi For Coding"
# Enter your API key (sk-kimi-...)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "custom_models": [ | |
| { | |
| "model_display_name": "Claude Opus 4.5 Thinking Low [Proxy]", | |
| "model": "claude-opus-4-5-20251101(low)", | |
| "base_url": "http://localhost:8317", | |
| "api_key": "dummy-not-used", | |
| "provider": "anthropic" | |
| }, | |
| { |
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)