Reference
Arcane.ai.providerSettings()
Gets provider selection, credential status, and the conversational response-length target.
This focused page is derived from the mechanically checked full member inventory.
Syntax
Arcane.ai.providerSettings()
Parameters
None
Return value
Promise<AIProviderSettingsResult>
Description
Gets provider selection, credential status, and the conversational response-length target.
Overview
Arcane.ai.providerSettings() reads credential-free provider settings for the
Settings application. Use it to initialize provider controls; use
Arcane.ai.profile() in ordinary inference UI.
Parameters
The method takes no arguments.
Return value
It resolves to {provider, openAIModel, openAIConfigured, responseLength}.
openAIConfigured reports only whether protected credential material exists.
The credential is never returned, and this read does not live-validate the
account or configured model.
Availability
This is a desktop Core Settings-only API requiring ai.settings.manage.
Browser previews, other apps, and the current Android projection cannot read
it.
Errors and recovery
METHOD_NOT_ALLOWED requires the admitted Settings application and cannot be
recovered by retry. Transport or protected-store failures should leave the
existing UI state uncommitted and offer a later retry.
Streaming, cancellation, and events
This is a non-streaming read with no method event or exposed signal. Treat its result as a snapshot, especially before a subsequent save.
Example
const settings = await globalThis.Arcane.ai.providerSettings();
console.info({
provider: settings.provider,
model: settings.openAIModel,
credentialPresent: settings.openAIConfigured,
responseLength: settings.responseLength
});