feat(cli-tools): support saving and managing custom API key presets
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user