AI Provider Pool
Adds Anthropic Claude, DeepSeek, and any OpenAI-compatible LLM — self-hosted (Ollama, vLLM, LM Studio) or cloud (Kimi, Qwen, MiniMax, Zhipu GLM) — as native AI providers in Odoo 19 Enterprise, with web search, automatic embedding fallback and a configurable AI automation model.
One install, three new providers
Odoo 19 Enterprise ships with OpenAI and Google Gemini as built-in AI providers. This module registers three additional providers into the same native framework, so they appear in the AI Agent model selector alongside the defaults — no patching, no wrapper, no separate configuration page.
Anthropic Claude
Full Messages API integration with tool calling and server-side
web search. Supports Claude Opus, Sonnet, and Haiku models. API key configured per database
in Settings → AI, or via the ODOO_AI_ANTHROPIC_TOKEN
environment variable.
DeepSeek
Chat Completions API with function calling. Supports DeepSeek V4 Pro
and V4 Flash models. Optional web search via Tavily (see below). API
key configured per database or via ODOO_AI_DEEPSEEK_TOKEN.
Custom LLM — self-hosted & OpenAI-compatible cloud
One slot connects any endpoint exposing
/v1/chat/completions — whether self-hosted
(Ollama, vLLM, LM Studio, HuggingFace TGI) or an OpenAI-compatible
cloud provider. Point the URL at the endpoint, set the key, add the
model names. Type host:port and the /v1
suffix is added automatically; a URL with its own version path
(/v1, /paas/v4) is used as-is. API key is
optional for local installs without authentication. One endpoint is
active at a time.
The slot has three fields, and all three describe the same one endpoint — the difference between self-hosted and cloud is only what you type in them, not which fields you use:
- LLM Server URL — where the endpoint lives.
Filled in both cases: your own server
(
http://localhost:11434) for self-hosted, or the provider's base URL (https://api.moonshot.ai/v1) for a cloud model. - LLM API Key — the bearer token that authenticates against that URL. Leave empty for a local engine with no auth (e.g. Ollama); required for cloud providers and for any self-hosted server that enforces a token.
- LLM Models — the model identifiers that
endpoint serves (e.g.
kimi-k3,qwen2.5:14b). They appear in the AI Agent model selector. Type them or click Fetch Available Models to pull the list.
Mainstream OpenAI-compatible clouds it connects to, for example:
- Moonshot Kimi —
https://api.moonshot.ai/v1(international) orhttps://api.moonshot.cn/v1(China) — (kimi-k3, kimi-k2, moonshot-v1-*) - Alibaba Qwen / Tongyi Qianwen (DashScope
compatible mode) —
https://dashscope.aliyuncs.com/compatible-mode/v1(qwen-max, qwen-plus, qwen-turbo, qwen3-*) - MiniMax —
https://api.minimax.io/v1(MiniMax-M series; open weights are also self-hostable on vLLM) - Zhipu GLM —
https://open.bigmodel.cn/api/paas/v4(glm-4.6, glm-4-plus)
- Fetch Available Models — one-click
discovery via
/v1/modelson the configured server. - Test Connection — verifies reachability before going live.
Automatic Embedding Fallback
Anthropic, DeepSeek, and self-hosted models do not provide embedding APIs. Without this module, selecting one of these models on an AI Agent and uploading a Knowledge Source would fail with an error.
This module solves the problem transparently: when the agent's chat provider has no embedding capability, the module automatically falls back to any provider that has both an embedding model and a configured API key (OpenAI or Google).
| Configuration | Chat (Agent conversation) | Embedding (Knowledge Sources) |
|---|---|---|
| Claude key + OpenAI key | Claude | OpenAI (automatic) |
| Claude key + Google key | Claude | Google (automatic) |
| DeepSeek key + OpenAI key | DeepSeek | OpenAI (automatic) |
| Claude key only (no Source) | Claude | Not needed |
| Claude key only + Source upload | Claude | Clear error: add OpenAI or Google key |
How it works: Embedding is not "reading" — it is a one-time conversion of your documents into numeric vectors for similarity search. When a user asks a question, the system searches for relevant document passages using the embedding provider, then passes those passages as plain text to your chosen chat model (Claude, DeepSeek, etc.) for the actual answer. 99% of the cost is on the chat model; embedding costs are negligible.
AI Automation Model
Native Odoo 19 hardcodes OpenAI GPT-4.1 for all AI-powered server actions, regardless of which model you selected on your AI Agent.
This module adds a global AI Automation Model setting in Settings → AI. Once set, all AI-powered automations — document sorting, automated actions, workflow triggers — use your preferred model instead of the hardcoded default.
If left empty, the native GPT-4.1 default is preserved. You can switch at any time without restarting.
Configuration
All provider settings live in Settings → AI, in the same section as the native OpenAI and Gemini providers:
- AI Automation Model — choose which LLM powers AI-driven server actions and automations.
- API keys — per database, stored as system parameters. Also readable from environment variables for containerized deployments.
- LLM Server URL — auto-completed from
host:portinput. - Custom model list — manually entered or
fetched from the server's
/v1/modelsendpoint. - Tavily API key — optional; enables web search for DeepSeek and self-hosted models.
Multi-company safe. Keys and URLs are stored as system parameters shared across companies.
AI Agents with new providers
After installation, Claude, DeepSeek, and your self-hosted models appear directly in the AI Agent model selector. No additional configuration is needed beyond providing the API key or server URL.
Knowledge Sources (PDFs, documents, URLs) work with any chat model — embedding is handled automatically via the fallback mechanism described above.
What works with the new providers
| Feature | Status | Notes |
|---|---|---|
| AI Agent conversations | Supported | Full tool calling for all providers |
| Knowledge Sources (RAG) | Conditional | Embeddings require an OpenAI or Google key. Claude, DeepSeek and self-hosted chat models have no embedding API; when one is used, this module routes embeddings to your OpenAI/Google key automatically. Without such a key, Knowledge Sources cannot be embedded. |
| AI Server Actions / Automations | Supported | Configurable via AI Automation Model setting |
| AI Search (Natural Language Query) | Supported | Uses the agent's chat model |
| Email template generation | Supported | Uses the default agent's model |
| AI Field Fill | OpenAI only | Odoo uses the /responses endpoint, unavailable on other providers |
| File attachments in chat | OpenAI / Gemini only | Requires provider-specific file handling |
| Structured output (JSON schema) | OpenAI / Gemini only | Requires provider-specific response format |
| Web search (grounding) | All 5 providers | One toggle on the AI Agent — Search the Web — enables it for OpenAI, Gemini, Claude, DeepSeek and self-hosted models. Each provider uses a different underlying mechanism (see below). Odoo has no such toggle out of the box; this module adds it. |
Web search on any model
Turn on Search the Web on any AI Agent and it can ground its answers in live web results. Odoo 19 ships no such toggle — this module adds it and wires each provider to the right mechanism. Results are localized to your company's country automatically (OpenAI adds your city too).
| Provider | How it searches |
|---|---|
| OpenAI | The model's own built-in web search, with your company country and city passed for localized results. |
| Claude | Anthropic's server-side web search tool, version-matched to the Claude model automatically. |
| Gemini | Google's built-in search. Model limitation: Gemini cannot combine web search with tools — when the agent also has tools attached, Gemini answers without searching. This is a restriction of the Gemini API itself, not this module; we detect it and reply normally instead of erroring. |
| DeepSeek | These models have no native web search, so the module runs the search itself through Tavily: add a Tavily API key in Settings → AI and the model gains a search tool it can call. Without a key it simply answers without searching. |
| Custom LLM | Same as DeepSeek — web search via a Tavily key, since self-hosted and OpenAI-compatible chat servers ship no search of their own. |
Why the mechanisms differ: each model ships different capabilities. OpenAI, Gemini and Claude carry their own search; DeepSeek and self-hosted models do not, so the module supplies one via Tavily. Any per-model behavior above (such as Gemini's tools-vs-search limit) comes from the model provider's own API, not from this module — the module simply exposes one consistent toggle and routes each model to the best available option.
Requirements
- Odoo 19 Enterprise — depends on the
ai_appmodule. - At least one API key for any of the three providers, or a reachable self-hosted endpoint.
- For Knowledge Sources: an additional OpenAI or Google API key for embedding (only needed when using Claude, DeepSeek, or a Custom LLM as the chat model).
- For web search on DeepSeek / self-hosted: an optional Tavily API key (OpenAI, Gemini and Claude search natively without one).
- Network egress from the Odoo server to
api.anthropic.com,api.deepseek.com,api.tavily.com, or your self-hosted server.
License & support
Released under the GNU Lesser General Public License v3
(LGPL-3.0-or-later). The full license text is included in the
LICENSE file shipped with the module.
Maintained by SuiteState. For questions, bug
reports, or feature requests, visit
suitestate.com or contact
hello@suitestate.com.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
AI (ai_app)
• Discuss (mail) |
| Lines of code | 968 |
| Technical Name |
suite_ai_provider_pool |
| License | LGPL-3 |
| Website | https://suitestate.com |
Please log in to comment on this module