Free & open source · GPL

Megatools – command line client for Mega.nz

Upload, download, stream and manage files on Mega.nz straight from the terminal of your desktop or server. Small, fast, and written in plain C.

Latest release: megatools-1.11.5.20250706.tar.gz (104 kB) · changelog · RSS

Why megatools

A collection of small programs that talk to the Mega.nz API directly – no browser, no Electron, no background daemon.

↑↓

Copy files and whole trees

Copy individual files or entire directory trees to and from the cloud with megaput, megaget and megacopy.

Streaming downloads

Preview videos and audio without downloading the whole file – pipe megadl straight into your player.

🔑

Your keys, your account

Register accounts with megareg and keep true control over your encryption keys.

Fast and lightweight

Multi-connection transfers as fast as Mega's servers allow, with minimal memory and CPU usage – ideal for cheap VPSes and SBCs.

👁

Auditable

Reasonably simple, cleanly written C. You can skim the entire code base in an afternoon and review every change yourself.

🛡

Security by simplicity

Written to avoid the class of issues seen with browser-based clients. Static, signed builds.

Download

Signed source tarballs and static binaries. Verify downloads with the accompanying .asc signature or CHECKSUMS.TXT.

Source code

Static builds

Older versions are in the build archive. Windows users can also install via Chocolatey.

Install from your distribution

News

Follow releases via RSS or read the full NEWS file.

  1. Megatools modernized for mega.nz protocol changes. Full support for new style shared folders – read/write support.

  2. Added handling for 402 hashcash challenges.

  3. Megatools account registration blocked by mega.nz, maybe due to API changes. All 402 HTTP responses are intentional blocks of megatools by mega.nz.

  4. Megatools 1.11.4 enables stealth mode, hopefully avoiding account blocks.

  5. Megatools 1.11.3 static builds rebuilt. Updated dependencies, fixed GLib initialization.

  6. Megatools 1.11.3 static builds rebuilt + some domain name change fixes.

  7. Megatools 1.11.2 static builds rebuilt. RSS feed lives at https://megous.com/rss.xml.

  8. Megatools 1.11.1 static builds rebuilt with latest dependencies. Some AVs misdetect the previous build – if in doubt read CHECKSUMS.TXT.

Show older news (35 more)
  1. Megatools 1.11.1 released with some bugfixes.

  2. Megatools 1.11.x experimental build released with some bugfixes.

  3. Megatools 1.11.0 released with new features and bugfixes.

  4. New experimental builds with updated dependencies fixing security issues.

  5. New experimental builds with updated dependencies and TLS session cache disabled.

  6. New experimental builds with updated dependencies and some fixes.

  7. New experimental builds with updated dependencies.

  8. New experimental builds with contributed support for the new login flow.

  9. New experimental builds with support for the new mega.nz link format.

  10. New experimental builds with updated dependencies.

  11. New experimental builds with some bugfixes.

  12. Megatools moved off GitHub.

  13. Added support for IPv6 and source IP address / network interface selection.

  14. Added test and export tools.

  15. New experimental builds for macOS, contributed by a user.

  16. Megatools 1.11.x experimental builds now include MIPS little-endian, i686 and a Windows XP build.

  17. Megatools 1.11.x development branch now features regular experimental releases with pre-built static binaries for Windows and Linux.

  18. Megatools 1.10.2 released with a hotfix for a mega.nz API quirk.

  19. Megatools 1.10.1 released with some fixes and a file chooser for folder downloads.

  20. Megatools 1.10.0 released with fixes for upload.

  21. Megatools 1.10.0-rc1: multi-connection upload, interrupted download resumption, gigabit-LAN throughput on a cheap VPS.

  22. Megatools 1.9.98 released with bugfixes and some new features.

  23. Megatools 1.9.97 released with bugfixes.

  24. Megatools 1.9.96 released with bugfixes.

  25. Megatools 1.9.95 released with bugfixes.

  26. Megatools 1.9.94 released with bugfixes.

  27. Megatools 1.9.93 released with bugfixes.

  28. Megatools 1.9.92 released with many bugfixes and a new 64-bit Windows package.

  29. Megatools 1.9.91 released with bugfixes and all new man pages.

  30. Megatools 1.9.90 released under GPL with the new experimental libmega library (gobject-introspection bindings).

  31. Megatools 1.2.2 released with many bugfixes.

  32. Shared folders, exported folder downloads, thumbnails and contacts management.

  33. Packages for Ubuntu 12.04+, Fedora 17+, Arch Linux and openSUSE.

  34. Register new Mega accounts with the megareg tool.

  35. Megatools 1.0.0 released.

Bugs and support

Report bugs by e-mail to megatools@xff.cz. Browse the mailing list archive for past discussions.

Development

Megatools is maintained. Send patches to the mailing address above. Source repository: megous.com/git/megatools.

Support the project

Megatools is an independent personal project, not backed by any company. If it helps you, contribute code, packaging or documentation.