feat: add Gemini API key onboarding

This commit is contained in:
Jonáš Jančařík
2026-01-08 14:44:40 +01:00
committed by Peter Steinberger
parent 340d5d03f2
commit 302d51fd40
9 changed files with 75 additions and 2 deletions

View File

@@ -33,6 +33,19 @@ export async function setAnthropicApiKey(key: string, agentDir?: string) {
});
}
export async function setGeminiApiKey(key: string, agentDir?: string) {
// Write to the multi-agent path so gateway finds credentials on startup
upsertAuthProfile({
profileId: "google:default",
credential: {
type: "api_key",
provider: "google",
key,
},
agentDir: agentDir ?? resolveDefaultAgentDir(),
});
}
export function applyAuthProfileConfig(
cfg: ClawdbotConfig,
params: {