# How to enable AI features in code 26.04?

**URL:** <https://forum.collaboraonline.com/t/how-to-enable-ai-features-in-code-26-04/4989>\
**Category:** Installation & Configuration\
**Created:** [September 3, 2026, 5:31am UTC](https://forum.collaboraonline.com/t/how-to-enable-ai-features-in-code-26-04/4989 "2026-09-03T05:31:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [September 3, 2026, 6:40am UTC](https://forum.collaboraonline.com/t/how-to-enable-ai-features-in-code-26-04/4989/2 "2026-09-03T06:40:02Z")

</div>

Hi @hayvan96,

Welcome to the forum!

Based on your description, it looks like the AI functionality is currently disabled in your Collabora Online configuration.

In the 26.04 packages, you should find an `<ai>` section in `/etc/coolwsd/coolwsd.xml` under `<config>`. Make sure AI is enabled:

```xml
<ai>
    <enabled type="bool">true</enabled>
    <allow_user_settings type="bool">true</allow_user_settings>
    <api_url type="string"></api_url>
    <api_key type="string"></api_key>
    <model type="string"></model>
</ai>

```

After enabling it, there are two ways to configure the provider:

- **Per-user provider:** Keep `allow_user_settings` set to `true` and leave `api_url`, `api_key`, and `model` empty. After restarting Collabora Online, users should be able to configure their own AI provider from the settings dialog.

- **Central provider:** Configure `api_url` and `model` (and `api_key` if required). The endpoint needs to provide an OpenAI-compatible `/v1/chat/completions` API. This can be a provider such as Ollama, vLLM, LM Studio, OpenAI, etc. You can set `allow_user_settings` to `false` if you want to prevent users from changing the provider settings.

Once the configuration is changed, restart `coolwsd`.

Also, the AI sidebar will only appear when a provider is actually configured. In other words, all of these need to be true:

- `ai.enabled` is set to `true`.
- A base URL and model are configured, either by the user or centrally.
- The user is logged in. AI is not available for anonymous users accessing a public share link.
- The integration does not disable AI through `CheckFileInfo`.

For Nextcloud, there should be nothing additional required on the `richdocuments` side, as it does not send `DisableAISettings`.

Also, `enable.ai` is not a valid configuration key, so it will simply be ignored.

If you can share your current `<ai>` section from `coolwsd.xml` (with the API key removed), we can take a look at the configuration and see if anything is missing.

---

_[View the full topic](https://forum.collaboraonline.com/t/how-to-enable-ai-features-in-code-26-04/4989)._
