Which Odoo AI features need your own API key on self-hosted databases
If you are deciding whether to switch on Ask AI, AI fields, AI server actions or agents, the first fact to settle is the key. Odoo.sh and on-premise databases need an OpenAI or Gemini API key before any AI feature works, while Odoo Online users may optionally add their own key. That means a self-hosted or Odoo.sh deployment carries a provider contract, a billing account and a key lifecycle that your team has to own, and your security and procurement reviewers should see those before the feature is enabled.
The feature set sits in the AI app and covers Ask AI from the command palette, AI fields that generate or fill values on records, AI server actions that run inside automated workflows, agents, email template help and live chat assistance. Each one sends record content to the provider, so the decision is per feature. Ask AI and email template help are usually the first candidates for a pilot because users invoke them directly. AI server actions and agents need more scrutiny because they can run without a person reviewing the prompt or the output, and they can touch records across several apps. Confirm in the Odoo AI documentation which settings and access rights apply to each feature in your database version before you assign them to users.
Before you enable anything, write down which teams need which features, which models the key can call, and who may create or edit AI server actions. Then confirm with your compliance lead which record types (contacts, invoices, employee data, support tickets) may be included in a prompt. Keys should be issued to a named owner with a spending limit at the provider, stored outside source code, and rotated on a schedule you define. Ask your Odoo partner to show where the key is entered on your database and who can read it in the settings.
How the hosting type changes AI key ownership
Odoo Online is the hosted option run by Odoo itself. Users can use AI features with Odoo's default setup, and they may optionally add their own Gemini or OpenAI API key. Adding a key changes which account is billed for model usage and which provider account holds the data sent for processing, so the choice is a governance decision as well as a cost one. Odoo Online is only available on the One App Free and Standard plans, and the Custom plan does not change where the database lives for this option.
- Default access: AI features are available without your own key, so the provider relationship sits with Odoo.
- Optional own key: Adding a Gemini or OpenAI key moves usage billing and provider terms to your organization's account.
- Plan limits: Online databases on the free and Standard plans cannot use custom modules or external API access, which shapes which AI features you can extend.
- Shared hosting boundary: Odoo runs the infrastructure, so your review focuses on the provider path and user permissions, not server controls.
- Confirm with Odoo: Ask which AI features are enabled on your plan and where prompts are processed before approving the rollout.
Before you approve Odoo Online for AI use, confirm the plan, whether your team will add its own key, and which provider account your compliance team will review.
Odoo.sh is Odoo's managed platform for self-hosted-style deployments, and it can only run on the Custom plan according to Odoo's pricing page. On Odoo.sh, AI features require an API key from your own account, so your organization controls the provider relationship from the start. Development, staging and production branches may each need configuration, which means keys and settings must be checked in every environment you use.
- Key required: AI features need a Gemini or OpenAI key that you supply and manage.
- Custom plan only: Confirm plan access before design work, because Standard does not offer Odoo.sh.
- Per-branch configuration: Staging copies can inherit or lose settings, so verify keys in each environment.
- Provider billing: Usage is billed through your provider account, so set spending limits and monitor consumption.
- Data path review: Document which records, fields and attachments an AI feature can send to the provider.
For Odoo.sh, confirm the Custom plan, the key owner, the environments that will hold keys, and the provider settings your security team needs to review.
On-premise deployments run Odoo in infrastructure you control, which gives you the most control over network paths and secrets. As with Odoo.sh, AI features need your own Gemini or OpenAI API key, and on-premise use also requires an Enterprise subscription and the Custom plan. Because the server is yours, the outbound network path to the provider is your responsibility, so firewall rules, proxies and logging must allow only the intended destinations.
- Key required: Store the provider key in a secrets system or protected configuration, not in shared documents.
- Egress control: Limit outbound traffic from the Odoo server to the approved provider endpoints.
- Custom plan and Enterprise: Confirm both the plan and the subscription code activation before planning AI use.
- Test copies: Duplicated databases can carry keys or AI settings, so review them before use outside production.
- Audit trail: Keep logs of which users invoked AI features and which models were called.
For on-premise, confirm the plan, the subscription, the key storage method and the approved provider endpoints with your network and security teams before go-live.
How an AI request leaves your Odoo database
The request starts with a user action inside Odoo, such as Ask AI from the command palette or an AI field. The AI app then uses the API key configured for the database to call the chosen provider, Gemini or OpenAI, and the response returns into the record or chat. On Odoo.sh and on-premise databases, the outbound call crosses your firewall and egress rules, so check those rules and the key storage before go-live.
Request path from an Odoo user action to the external AI provider and back.
Which AI feature fits which team and data risk
This table compares Ask AI, AI fields, AI server actions, agents, email template help and live chat assistance by the data each reads, whether it writes back to records, who can trigger it and the review it needs. Use it to sort features into low, medium and high review tiers before enabling them. Per-feature data flows change between versions, so confirm each one in the release your database runs.
| Feature | What it reads and writes | Who triggers it and review before rollout |
|---|---|---|
| Ask AI (command palette) | Reads the question and the context the user supplies in the session; whether it writes to records depends on the action the user then takes. Confirm the record data sent to the provider in your version. | Any user with access to the app menu. Review the prompts users are likely to type and the records they can open. |
| AI fields | Generates or fills values in a field on a record, so it reads the source fields it is configured to use and writes the generated result back to the field. | Set up by administrators on specific models. Review which fields feed the prompt, whether personal or customer data is included, and who can edit the output. |
| AI server actions | Runs configured logic that can read record data and update records or call other models, so write-back depends on how the action is built. | Typically configured by administrators or developers and triggered by users or automation. Review each action's code path, record scope and rollback behavior. |
| Agents | Can read and act across data the agent is permitted to use, including writing back where its tools allow. Confirm the tools and access each agent is granted. | Usually assigned by administrators to defined roles. Review tool permissions, record access rules, audit visibility and approval steps before any write action. |
| Email template help | Reads the template and related sample content to suggest wording; the suggestion is applied to the template only when a user accepts it. | Users who edit email templates. Review the template fields that may carry customer data and the sending process that follows. |
| Live chat assistance | Reads visitor messages and any knowledge sources connected to the chat; it may send visitor text to the configured provider. | Visitors on public channels, so this is the most exposed entry point. Review what content the assistant can reach, handoff rules and the privacy notice shown to visitors. |
Setting up AI features with your own provider key
This sequence takes an Odoo database from plan check to verified AI use, with the provider key scoped, the Odoo settings and user groups configured, a pilot run on a test copy, and outbound traffic and logs reviewed before production users rely on the features.
Confirm plan and hosting type
Check which Odoo plan and hosting type the database runs on before anything else. According to Odoo's pricing page, only the Custom plan can be hosted on Odoo.sh or on-premise, so a self-hosted database needs that plan. Odoo's AI documentation says Odoo.sh and on-premise databases require your own API key, while Odoo Online users may optionally add one. Ask your Odoo contact to confirm the plan in writing and record the hosting type in your change record. The step is done when the plan and hosting type are documented and match what the subscription covers.
Create and restrict the provider key
Create a dedicated API key with OpenAI or Gemini, depending on which provider you approve. Do not reuse a personal or shared key from another project. At the provider, set the spending limit and restrict the key to the services and models your review approved, following the provider's current options for key scope and budgets. Store the key in your secrets manager, not in a spreadsheet or chat. The step is done when the key has a named owner, a documented spend limit and a restriction record that your security team has reviewed.
Enter the key in the Odoo AI settings
In the Odoo AI app settings, enter the provider key in the field for the chosen provider and save. Confirm that only administrators can view or change the field, following Odoo's AI API keys documentation for where the setting lives in your version. Then make a single test request from the Ask AI command palette using non-sensitive sample text. The step is done when the test request returns a response and the key field is restricted to administrators, which you verify by logging in as a non-admin user.
Enable AI apps and user groups
Decide which users may use AI features and enable only those access groups. Map each group to a job role, such as sales users who may use AI fields on contacts, and leave the rest disabled. Test each group with a sample user to confirm that Ask AI, AI fields, AI server actions and agents appear only where intended. Remove access from any group that the review did not approve. The step is done when a written access matrix lists each group, the AI features it can use and the person who approved it.
Pilot on a test database copy
Create a test copy of the production database and run the AI features there first. Odoo documents database duplication with neutralization for test copies, so use that option so that outgoing email, payment and integration settings do not act on live systems. Run representative prompts with synthetic or approved records, and record which fields, records and attachments are sent to the provider. The step is done when the pilot log lists every AI feature tested, the data classes involved and the owner's sign-off on the results.
Verify outbound access
Ask your network team to confirm which outbound destinations the Odoo server can reach for the chosen provider, and to allow only those endpoints from the application server. Confirm the allowed list against the provider's current documentation and your egress policy, since endpoints can change. Test from the Odoo server that the provider is reachable and that other external destinations are blocked as intended. The step is done when the firewall or proxy rule is documented, the allowed endpoints are confirmed in writing and a blocked-destination test has been recorded.
Review logs and approve production use
Review Odoo server logs and the provider's usage dashboard from the pilot and the first controlled production period. Check that requests match the approved features and users, that spend stays within the limit and that no unexpected data classes appear in prompts. Confirm how long logs are kept and who can read them, and plan a recurring review with your compliance team. The step is done when the review findings are filed, any gaps have owners and dates, and the approver signs the production go-ahead.
Which data reaches the provider and how to control it
Odoo AI features send prompt context from your database to the model provider you configure, so the data reaching OpenAI or Google is set by your own records, permissions and actions. The six controls below are decisions to make before rollout, and each one narrows what leaves your infrastructure.
Inventory of prompt context
Start by listing which fields, related records and attachments Ask AI, AI fields and agents read when they build a prompt. Customer names, contact details, pricing, employee data and free-text notes are common sources, and a field that looks harmless in a form can carry personal data into a prompt. Confirm the exact context each feature sends in your Odoo version, then decide which fields stay out of scope for AI.
Odoo AI docsUser group and record rule scope
AI actions run with the permissions of the user who triggers them, so a broad group can expose records that should stay restricted. Map which groups may use Ask AI and AI fields, then confirm record rules limit what those users can read in the first place. Test with a low-privilege account before go-live, since the model only sees what that account can already access.
Server actions that write data
AI server actions can create, update or send records based on model output, which turns a prompt injection or a wrong answer into a database change. Decide which actions may write, which need a human approval step, and which must never run automatically. Record each action's owner and its trigger so reviewers can trace every automated change back to a rule.
API key storage and rotation
Odoo.sh and on-premise databases need your own OpenAI or Gemini API key, so the key becomes a credential that can send your data to a third party. Decide who may create and view keys, where they are stored, and how often they rotate. Confirm that keys are removed from test copies, since a duplicated database can otherwise keep a working key.
Odoo AI API keys docsAudit logging of AI activity
Decide what evidence you need to show who used AI features, against which records, and what changed as a result. Confirm which events Odoo records by default and which need extra configuration or an external log pipeline. Retention of these logs should match your internal policy and any regulatory requirement that applies to the data involved.
Provider retention and training terms
How long OpenAI or Google keep prompts, whether they use your data for model training, and where processing happens are set in each provider's terms and account settings, not in Odoo. Ask your legal and procurement teams to read the current terms directly with the provider, confirm the account tier you will use, and record the answers in your data processing documentation. Do not rely on secondhand summaries.
What regulated teams need to review before turning AI on
Start by classifying the data an AI feature can reach, before any key is entered. Ask AI, AI fields, AI server actions and agents read whatever the signed-in user can see, so the review should list which models, partners, customer records, employee data and financial documents fall inside that reach. For each class, the compliance team should record the lawful basis for processing it through an AI provider, and whether that data leaves the country. The provider receives prompts and the record content the feature sends, so a transfer question exists whenever the API key belongs to a provider hosted outside the jurisdiction that governs the data. Confirm the provider's data processing terms, retention and training commitments with the provider directly, since the Odoo documentation describes how keys are configured but does not replace the provider's own contract.
Vendor due diligence covers two parties: the AI provider behind each key, and the Odoo partner or internal team that configures the database. For the provider, collect its security documentation, sub-processor list, regional hosting options and incident notification terms, then decide which provider and which key ownership model the organization accepts. Change control matters because agents and AI server actions can be added or edited by administrators over time. Require a written approval step for each new agent or server action, covering the model it calls, the records and fields it reads, the actions it may take and who owns it. Record each approval and each change to user access groups, since these decide what the AI can reach.
The evidence pack should show an assessor what was decided and why, not only that the feature works. Keep the data classification record, the provider terms and transfer assessment, the approval log for agents and server actions, the list of user groups with AI access, and the test results from a non-production copy of the database. Confirm with your assessor which control frameworks apply, since DeployOpen prepares systems, configuration and evidence for review, and independent auditors or certification bodies issue any audit report, attestation or certification. Plan a periodic review of the same evidence, because provider terms, model options and Odoo versions change, and Odoo's support windows for each version set when the configuration must be revisited.
Security and operational considerations for AI on Odoo
Where should the OpenAI or Gemini API key live on a self-hosted Odoo database?
Store the key in the Odoo AI settings as the database administrator sets it up, and treat it as a production credential with an owner, a rotation schedule and a record of who can read it. Odoo.sh and on-premise databases need their own key to use AI features, so each environment (production, staging, test copies) should be checked for which key it uses. Keep keys out of custom modules, server action code, exported configuration files and shared spreadsheets. Confirm with your Odoo contact where the key is stored in the database and whether it appears in backups, since a restored or duplicated database may carry the same key into a test environment. Set provider-side spending limits and project scoping at the provider so a leaked key has a bounded blast radius.
Which outbound network addresses must an Odoo server allow for AI features?
Your firewall should allow outbound HTTPS only to the provider endpoints that your chosen provider and Odoo version actually call, and deny everything else from the Odoo application and worker hosts. Start by listing the provider domains in the Odoo 19.0 AI documentation and confirming them against your own traffic logs during a test run, because endpoints can change between releases. Route outbound traffic through a proxy where your network policy requires it, and log the destination and volume. Do not open general internet access from the database tier. Document the allow-list as part of the change record so security reviewers can compare it with what the provider says it receives.
How should permissions work for agents and AI server actions?
Give each agent and server action the least access it needs, and run it under a dedicated user rather than an administrator account. An action that runs as an administrator can read and change records that the person who triggered it could not, which turns a prompt or a misconfigured rule into a privilege escalation. Review record rules and user groups for the models an agent can read or write, and restrict who can create or edit AI server actions, since those are code-like objects. Require a second review for any agent that writes to accounting, payments, HR or master data. Test each permission boundary with a non-administrator account before go-live.
Can prompt injection come through text that users type into Odoo?
Yes. Any text an AI feature reads can carry instructions, including customer notes, emails, chatter messages, product descriptions, uploaded documents and vendor bill references. If an AI field or agent processes that text and can then write data or trigger an action, a crafted message can try to change what the model does. Reduce the risk by keeping write actions behind confirmation steps, limiting which fields an AI feature can populate, and avoiding automatic outbound email from model output. Test with adversarial inputs in a staging copy before rollout, and treat the output of AI fields as untrusted data until a person or deterministic rule validates it.
What data reaches the AI provider, and how do you prove it?
Whatever the prompt, AI field or agent is given is sent to the provider, which can include record fields, related records and attachment text that the feature reads. Build an inventory of each AI feature, the models and fields it reads, and the data classes involved, then compare that inventory with your provider agreement and data processing terms. Confirm retention and training terms with the provider in writing rather than relying on product pages. Keep a sample of outbound requests from a staging environment as evidence for your compliance team, and remove personal or regulated fields from the context where the feature does not need them.
What should be logged and monitored for AI activity?
Log who ran each AI feature, which record and model it touched, when it ran, which provider and key identifier it used, and whether the output was accepted, edited or discarded. Odoo's chatter and record history can show changes made by an agent or action, but confirm which AI-initiated events are captured in your version and whether they reach your central log store. Alert on unusual volume, failed provider calls, new outbound destinations and changes to AI server actions or agent settings. Keep log retention aligned with your policy, and restrict access to logs that contain record content.
What changes on each Odoo upgrade cycle for AI features?
Each upgrade can change AI behavior, provider endpoints, supported models and the fields an AI feature reads, so retest after every version change. Under Odoo's support windows, standard support covers the first three years after a major release, and security patches are only provided during standard support. Odoo 17.0 standard support ended in September 2026, Odoo 18.0 runs until September 2027 and Odoo 19.0 until September 2028. On Odoo.sh and on-premise, major version upgrades are mandatory every two years according to Odoo's upgrade documentation, so plan a staged upgrade with a tested upgraded database, re-review AI permissions and allow-lists, and confirm extended support eligibility for your version before the window closes.
Limits to confirm in your environment
The Odoo AI features depend on four things that change over time: the version you run, the provider and model you choose, the billing on your own key, and the support window for your release. Confirm each one with Odoo, your AI provider and your own environment before you commit to a design, and record the answers in the project scope.
Which AI features exist in your version
Ask AI, AI fields, AI server actions, agents, email template help and live chat assistance are not necessarily available in every Odoo release or on every hosting type. Ask whether each feature you plan to use ships in your exact version and whether it is enabled on Odoo.sh or on-premise. Do not assume a feature from a newer release exists on your database. Check the AI documentation for your version and test each feature on a staging copy.
Odoo AI docsProvider and model availability by region
Odoo supports Gemini and OpenAI as providers, but the models you need may not be offered to your region, account tier or data residency requirement. Confirm with each provider which models are available to your organization, whether they are restricted by country, and whether the models Odoo calls are still offered. Record the model names you approved, because a change of model can change output and cost.
AI API keys docsUsage billing on your own key
On Odoo.sh and on-premise databases, AI features require your own API key, so the provider bills your organization directly for every request. Ask your finance team how usage is metered, what spending limits your provider account allows, and who receives the invoice. Set a budget alert on the key before go-live, since usage from fields, actions and agents can grow with record volume.
Enterprise-only parts of each feature
Some AI-related capabilities depend on the Enterprise edition, which uses a subscription and is not publicly available as source. Confirm for each feature you plan to use whether any part requires Enterprise, and whether a Community database can use it at all. Ask Odoo for the license terms in writing, since the Community edition is licensed under LGPL-3.0 and the Enterprise code is governed separately.
Support window for your release
Standard support covers the first three years after a major release, including security updates and bug fixes. Confirm the end date of standard support for the version you will run, and whether paid extended support is available for it on your hosting type. Security patches are only provided during standard support, so an AI feature on an unsupported release carries a risk you should document and plan to remove.
- Standard support window
- Three years
Questions buyers ask before enabling Odoo AI on their own database
Can our team enable Odoo AI on a self-hosted database ourselves?
Yes, if your team already runs Odoo and can manage provider keys, but the steps are only part of the work. On Odoo.sh or on-premise, AI features need your own API key from a supported provider, so the first task is confirming which edition and plan you hold, since only the Custom plan can be hosted on Odoo.sh or on-premise. Your administrators then add the key, enable the AI app, and test features in a copy of the database. The harder work is deciding which data each feature may send and who approves that decision, which is usually where in-house teams need outside review.
What drives the cost of enabling Odoo AI on our database?
Cost depends on five drivers: your Odoo plan and hosting type, the number of AI features you turn on, how much of your data review is needed, the testing you run before production, and the provider usage you pay for. Your plan and hosting set the base platform cost, while provider charges are billed by the model provider under your own key and recur with usage. Ask any partner for a quote that lists each item separately: plan and licensing you already hold, configuration hours, data review, security testing, staff training, and ongoing provider and support costs.
Which Odoo plan and hosting type do we need for AI on our own database?
Odoo.sh and on-premise databases both require an Odoo plan that supports that hosting type, and the pricing page states that only the Custom plan can be hosted on Odoo.sh or on-premise. Confirm this with Odoo before you commit, because plan rules can change between releases. Also check that your version is still within standard support, since security patches are only provided during standard support, and Odoo 17.0 standard support ended in September 2026.
What does our IT and compliance team need to provide for the rollout?
Plan for three groups of people. Your administrators need time to create provider accounts, generate and store API keys in a secrets manager, and configure access rights. Your security or compliance reviewers need to confirm which records, attachments and customer fields may reach the provider, and how audit logging will show AI activity. Your business owners need to test AI output on real workflows, such as drafting emails or summarizing records. Ask who signs off on each decision before the pilot starts, so approvals do not stall the timeline.
How long does a pilot of Odoo AI take?
The length of a pilot depends on scope, not on a fixed period. A pilot limited to one or two features, one database copy and one business team takes far less time than a rollout that covers several features, agents and sensitive data classes. Scope, data review and testing are the main drivers. Any partner should state the duration in the written scope, with the features, environments and sign-offs it includes, so you can compare proposals on the same basis.
What should we check on the provider side before sending business data?
Review the provider terms that apply to your key, including how the provider stores and uses prompts and outputs, data residency options and retention settings. Confirm which Odoo features send data externally and which fields they read, because an AI field or server action can include related records. Record your decision in a data handling note that your compliance team can review. Odoo documents the API key setup, but the provider's terms and your own legal review determine what is acceptable for your data.
When is it worth bringing in a partner for Odoo AI?
Bring in a partner when the rollout touches regulated data, several business units, custom modules, or integrations that AI features must work with, or when your team lacks time to test before production. A partner can also prepare the evidence your compliance team asks for, such as configuration records and access rules. DeployOpen plans, configures, hardens and documents self-hosted Odoo inside your own infrastructure, and most engagements are fixed-scope with the scope, deliverables and timeline agreed in writing before work starts. Ask for the written scope, what evidence you will receive, and what support follows go-live.
How DeployOpen scopes AI features on self-hosted Odoo
DeployOpen scopes AI work on self-hosted Odoo as a fixed-scope engagement, with scope, deliverables and timelines agreed in writing before any work starts. The scoping step starts with a review of the AI features you plan to switch on, such as Ask AI, AI fields, AI server actions and agents, and of the data each one reads and sends. For each feature we map the models and fields it touches, the users and groups who can trigger it, and the provider account that will receive the request. The output is a short list of decisions for your team: which features stay off, which are limited to specific groups, which API key and provider account are used, and where the outbound traffic from your database server is permitted to go.
Configuration then happens inside your own infrastructure, on the Odoo.sh or on-premise database you operate, with the API keys stored and rotated under your controls. Testing covers the setup itself rather than model quality alone: whether a user without the right access can invoke an AI action, whether prompts can be steered by record content, whether keys and logs expose data, and whether the audit trail shows who used which feature. Written deliverables typically include the feature inventory, the data flow description, the configuration record, the test results and a list of open items with owners. Your security and compliance teams should confirm these deliverables meet their own review standard before go-live.
Related work follows the same method. DeployOpen also runs AI agent rollout security reviews, which test prompt injection, tool and file permissions, data exposure, credential handling and SSO and admin settings, and private AI deployment, where self-hosted AI platforms are set up with SSO, access control and audit logging for your reviewers. Ask your partner to show how each engagement will be scoped, what is out of scope, and what is handed over at the end. Confirm with your provider and your Odoo edition which AI features your environment supports, since Odoo documents different requirements for Odoo.sh and on-premise databases.

