fix(cliproxy): use correct --claude-login flag for Claude OAuth

- CLIProxyAPI expects --claude-login, not --anthropic-login

- Fixes 'CLIProxy auth exited with code 2' error

Closes #382
This commit is contained in:
kaitranntt
2026-01-27 21:39:19 -05:00
parent 409ad67afb
commit 8017ce8f86
+1 -1
View File
@@ -127,7 +127,7 @@ export const OAUTH_CONFIGS: Record<CLIProxyProvider, ProviderOAuthConfig> = {
displayName: 'Claude (Anthropic)',
authUrl: 'https://console.anthropic.com/oauth/authorize',
scopes: ['user:inference', 'user:profile'],
authFlag: '--anthropic-login',
authFlag: '--claude-login',
},
};