Automatically sync your OctoPrint files with OneDrive

OctoPrint OneDrive File Sync

Sync your OctoPrint files with OneDrive automatically.


Install the plugin via the bundled Plugin Manager or manually using this URL:

Warning: This plugin requires Python 3.7 or newer to install. To find out more about upgrading your OctoPrint install to use Python 3, you can take a look at this post


Once the plugin is installed and loaded, you can set it up to connect to your Microsoft account.

Adding your account

Add account

Select ‘Add account’ to generate a login code. Head to the URL linked to login with your account, entering the code generated and logging in with your Microsoft account. Grant OctoPrint OneDrive File Sync access to your files.

Once this is done, return the plugin, and it should show your account name & a success message.

Login done

Setting up a synced folder

You can use the built in file browser to find which folder in OneDrive you would like to sync with OctoPrint. Files will be synced to an ‘OneDrive’ folder in your OctoPrint uploads.

Select folder

Syncing settings

Out of the box a sync will be run every hour, but you can set this interval much much lower if you would like.

The plugin does not upload whilst printing by default, to avoid issues with prints being interrupted should a file need to be downloaded/uploaded and this takes away resources from printing.

Sync settings

Supporting Development

I work on OctoPrint, OctoPrint plugins and help support the community in my spare time. It takes a lot of work, so if you are interested you can support me through GitHub Sponsors. You can contribute monthly or one time for any amount, you choose!

Important Security Notice

Please be aware that this plugin stores its tokens for accessing your Microsoft account in OctoPrint’s configuration folder, as expected. As a result, if your OctoPrint install (or the server it is running on) is compromised, your files in OneDrive are at risk.

It is not recommended to install this plugin on OctoPrint installs accessible directly from the internet, or multi-user installs where you may not trust every user.

The author of this plugin is not responsible for any damage caused as a result of using this plugin.