Skip to content

AI Providers

The AI Providers page defines the application-level AI services that Emakin features can use.

Open Platform Services → AI Providers. Select Add New AI Provider to create a provider, complete the settings below, and then save the host configuration.

Provider Settings

Setting Description
Is Enabled? Controls whether the provider is available. An enabled provider requires an API key, except that Ollama can operate without one.
Client Type Selects the provider protocol: OpenAI, Azure OpenAI, OpenRouter, Claude, or Ollama.
Name Identifies the provider in Emakin. Use a name that distinguishes the service and model from other configured providers.
Base Url Specifies the provider API endpoint. Enter the endpoint required by the selected client type or compatible service.
Model Specifies the model identifier sent to the provider. Use the exact identifier published by the provider.
Context Length Specifies the model's maximum context size, in tokens, for request planning.
Usage Purpose Selects one or more purposes: User for everyday assistant conversations, Development for process-definition work, and Digest for personal assistant summaries.
Input Modalities Declares the input types accepted by the model: Text, Image, and/or Audio. If no value is stored, Emakin treats the provider as text-only.
API Key Supplies the credential used to call the provider. This value is stored as a password field.

Open the provider row editor to configure Base Url, Usage Purpose, Input Modalities, Protocol, Reasoning, and Reasoning Budget.

Protect the API Key

The API Key field supports environment-variable placeholders. Prefer a placeholder to storing the credential directly in Host Administration.

1
${OPENAI_API_KEY}

The named environment variable must be available to the Emakin agent. If it is missing, the application cannot resolve the provider configuration.

Note

Application-level Ollama providers can operate without an API key. Other provider types require a non-empty resolved key. Domain providers use their own credentials; Ollama can also operate without a key at domain level.

Domain Providers and Selection

Host providers are shared defaults. Edit Domain lists only providers explicitly added to that domain; host definitions are not copied into the domain editor. Domain providers have their own settings and credentials. They do not override host fields by Client Type or Name.

When an assistant request needs a provider, Emakin first checks enabled domain providers for the requested Usage Purpose, then checks host providers if no suitable domain provider exists. Providers with missing required credentials are skipped. If several providers match, the first in configured order is selected. A request failure does not automatically fail over to another provider.

Assign a domain provider to each purpose you want to customize. Purposes without a suitable domain provider continue to use host defaults. Disabling a domain provider allows host fallback; it does not disable the host definition. A provider with no selected purposes is not selected for assistant requests.