usebruno/bruno · error · Error
Unknown AI provider: ${providerId}
Error message
Unknown AI provider: ${providerId} What it means
Error "Unknown AI provider: ${providerId}" thrown in usebruno/bruno.
Source
Thrown at packages/bruno-electron/src/ipc/ai/providers.js:103
apiKeyPlaceholder: 'sk-...',
apiKeyHelpUrl: null,
isCustom: true,
endpointId: endpoint.id,
baseURL: endpoint.baseURL || ''
});
const getSdk = ({ providerId, apiKey, baseURL }) => {
const isCompat = isOpenAiCompatibleProviderId(providerId);
const effectiveKey = isCompat && !apiKey ? '' : apiKey;
const key = sdkCacheKey({ providerId, apiKey: effectiveKey, baseURL });
let sdk = sdkCache.get(key);
if (sdk) return sdk;
if (isCompat) {
sdk = createOpenAI({ apiKey: effectiveKey, baseURL });
} else {
const provider = PROVIDERS[providerId];
if (!provider) throw new Error(`Unknown AI provider: ${providerId}`);
sdk = provider.createSdk({ apiKey });
}
sdkCache.set(key, sdk);
return sdk;
};
const clearSdkCache = () => {
sdkCache.clear();
};
const listProviders = (aiPreferences) => {
const builtIn = Object.values(PROVIDERS).map((p) => ({
id: p.id,
label: p.label,
apiKeyPlaceholder: p.apiKeyPlaceholder,
apiKeyHelpUrl: p.apiKeyHelpUrl,
isCustom: falseView on GitHub (pinned to 9bdd81c7bd)
Solutions
- Use a provider id from the supported provider list.
- Check spelling/configuration of the provider in preferences.
When it happens
Trigger: Thrown at packages/bruno-electron/src/ipc/ai/providers.js:103 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of usebruno/bruno@9bdd81c7bd (2026-08-13).
Data as JSON: /api/errors/5d0108aea8275146.
Report an issue: GitHub.