Skip to content

Configuring Providers

When creating a new provider, technical parameters must be defined that regulate access.

Ontheia supports two provider types:

  • HTTP API: Standard REST API with API key (OpenAI, Anthropic, Ollama, etc.).
  • CLI: Local command-line tool without API key (Gemini CLI, Claude CLI).

For the complete CLI provider configuration, see CLI Provider.

  • Provider ID (Slug): A unique technical identifier (e.g., openai-prod).
  • Display Name: The name that appears in the agent settings.
  • Base URL: The root endpoint of the API (e.g., https://api.openai.com).

Ontheia supports four types of authentication:

  • Bearer Token: Standard for OpenAI/Anthropic (Authorization: Bearer <key>).
  • Custom Header: For APIs with special keys (e.g., X-API-Key).
  • Query Parameter: The key is appended to the URL (e.g., ?api_key=<key>).
  • No Authentication: Ideal for local instances (e.g., Ollama in the internal network).

As with the MCP servers, it is strongly recommended to use the Secret-Ref-Pattern:

  • Instead of the key, specify secret:NAME_OF_THE_KEY.
  • The host service resolves this securely via its environment variables.
  • In the UI, these values are always displayed masked.

What happens if you enter the key directly? It is stored in the database in plain text. Ontheia no longer hands it out over the API — the form field stays empty when you edit a provider, and an empty field leaves the stored key untouched. Enter a new value to replace it; switch the provider to CLI or clear the key explicitly to remove it. The value is not encrypted in the database — that is what the secret: reference is for.

Each model can be assigned a capability:

CapabilityDescription
chatLanguage model for chat and tasks (default)
embeddingVector generation for semantic search
ttsText-to-Speech
sttSpeech-to-Text
imageImage generation