- Knownframe
- CookDex
- Docs
- v2026.11.4
- AI providers
AI providers
AI is optional. Tag and categorize uses rules made from the names you already have, then asks an AI provider about the recipes the rules couldn’t place. Without a provider, use Rules only; everything else in CookDex works the same. Only the recipe text that tagging needs is sent to the provider.
Choose a provider
Section titled “Choose a provider”In Settings → AI helper, pick an AI provider:
| Provider | What you enter | Notes |
|---|---|---|
| OpenAI or compatible (Gemini, OpenRouter…) | Service, API key, Model | The default. Pick OpenAI, Google Gemini, OpenRouter or another OpenAI-compatible service; see below. On OpenAI, gpt-4o-mini is cheap and good enough for tagging. |
| Anthropic | Anthropic API key, Anthropic model | From console.anthropic.com. |
| Ollama (Local) | Ollama address, Ollama model | Runs on your own hardware, for example http://host.docker.internal:11434. The address works with or without /api on the end. |
| Off (rules only) | Nothing | Tagging uses rules only. |
API keys are stored encrypted. Load models lists the models your key or server can use, and the test button next to it (Test connection, Test Anthropic or Test Ollama) sends one tiny request to check that it works.
A single run can use a different provider: AI provider under More options in Tag and categorize overrides the one in Settings. To keep AI costs down, preview first, then apply the reviewed preview, which doesn’t ask the AI again; see Review an AI preview.
OpenAI or a compatible service
Section titled “OpenAI or a compatible service”OpenAI or compatible works with OpenAI and with any service that answers OpenAI’s API. Its Service choice, right under the provider, sets the address:
| Service | Address it fills in |
|---|---|
| OpenAI | None; CookDex uses OpenAI itself. |
| Google Gemini | https://generativelanguage.googleapis.com/v1beta/openai |
| OpenRouter | https://openrouter.ai/api/v1 |
| Another OpenAI-compatible service | One you enter, for gateways such as LiteLLM, vLLM and LM Studio. |
- In Settings → AI helper, set AI provider to OpenAI or compatible.
- Pick a Service. For Another OpenAI-compatible service, enter the gateway’s base address, such as
http://litellm:4000/v1. - Enter the API key from that service: platform.openai.com for OpenAI, aistudio.google.com for Gemini, openrouter.ai for OpenRouter. The link under the picker goes to the right page. A key is required; if your gateway doesn’t check keys, as LM Studio usually doesn’t, enter any placeholder.
- Click Load models and pick a Model from the list. Model names don’t carry over between services, so switching service clears the model.
- Click Test connection. It sends a one-word request and says which address answered. With another service and no model chosen, it asks you to pick one first.
Test connection, Load models and tagging jobs all use that address. A gateway on your own network is fine, since gateways usually run there.
A saved key only goes to the address it was saved with. If you change the service or address later without entering a key, CookDex forgets the saved key, and Test connection and Load models ask for the key for the new address.
You can also set the address on the container as OPENAI_BASE_URL, for example in .env. Jobs started from the web UI use it as well.
CookDex asks the AI for JSON with OpenAI’s JSON mode. Some providers, such as Infomaniak AI Services, refuse JSON mode and only accept structured output. When a provider turns it down, CookDex asks with structured output instead, and with no format if that’s refused too. The run log notes the switch once, and the rest of the run uses the format that worked. Before 2026.11.3, tagging failed on these providers even though the connection test passed.
Ollama
Section titled “Ollama”Ollama runs models on your own hardware, so nothing leaves your network. Small local models are slow on a CPU, so the defaults under the section’s more settings keep requests small: Recipes per request (1), Context window (2048), Longest answer (tokens) (512), CPU threads (4) and Wait per request (seconds) (300). Raise CPU threads if the host has cores to spare.
If a job stops with an Ollama 404, the message says whether the address is wrong or the model isn’t on the server, and gives the ollama pull command for the model. Before 2026.10.6, jobs failed this way when the address didn’t end in /api, even though Test Ollama passed.
While the AI works on a batch, the run’s log says so every 30 seconds (Progress message every (seconds); 0 turns it off).
Linking ingredients doesn’t need AI
Section titled “Linking ingredients doesn’t need AI”Link ingredients reads ingredient lines in CookDex. For recipes it isn’t sure about, it can fall back to Mealie’s own OpenAI parser, which uses the OpenAI settings in Mealie, not the ones in CookDex.