Nextcloud
Introduction
ONLYOFFICE allows you to edit the files stored in your Nextcloud account and collaborate on them using both online and desktop editors. Thereby, you can use not only online collaboration tools but also the features available in your desktop application, such as access to system fonts, the clipboard, and system printers.
To take full advantage of all these editing options, you’ll need to install and configure several components:
-
It's supposed that you already have a Nextcloud server instance installed and configured. If not, you can refer to the Nextcloud official installation instructions.
-
Install ONLYOFFICE Docs. Please note that the Nextcloud server and ONLYOFFICE Docs must be accessible to each other over the network.
-
Enable our official integration app in the Nextcloud administrator account.
One of the easiest ways to install and configure all the components at once (ONLYOFFICE Docs, Nextcloud server, and the integration app) is to use our Docker installation. You can refer to the corresponding instructions for Nextcloud.
-
Connect your Nextcloud server to ONLYOFFICE Desktop Editors.
An Internet connection is required for connecting your Nextcloud server, as well as for real-time co-editing.
Step 1. Install ONLYOFFICE Docs
The easiest way to install ONLYOFFICE Docs is to use Docker. Execute the following command:
sudo docker run -i -t -d -p 80:80 --restart=always onlyoffice/documentserver
If you want to install ONLYOFFICE Docs on the same machine where your Nextcloud server is installed, you’ll need to change the default port used by ONLYOFFICE Docs (both ONLYOFFICE Docs and Nextcloud work on port 80 by default).
When installing ONLYOFFICE Docs using Docker, you can easily change the mapping port with the following command:
sudo docker run -i -t -d -p <PORT_NUMBER>:80 --restart=always onlyoffice/documentserver
Where <PORT_NUMBER> is the number of port you want ONLYOFFICE Docs to use.
To find more detailed instructions on how to install ONLYOFFICE Docs using Docker, you can refer to this article.
To make sure that ONLYOFFICE Docs is installed successfully, enter the IP address and, optionally, port (if it has been changed during the installation) in your browser address bar, e.g., http://192.168.3.202:81 - the ONLYOFFICE Docs welcome page should open.
Step 2. Install and configure the ONLYOFFICE connector for Nextcloud
In your Nextcloud account, click your user name in the upper-right corner and choose the Apps option in the menu. In the Nextcloud app store, select the Tools application category in the list on the left. Find the ONLYOFFICE connector and click the Download and enable button.
Click your user name in the upper-right corner and choose the Settings option in the menu. Click the ONLYOFFICE item in the left-side menu to open the ONLYOFFICE application settings page.
When the connector is installed, you need to configure it. On the ONLYOFFICE application settings page, specify the address of the machine where the ONLYOFFICE Docs is installed in the Document Editing Service address field. If you’ve changed the port during the installation, do not forget to specify it, e.g. http://192.168.3.202:81. Click the Save button to apply the settings.
To find out more details on configuring the integration app, you can refer to the corresponding article for Nextcloud.
Step 3. Connect to Nextcloud server
Launch ONLYOFFICE Desktop Editors. To connect Desktop Editors to your Nextcloud server, follow the steps below:
-
Click the Clouds tab on the left navigation panel. The list of the available cloud services opens.
-
Find Nextcloud in the Available clouds list and click the Connect link on the right.
-
The Connect to Nextcloud window opens. In the Cloud office URL field, enter your Nextcloud server domain name or IP address. Click the Connect button.

-
The Log in to Nextcloud page opens in a new tab of the Desktop Editors interface. Specify the Account name or email and the Password you use to access your Nextcloud account and click the Log in button. You can also use the Log in with a device option. Leave the Remember me box checked to stay signed in to Nextcloud.

The Files section of your Nextcloud account opens in the same tab. Now you can edit your existing files, create new ones, share your documents, and collaborate with Nextcloud users using ONLYOFFICE editors.
Step 4. Manage your connected accounts
Click the ONLYOFFICE tab in the upper left corner of the window to return to the main program window. The connected cloud accounts appear in the Connected clouds section at the top of the Clouds tab. Hover the mouse over a connected cloud and click the three dots on the right to access the cloud context menu options:

- Open – to switch to the corresponding cloud storage tab if you are already logged in to this account, or to open the Connect to Nextcloud window if you are not currently logged in (in such a case, you will need to enter your credentials).
- Logout – to exit from your account. The connected account still appears in the Connected clouds section, but you have to log in again next time to access your Nextcloud files.
- Remove from list – to disconnect the selected account and remove it from the list.
To add more accounts or clouds, use the Available clouds list below on the Clouds tab.