CreateIndeRunWebOptions
Configuration for the default Web SDK factory.
Properties
Section titled “Properties”allowDirectOpenAIEndpoint?
Section titled “allowDirectOpenAIEndpoint?”
optionalallowDirectOpenAIEndpoint?:boolean
Explicit opt-in for calling a public Responses endpoint directly from this Web SDK factory — OpenAI’s or OpenRouter’s — with browser-held credentials.
Browser apps should leave this unset and use a proxy endpoint with openAI.auth = "none" instead.
Direct calls can expose credentials to client-side code and are appropriate only for controlled
non-production environments.
hostServices?
Section titled “hostServices?”
optionalhostServices?:CreateBrowserHostServicesOptions
Optional browser host service overrides.
modelProfiles?
Section titled “modelProfiles?”
optionalmodelProfiles?:Readonly<Record<string, readonlystring[]>>
Named model profiles requests can route within. Each maps a profile name to an
ordered list of target ids, for example { smart: ["openai:gpt-5.2"] }.
neuralSpeech?
Section titled “neuralSpeech?”
optionalneuralSpeech?: (NeuralSpeechProviderOptions&ProviderRegistrationOptions)[]
Neural speech providers registered by the factory, one per developer-supplied speech model
package, each with the runtime that executes it. Every entry gets the id
local.onnx.speech.web:<modelPackage.id> unless it sets id, so one app can register several
models side by side. Playback needs the host’s audioOutput; artifacts do not.
optionalonnx?:OnnxProviderOptions&ProviderRegistrationOptions
Web ONNX Runtime provider configuration registered by the factory, for developer-supplied
local models. Registering it is what makes constraints.privacy = "local_required" routable.
openAI?
Section titled “openAI?”
optionalopenAI?:OpenAIFactoryOptions
OpenAI Responses provider configuration registered by the factory. One target is
registered per entry in models, with id <id>:<model> (id defaults to
"openai"), so model profiles can list each model separately.
systemModel?
Section titled “systemModel?”
optionalsystemModel?:SystemModelProviderOptions&ProviderRegistrationOptions
Web system-model provider configuration registered by the factory, for browser-managed
on-device models (for example Chrome’s Prompt API). Unlike onnx, this provider takes no
developer-supplied model: the browser owns model availability, download, and execution.
systemSpeech?
Section titled “systemSpeech?”
optionalsystemSpeech?:SystemSpeechProviderOptions&ProviderRegistrationOptions
Browser speech provider configuration registered by the factory, over speechSynthesis.
Playback only; pass {} for the defaults. Speech is opt-in, because the router probes every
registered provider on every request.
IndeRun — open-source AI execution for cross-platform apps. Built and maintained by Independo GmbH (opens in new tab), supported by netidee (opens in new tab).
MIT-licensed SDK · No SDK usage telemetry.
© 2025–2026 Independo GmbH