A Microsoft OneDrive desktop client / daemon for Linux, written in Python 3.

Project website

Github page


To execute the following commands you need to connect to your server via SSH

Create a virtualenv

  1. Download virtualenv

     wget -O virtualenv-15.0.3.tar.gz
  2. Extract virtualenv

     tar xvf virtualenv-15.0.3.tar.gz
  3. Create the environment

     python3 virtualenv-15.0.3/ --system-site-packages ~/onedrive/
  4. Activate virtualenv

     source ~/onedrive/bin/activate

Configure and run onedrive-d

  1. Change to the virtualenv directory above

     cd onedrive
  2. Download onedrive-d from github and enter its directory

     git clone
     cd onedrive-d-old
  3. Add onedrive-d (virtualenv) directory to the PYTHONPATH

     export PYTHONPATH=/home/user/onedrive/lib/python3.4/site-packages
  4. Install onedrive-d

     python3 install --prefix "/home/user/onedrive"
     python3 clean
  5. Complete installation

     mkdir -p ~/.onedrive
     cp ~/onedrive/onedrive-d-old/onedrive_d/res/default_ignore.ini ~/.onedrive/ignore_v2.ini
  6. Configure onedrive-d

     onedrive-pref --help
     onedrive-d --help
     onedrive-d start

The onedrive-pref command will initiate a configuration wizard in which you will connect your OneDrive account (via visiting the provided link, logging in and copying the resulting URL into the SSH client). onedrive-d allows you to 'stop', 'start', 'restart' and check the 'status' of the program. To run these commands in the future, activate the virtualenv first.

    source ~/onedrive/bin/activate

Note: This software isn't an official release nor is it bug-free. You may find it necessary to restart the service on occasion, if it isn't syncing.