selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

LibreTranslate logo

Self-host LibreTranslate

v1.9.6

Offline machine translation API powered by Argos Translate

ReleaseOpen SourceAGPL-3.0
pip install libretranslate
Updated5 months ago
LanguagePython
Setup difficultyEasy
Stars
17 295
Port
5000 (HTTP server for the API and web UI)
Docker
libretranslate/libretranslate

What is LibreTranslate?

LibreTranslate is a free, open-source machine translation API whose engine is the open-source Argos Translate library, so it never calls proprietary services like Google or Azure. Self-hosted instances work offline and expose a web UI plus REST endpoints for translating text (including HTML/markup and batch requests), translating files, detecting languages, listing supported languages and submitting suggestions. Operators can restrict loaded languages, enforce per-client rate limits and API keys, cache translations, and optionally expose Prometheus metrics or GPU acceleration through a CUDA compose variant. Run it with pip install libretranslate, the official Docker Compose file, or the project's Helm chart; the public libretranslate.com service is a professionally managed instance that requires a purchased API key for production use, while your own server is free. The project is AGPL-3.0 licensed.

Should you self-host LibreTranslate?

LibreTranslate scores 76/100 on selfhost.directory (how scoring works) and ranks #2 of 11 in Translation. It has 17 295 GitHub stars, +306 in the last 30 days.

It shipped 10 stable releases in the past year. The latest, v1.9.6, came out on 26 May 2026. New versions land roughly every 7 days.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Python.

Its closest alternative on selfhost.directory is PDFMathTranslate (80/100, 38 276 stars). It scores higher overall, so compare the two before you pick. See LibreTranslate vs PDFMathTranslate side by side.

Features

  • API Keys
  • Batch translation
  • File translation
  • GPU Acceleration
  • HTML Translation
  • Language auto-detection
  • Machine translation engine
  • Offline Mode
  • Rate Limiting
  • REST API
  • Suggestion endpoint
  • Web UI

LibreTranslate README

LibreTranslate

Try it online! | API Docs | Community Forum | Bluesky

Python versions Run tests Build and Publish Docker Image Publish package Awesome Humane Tech

Free and Open Source Machine Translation API, entirely self-hosted. Unlike other APIs, it doesn't rely on proprietary software such as Google or Azure to perform translations. Instead, its translation engine is powered by the open source Argos Translate library.

How to install LibreTranslate

Install LibreTranslate with Docker

git clone https://github.com/LibreTranslate/LibreTranslate
cd LibreTranslate

Then on Linux/macOS run ./run.sh [args], on Windows run run.bat [args].

The repo also ships a docker-compose.yml using image libretranslate/libretranslate:latest with port mapping "5000:5000"; production instances run behind Gunicorn inside the image.

How to configure LibreTranslate

  • --host127.0.0.1Set host to bind the server to
  • --port5000Set port to bind the server to
  • --char-limitNo limitSet character limit
  • --req-limitNo limitSet maximum number of requests per minute per client (outside of limits set by api keys)
  • --req-limit-storagememory://Storage URI to use for request limit data storage. See Flask Limiter

LibreTranslate releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Can I do batch translations?

Yes, pass an array of strings instead of a single string to the q field of the translate request.

Can I run it as a systemd (default pip/python installed one)?

Yes, by creating a service file in /etc/systemd/system with an ExecStart for the libretranslate command and enabling it at startup.

How do I update the language models in a running docker container?

Run the bundled model installer inside the container: docker exec -it libretranslate ./venv/bin/python scripts/install_models.py --update.

Where are the language models saved?

In $HOME/.local/share/argos-translate/packages (on Windows, C:\Users\youruser\.local\share\argos-translate\packages).

Can I use your API server at libretranslate.com for my application in production?

Only with a purchased API key from the portal; running LibreTranslate on your own server is always free.

More in Translation

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…