+
+ Configure CLIProxy authentication tokens. Changes require CLIProxy restart.
+
+
+ {/* API Key Section */}
+
+
+
+
API Key
+ {tokens.apiKey.isCustom && (
+
+ Custom
+
+ )}
+
+
+ Used by Claude Code to authenticate with CLIProxy
+
+
+
+
setEditedApiKey(e.target.value)}
+ onBlur={() => {
+ if (editedApiKey !== null && editedApiKey !== tokens.apiKey.value) {
+ saveApiKey();
+ } else {
+ setEditedApiKey(null);
+ }
+ }}
+ placeholder="API key"
+ disabled={saving}
+ className="pr-20 font-mono text-sm"
+ />
+
+
+
+
+
+
+
+
+ {/* Management Secret Section */}
+
+
+
+
Management Secret
+ {tokens.managementSecret.isCustom && (
+
+ Custom
+
+ )}
+
+
+ Used by CCS dashboard to access CLIProxy management APIs
+
+
+
+
setEditedSecret(e.target.value)}
+ onBlur={() => {
+ if (editedSecret !== null && editedSecret !== tokens.managementSecret.value) {
+ saveSecret();
+ } else {
+ setEditedSecret(null);
+ }
+ }}
+ placeholder="Management secret"
+ disabled={saving}
+ className="pr-20 font-mono text-sm"
+ />
+
+
+
+
+
+
+
+
+
+ {/* Actions */}
+
+
+
+ Resets both API key and management secret to their default values.
+
+
+
+