feat(cli-tools): support saving and managing custom API key presets

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
decoluaandClaude Code committed 2026-09-03 09:06:08 +07:00
1 parent 1fc2a81d65
commit c24a854278
3 files changed
+140 -75

No files matched your search

@@ -131,9 +131,9 @@ export default function ClaudeToolCard({
}
}
});
// Only set selectedApiKey if it exists in apiKeys list
// Restore key from settings.json; ApiKeySelect matches it against saved presets
const tokenFromFile = env.ANTHROPIC_AUTH_TOKEN;
if (tokenFromFile && apiKeys?.some(k => k.key === tokenFromFile)) {
if (tokenFromFile) {
setSelectedApiKey(tokenFromFile);
}
}