- Home
- Desktop Apps
- Connecting GPT4All to ONLYOFFICE Desktop Editors on Ubuntu
Connecting GPT4All to ONLYOFFICE Desktop Editors on Ubuntu
Artificial Intelligence has become a powerful tool for boosting productivity and efficiency. AI-based chatbots are trained to assist you in content writing, image generation, data processing, programming, information analysis, and many more.
This guide will show you how to enable AI-powered document editing on Ubuntu using the ONLYOFFICE Desktop Editors package for Linux, and GPT4All platform designed to run local AI models. This integration allows you to use any large language model provided by GPT4All and its capabilities right in your document, without having to launch the platform itself.
GPT4All is a free and open-source platform designed to respect data privacy while running AI models locally, without access to the Internet. The platform is compatible with various CPUs and GPUs and provides access to more than 1000 open-source large language models (LLM), including Llama, Mistral and more.
Here is a quick overview of what you can do in ONLYOFFICE Desktop Editors using LLMs provided by GPT4All:
- Generate new text content and rewrite the existing one according to your needs;
- Improve your writing skills by finding synonyms and correcting spelling/grammar mistakes;
- Summarize large volumes of text information;
- Extract keywords for SEO purposes
- Find the answers to your questions;
- Translate and more.
Step 1. Install GPT4All
Install GPT4All using the official installer that you can download from the GPT4All website.
Once you have downloaded the installer, run it and follow the instructions provided by the installation wizard.


Installing usually takes a few minutes. Click the Finish button to complete the installation.
Step 2. Run GPT4All and download the AI model
After installing GPT4All on your Ubuntu, you have to launch it and download one of the available LLMs.
- To do so, run the platform from the gpt4all folder on your device. When launching it for the first time, you will be invited to take part in anonymous usage analytics. If you choose not to participate, click No.
- Go to the Models section and choose the model you would like to run locally.
Please note that some AI models have high RAM requirements and might need you to have an API key. If a model needs an API key, you can get it from the corresponding AI provider. In some cases, it’s not free so you need to choose wisely.
- Choose the model of preference and click the Download button. The selected LLM will be downloaded to your device.
- Go to the Settings section and activate the Enable Local API Server option. This option is required for successful integration with ONLYOFFICE Desktop Editors. Please, remember the API Server Port.
Step 3. Install the AI plugin in ONLYOFFICE Desktop Editors
To get started with artificial intelligence in ONLYOFFICE Desktop Editors, you should install a special plugin that enables various AI models in the app.
- Launch the ONLYOFFICE Desktop Editors and create a new text document or upload one from your device.
- Go to the Plugins tab and launch the Plugin Manager. You will instantly see the AI plugin. Click the Install button
The AI plugin is a background plugin in ONLYOFFICE so you need to activate it after installation.
- Go back to the Plugins tab and click the Background plugins option. Enable the AI plugin in the drop-down list of the available plugins.
- If done correctly, a new AI tab will appear next to the Plugins tab.
Step 4. Add and configure the AI model from GPT4All
After you have installed and activatied the AI plugin, you need to add and configure the AI model from GPT4All.
- Go to the AI tab and open the Settings menu.
- Use the Add option to add a new model.
- In the Name field, choose the GPT4All from the listof default AI providers.
- Choose the corresponding model, and the URL parameter will be added automatically. In our case, the URL is http://localhost:4891, where port 4891 corresponds to the API Server Port value from GPT4All settings described in Step 2 in this guide.
- Click OK, if all the parameters are correct.
Step 5. Start using the AI model when editing office files
Now you can use the selected LLM while working on text documents, spreadsheets, presentations, forms and PDF files.
The AI plugin in ONLYOFFICE Desktop Editors supports multiple AI models, and you can add several LLMs to be used for different tasks via the AI configuration window.
To access the AI configuration window, click the Settings button on the AI tab, and select the AI model for each task.

