fix(usage): add kilocode fallback to resolveProviderUsageAuthFallback

This commit is contained in:
Chris Kimpton 2026-03-19 09:12:45 +00:00
parent aef7fe3702
commit 4127908b4d

View File

@ -220,6 +220,14 @@ async function resolveProviderUsageAuthFallback(params: {
});
return apiKey ? { provider: "xiaomi", token: apiKey } : null;
}
case "kilocode": {
const apiKey = resolveProviderApiKeyFromConfigAndStore({
state: params.state,
providerIds: ["kilocode"],
envDirect: [params.state.env.KILOCODE_API_KEY],
});
return apiKey ? { provider: "kilocode", token: apiKey } : null;
}
default:
return null;
}