Obsidian OnlyOffice Plugin
Integrate the powerful OnlyOffice document editors directly into Obsidian. Edit .docx files seamlessly within your vault.
How It Works
This plugin uses Docker to run a local instance of the OnlyOffice Document Server. It then serves your vault files to this server, allowing you to edit them in a secure, self-contained environment.
Getting Started
For a complete, step-by-step tutorial from scratch (including how to set up a Docker environment on Windows), please follow our detailed setup guide:
➡️ Click here for the Complete Setup Guide
Quick Setup (If you already have Docker)
- Ensure your Docker environment is running.
- Navigate to the plugin folder:
<Your Vault>/.obsidian/plugins/OnlyOffice/. - Run
start-onlyoffice.bat(Windows) or./start-onlyoffice.sh(macOS/Linux). - In Obsidian's OnlyOffice plugin settings, ensure the JWT Secret matches the one in the scripts.
Managing the Server
You can manage the OnlyOffice server using the other scripts in the plugin folder:
stop-onlyoffice: Stops the server to free up system resources.update-onlyoffice: Downloads the latest version of OnlyOffice and prepares for an update. Runstart-onlyofficeagain after updating.remove-onlyoffice: Completely removes the OnlyOffice container from your system.check-setup: A diagnostic script to verify your setup.
Troubleshooting
If the plugin isn't working, run the check-setup.bat (Windows) or ./check-setup.sh (macOS/Linux) script. It will diagnose common problems with your Docker setup and server connection.
Step 3: Configure the Plugin
- Open Obsidian's settings and go to "OnlyOffice".
- Ensure the JWT Secret in the settings matches the one in the script files.
For better security, you should change the default secret:
- Open the
start-onlyoffice,update-onlyoffice, andcheck-setupscripts and change theJWT_SECRETvariable to a new, unique value. - Copy your new secret into the "JWT Secret" field in the plugin settings.
- If the server is already running, use the
remove-onlyofficeandstart-onlyofficescripts to restart it with the new secret.
That's it! You can now open .docx files in Obsidian.
Managing the Server
You can manage the OnlyOffice server using the other scripts in the plugin folder:
stop-onlyoffice: Stops the server to free up system resources.update-onlyoffice: Downloads the latest version of OnlyOffice and prepares for an update. Runstart-onlyofficeagain after updating.remove-onlyoffice: Completely removes the OnlyOffice container from your system.check-setup: A diagnostic script to verify your setup.
Troubleshooting
If the plugin isn't working, run the check-setup.bat (Windows) or ./check-setup.sh (macOS/Linux) script. It will diagnose common problems, including:
- If Docker is installed.
- If the Docker service is running.
- If the OnlyOffice container is running.
- If the server is accessible.
- If your JWT secret matches the one in the scripts.