LibreTranslate is a free, open-source machine translation server you run yourself: a simple web page for pasting text or uploading files, and a JSON API your apps can call. Translation is done by Argos Translate's offline models, so once the language models are downloaded nothing goes to Google, Azure or anyone else. In the first ten minutes, one Docker command starts it on localhost:5000; the first start downloads the language models, which takes a while unless you pick only the languages you need.
It earns its place as the usual free alternative to the Google Translate API for apps that cannot send text to a big provider. It translates text and documents (.docx, .pptx, .odt, .epub, .html, .srt, .pdf and .txt), detects languages and covers about 50 languages, with most pairs going through English. Mastodon and Discourse can use it for their translate buttons, and API keys and rate limits let you share an instance safely. Quality is good for common pairs but behind DeepL or Google on long or idiomatic text.
LibreTranslate is AGPL-3.0, so if you run a modified version as a public service you must share your changes, and its name and logo have their own trademark rules. It is led by Piero Toffanin, with about 17,900 stars and around 310 contributors since December 2020; version 1.10.0 came out on 24 November 2026. The hosted libretranslate.com has a free page to try it in the browser, while its API needs a paid key from $14 a month, which funds the project.
- Repository: github.com/LibreTranslate/LibreTranslate
- Licence: AGPL-3.0 (GNU Affero General Public License v3.0)
- Language: Python. Stars: 17.9K. Forks: 1,872. Last push: Nov 25, 2026.
- Scan: safe, Nov 28, 2026, commit b25f0b1
Who it is for
Developers who need a translation API without sending text to Google or Azure, self-hosters and home-lab users, communities running Mastodon or Discourse, and privacy-minded organisations. It needs Docker or Python 3.8 or newer, runs on an ordinary CPU (an NVIDIA GPU image is faster), and takes several GB of disk if you load every language.
Getting started
1. Run it with Docker; the first start downloads every language model
docker run -ti --rm -p 5000:5000 libretranslate/libretranslate2. Or load only the languages you need, which starts much faster
docker run -ti --rm -p 5000:5000 libretranslate/libretranslate --load-only en,es,fr3. Or install with pip and start it
pip install libretranslate
libretranslate --load-only en,es,fr4. Open the web page
http://localhost:50005. Translate from code
curl -X POST http://localhost:5000/translate -H "Content-Type: application/json" -d '{"q":"Hello world","source":"en","target":"es"}'The Docker image runs as an unprivileged user and keeps models only for that container; add -v lt-local:/home/libretranslate/.local, as the repo's run.sh does, so a new container does not download them again. Models come from argos-net.com through the Argos Translate package index on GitHub, which lists no checksums, and sentence-splitting models from LibreTranslate's MiniSBD releases. Started with pip it listens on 127.0.0.1 only, but the Docker image listens on every interface, so add --api-keys or a reverse proxy before exposing it. Our scan covers this code, not the models or the published image.
Safety scan
We cloned LibreTranslate/LibreTranslate at commit b25f0b1 on Nov 28, 2026 and ran the checks described on the GitHub Tools page: credential patterns, decode-and-execute code, install-time scripts, committed binaries, risky CI workflows, every host the code talks to, known vulnerabilities in pinned dependencies, and project hygiene. A person read every hit. This is what we found.
- 0 secret hits and no committed binaries across 217 files and about 6,000 lines, mostly Python.
- 0 pattern hits. The installer the scanner lists, run.sh, checks that Docker is installed and runs the official image. Its sudo line belongs to an install-if-missing branch that the script never triggers, since it passes no install command.
- No install hooks. The publish workflow builds docker/Dockerfile and pushes it to Docker Hub as libretranslate/libretranslate; the image runs as a non-root user and downloads models on first start rather than at build time.
- No lockfile, so the scanner had nothing to look up; we checked the exact versions pinned in pyproject.toml against OSV and found 13 advisories in an old web stack: 1 critical and 1 high in Waitress 2.1.2, 1 high and 6 moderate in Werkzeug 2.3.8, 3 moderate in requests 2.31.0 and 1 low in Flask 2.2.5. The critical one (CVE-2024-49768) needs a Waitress setting LibreTranslate never turns on, the Werkzeug high one is in the debugger, which it never starts, and the Docker image serves through gunicorn 23.0.0, which has none. What stays reachable is denial of service (Waitress when started with pip, Werkzeug form parsing on file uploads).
- The server makes no outside calls of its own beyond model downloads, plus an API-key check only if you point --api-keys-remote at a server; the web page loads its scripts from the server itself and we found no analytics, and Prometheus metrics are off by default. 4 workflows, no pull_request_target; 1 of 9 third-party actions is pinned to a commit. No security policy, Dependabot or CodeQL.
What the scanner counted
| Check | Result |
|---|---|
| Secrets | None found. |
| Suspicious code | None found. |
| Install-time code | 1 installer script (one can call sudo) |
| Committed binaries | None. |
| CI workflows | 4 workflows. None use pull_request_target. 8 of 9 third-party actions pinned to a tag rather than a commit. |
| Network hosts | 7 distinct hosts referenced from source; most often docs.docker.com, hosted.weblate.org, docs.nvidia.com, www.rfc-editor.org. No URLs to bare IP addresses. |
| Known vulnerabilities | No lockfile to check: dependencies are declared as ranges, so what gets installed is whatever is current on the day. |
| Project hygiene | Has licence file, contributing guide. Missing security policy, automated dependency updates, CodeQL. |
| OpenSSF Scorecard | Not scored: the project is not in Scorecard's weekly index. |
The raw findings
Every hit the scanner wrote out, with a link to the exact line at the scanned commit. Secrets candidates are redacted.
Installer scripts (1)
- run.sh, 93 lines, uses sudo; talks to www.docker.com
By the numbers
| Stars | 17.9K |
|---|---|
| Forks | 1,872 |
| Contributors | 312 |
| Commits | 1,746 |
| Open issues | 137 |
| Open pull requests | 1 |
| Releases | 54 |
| Latest release | v1.10.0 |
| Licence | AGPL-3.0 |
| Main language | Python |
| Project age | 5 years |
| Last push | Nov 25, 2026 |
| Tracked files | 217 |
| Lines of code | 6,017 |
| Checkout size | 3 MB |
Lines by language: Python 3,767, CSS 545, YAML 395, HTML 371, Markdown 321, JSON 267.
Questions
Is LibreTranslate free?
Yes. The software is free under AGPL-3.0 and costs nothing to self-host. The hosted libretranslate.com is free to try in the browser, but its API needs a paid key, from $14 a month.
LibreTranslate or DeepL?
DeepL for the best quality on long or nuanced text, as a paid cloud service that sees your text. LibreTranslate when the text must stay on your own server or you need an API with no per-character bill.
Does LibreTranslate send my data anywhere?
No. Self-hosted, translation runs on your own machine with offline models; it only goes online to download those models. Text you paste into the hosted libretranslate.com goes to that server.
What hardware do I need?
An ordinary CPU and a few GB of memory are enough for most uses. A GPU only makes it faster; use the -cuda image tags with an NVIDIA card.
Do I need to know how to code?
No, to try it at libretranslate.com. Hosting your own takes one Docker command, and using the API from an app takes a little code.
This post is part of GitHub Tools, where every repository is cloned and scanned before it is written up. The scan is a snapshot of one commit on one day; the repository has moved on since, so check it before you install.
