ChatGPT for AI Agents
Use your own OpenAI, Claude, Gemini, Grok or DeepSeek API key and model on an Odoo AI agent. ChatGPT, Claude, Gemini, Grok, and DeepSeek are ready to use, and you can add other providers. Leave the provider empty to keep using Odoo AI credits.
The module is free and listed on Odoo Apps as Other OSI approved licence.
Key features
- Providers for ChatGPT (OpenAI), Claude, Gemini, Grok, and DeepSeek, plus any other provider you add.
- Fetch a provider's chat models, or add and remove models yourself.
- A Model tab on the agent, with provider, model, and an optional API key for that agent only.
- The choice shown on the agent kanban and list.
- Odoo AI credits stay in place when no external model is set. Knowledge sources are still indexed with Odoo AI credits.
Configuration
Providers and models are managed by Settings users, from the AI app.
- Open AI, then Configuration, then LLM Providers.
- Set the API Key on each provider you want to use, then click Fetch models. With Sync Models Daily on and a key set, the same import runs once a day.
- Model Prefixes limits which models the fetch keeps. Leave it empty to accept every chat model. Embedding, image, and audio models are not imported.
- Deleting a fetched model keeps it from coming back. Clear exclusions allows it again on the next fetch. Models you added by hand are left as you set them.
- To add a provider, create one and set its endpoint and API key.
- LLM Models, in the same menu, is where you add or remove a model without waiting for the fetch.
Usage
Open an agent. The Model tab sits between Instructions and Skills.
- Provider: ChatGPT, Claude, Grok, or another provider. Leave it empty to keep Odoo AI credits.
- Model: that provider's models. Pick one to send the agent's chat to that API.
- API Key: optional. When it is set, this agent uses it instead of the key stored on the provider. When it is empty, the provider key is used.
The agent kanban and list show the choice, for example Claude · Claude Opus 4.8. Agents left on credits show Odoo AI.
Knowledge sources are still indexed with Odoo AI credits.
Disclaimer
This module only sends the agent's request to the external model and returns the answer to Odoo. It does not add safety checks of its own. What still applies is what Odoo already does:
- Odoo's agent instructions still go out with the request, including the rule to treat user text, records, documents, and tool results as untrusted data.
- Tools still run with your own access rights. The agent cannot read or change records you cannot, and it cannot use Odoo's blocked internal models (security groups, users settings, devices, and internal ir models).
- Creating or updating records still asks you to confirm, unless that agent is set to auto-confirm.
- Replies shown in the chat are still sanitized by Odoo before they are posted.
- A turn still stops at Odoo's limits on tool calls and successive model calls.
The external provider applies only its own policies. This module does not filter prompts or answers beyond the Odoo behaviour above.
Support
Questions and translations: louis@cdb.solutions or linkedin.com/in/louisdebontin.
Collaboration
For project work, contact Louis de Bontin on LinkedIn, or write to louis@cdb.solutions. See also cdb.solutions.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
AI (ai_agentic)
• Discuss (mail) |
| Lines of code | 1461 |
| Technical Name |
ai_agent_api |
| Website | https://cdb.solutions/ |
Please log in to comment on this module