Home / Guide / Install copyparty step by step

How to Install Copyparty on Windows, Linux and macOS Step by Step

A clear walkthrough to install copyparty on Windows, Linux and macOS, covering Python, the mandatory dependency, first launch, accounts and running it as a service.

Monitor showing a terminal session with a keyboard and white mug on a wooden desk

Copyparty installation is pleasantly short compared with most self-hosted software, yet a few details decide whether the first launch goes smoothly. The server is written in Python, needs no database and can run from a single folder, so the process mostly consists of preparing Python, obtaining the official files and starting the program with sensible options. This guide covers Windows, Linux and macOS in turn, then explains how to add accounts and keep the server running in the background.

What you need before you begin

Every installation shares the same small list of requirements. Having them ready avoids the most common errors.

  • A computer running Windows 8 or later, a mainstream Linux distribution, or a recent version of macOS.
  • Python 3, unless you plan to use the Windows executable or a container.
  • The copyparty source archive or one of the other official packages.
  • jinja2, the single mandatory dependency when running from the source archive.
  • Optionally, Pillow and FFmpeg for thumbnails and media features.

You also need a folder you would like to share. It can be an existing directory of photos or documents; copyparty never moves or converts your files, it simply serves them.

Installing copyparty on Windows

Windows offers two routes: running copyparty with Python, or using the standalone executable. The Python route is recommended because it uses an interpreter you control and update.

Install Python correctly

Download the current Python 3 installer from python.org and run it. On the first screen, tick the option that adds Python to your PATH. The copyparty documentation specifically advises against installing Python through the Microsoft Store or winget, because those versions can leave the PATH in a state that prevents helper programs from being found.

To confirm the installation, open Command Prompt and check the version.

Terminal
py --version

Extract copyparty and install jinja2

Extract the copyparty ZIP to a simple location such as C:\copyparty. Then open Command Prompt in the extracted folder and install the dependency.

Terminal
py -m pip install --user jinja2
cd C:\copyparty\copyparty-hovudstraum

Start the server locally

For the first run, bind the server to your own machine so nobody else can reach it while you explore.

Terminal
py -m copyparty -i 127.0.0.1

Open http://127.0.0.1:3923 in your browser and you will see the folder copyparty was started from. Try uploading a small file to confirm that everything works.

Add FFmpeg for media features

To enable video thumbnails, audio waveforms and transcoding, download a build of FFmpeg and place ffmpeg.exe and ffprobe.exe in a folder on your PATH. Restart copyparty and the media features switch on automatically.

Installing copyparty on Linux

Linux is copyparty’s most natural home, and almost every distribution ships a suitable Python interpreter by default.

From the source archive

Extract the archive, install jinja2 for your user and start the server from the extracted folder.

Terminal
unzip copyparty-hovudstraum.zip
cd copyparty-hovudstraum
python3 -m pip install --user jinja2
python3 -m copyparty -i 127.0.0.1

On some distributions, pip refuses to install packages into the system environment. In that case, install jinja2 from your distribution’s package manager, for example python3-jinja2 on Debian and Ubuntu, or create a virtual environment.

From a package manager

Arch Linux users can install copyparty from the official repositories and enable the bundled service in one go.

Terminal
sudo pacman -S copyparty
sudo systemctl enable --now copyparty

Other distributions can install from PyPI or use the Homebrew formula, which also works on Linux.

Optional media tools

Install Pillow and FFmpeg through your package manager to enable thumbnails and transcoding. On Debian and Ubuntu, the packages are python3-pil and ffmpeg.

Installing copyparty on macOS

macOS includes command-line tools but not always a recent Python, so start by installing Python 3 from python.org or through Homebrew.

Running from the archive

Extract the ZIP into your Downloads folder, install jinja2 and start the server.

Terminal
cd ~/Downloads/copyparty-hovudstraum
python3 -m pip install --user jinja2
python3 -m copyparty -i 127.0.0.1

Using Homebrew

Homebrew offers the tidiest experience on a Mac, because it installs copyparty and FFmpeg together and keeps both updated.

Terminal
brew install copyparty ffmpeg
copyparty

The first time you open the server to other devices, macOS may ask whether Python should accept incoming network connections. Allow it, or other devices will be unable to connect.

Choosing what to share

By default, copyparty shares the folder it was started from. In practice, you will want to choose specific folders and give them tidy names in the web interface. copyparty calls these mappings volumes, and you define them with the -v option. The syntax is the folder on disk, then the path in the browser, then the permissions.

Terminal
copyparty -v /home/sam/Photos:photos:r -v /home/sam/Inbox:inbox:w

This example shares a photos folder that everyone can read and an inbox folder that anyone can upload to without being able to see its contents.

Adding accounts and permissions

Before anyone else connects, add at least one account. Accounts are created with the -a option in the form username:password, and permissions are attached to volumes.

Terminal
copyparty -a sam:CorrectHorse -v /srv/files:files:r:rw,sam

Here, the files volume is readable by everyone but writable only by sam. The main permission letters are r for read, w for write, m for move, d for delete, g for download-only access and a for administrative features.

As your setup grows, a configuration file becomes much easier to maintain than a long command line. Start copyparty with -c followed by the path to the file.

Terminal
[accounts]
  sam: CorrectHorse

[/files]
  /srv/files
  accs:
    r: *
    rw: sam

Opening copyparty to your network

When you are happy with the local test, start copyparty without the -i 127.0.0.1 option so it listens on all network interfaces. Then allow TCP port 3923 through the firewall.

  • On Windows, Windows Defender Firewall usually prompts you on first launch; allow access on private networks.
  • On Ubuntu with ufw, run sudo ufw allow 3923/tcp.
  • On Fedora and similar systems, use firewall-cmd to add the port permanently.

Other devices can now visit http://your-computer-ip:3923. Adding the --qr option prints a QR code in the console, which is handy for phones.

Running copyparty in the background

A file server is most useful when it starts automatically. Each operating system has its own way of doing this.

Windows service

The project’s Windows guide uses NSSM, the Non-Sucking Service Manager, to register copyparty as a service. Once installed, copyparty starts with Windows and restarts if it ever stops.

systemd on Linux

The source archive includes a systemd unit in the contrib/systemd folder, together with instructions in the file itself. Copy it to /etc/systemd/system, adjust the paths and user, then enable it. Running copyparty under a dedicated, unprivileged user is strongly recommended.

macOS

On a Mac, a launch agent or the Homebrew services command keeps copyparty running after you log in.

Verifying the installation

A healthy start-up prints the version number, the addresses copyparty is listening on and each volume it is sharing. If you see these lines, the installation succeeded. Problems at this stage nearly always fall into one of a few categories: a missing jinja2 module, a port already in use, a typing error in the configuration file, or a firewall blocking connections. The console message usually points straight at the cause.

Updating an existing installation

Updating replaces the program files while leaving your configuration and shared folders untouched. With the source archive, download the new ZIP and extract it over the old folder or alongside it. With pip, rerun the install command with the upgrade flag. With Homebrew or pacman, use the normal upgrade command. Restart the server afterwards and confirm the new version in the start-up output.

Installing optional features in one pass

Once the basic server works, it is worth adding the optional packages that unlock copyparty’s richer features. Doing this in one sitting avoids repeated restarts later.

Terminal
python3 -m pip install --user Pillow mutagen argon2-cffi

Pillow produces image thumbnails, Mutagen reads music tags quickly, and argon2-cffi lets copyparty store password hashes instead of plain-text passwords. If you plan to offer FTP, the pyftpdlib package adds that server, and the SMB server needs impacket. Install only what you intend to use; every extra protocol is another thing to secure.

FFmpeg is installed separately because it is not a Python package. On Linux and macOS, your package manager or Homebrew handles it. On Windows, download a build, extract it and add its bin folder to your PATH, then open a new Command Prompt so the change takes effect.

A tidy folder layout for a new server

A little planning before your first real share saves reorganising later. Many people find the following structure works well on a dedicated machine.

  • A configuration file in a predictable place, such as /etc/copyparty.conf on Linux or a config folder next to the program on Windows.
  • One top-level folder per purpose, for example media, documents and inbox, each mapped to its own volume.
  • A separate upload-only inbox for files from other people, so nothing arrives directly in your organised folders.

Keeping each purpose in its own volume means permissions stay simple: everyone can read the media library, only you can change documents, and visitors can drop files into the inbox without seeing its contents.

Installing on a Raspberry Pi

A Raspberry Pi makes an excellent low-power copyparty host. Raspberry Pi OS already includes Python 3, so the Linux instructions above apply unchanged. Attach a USB drive for storage, mount it at a fixed path such as /mnt/storage, and point a volume at it. A Pi copes comfortably with browsing, uploads and downloads; for heavy thumbnailing or audio transcoding, a Pi 4 or Pi 5 is noticeably quicker than older models.

Frequently Asked Questions

Why does copyparty report that jinja2 is missing?

When you run copyparty from the source archive, jinja2 must be installed separately. Install it with pip or your distribution’s package manager, then start the server again.

Can I install copyparty without administrator rights?

Yes. Installing with the --user flag and running from your home folder needs no administrator access, although opening firewall ports may still require it.

Which port does copyparty use after installation?

It listens on port 3923 by default for both HTTP and HTTPS. You can choose a different port with the -p option.

How do I stop copyparty?

Press Ctrl+C in the console window where it is running. If it runs as a service, stop it through the service manager instead.

Should I run copyparty as root on Linux?

No. Run it as an ordinary or dedicated user with access only to the folders it needs. Use a reverse proxy if you want it on ports 80 and 443.

Conclusion

Copyparty installation follows the same pattern on every system: prepare Python, obtain the official files, install jinja2 when running from source, and start the server locally before opening it to your network. From there, volumes and accounts let you decide precisely what each person can do, and a service manager keeps everything running unattended. Take a few minutes to test locally and set up permissions properly, and you will have a dependable, private file server that needs very little attention afterwards.