Self-host LibreTranslate
v1.9.6Offline machine translation API powered by Argos Translate
pip install libretranslate- Stars
- 17 295
- Port
- 5000 (HTTP server for the API and web UI)
libretranslate/libretranslateWhat 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.
LibreTranslate alternatives
deepwiki-openOpen-source, self-hosted generator that turns GitHub, GitLab or Bitbucket repositories into AI-written wiki docs with diagrams and RAG chat.Comparedeepwiki-open with LibreTranslate
gpt-researcherSelf-hosted, open-source deep research agent: a planner splits your question, parallel researchers scan 20+ web or local sources, and it writes a cited report.Comparegpt-researcher with LibreTranslate
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
Try it online! | API Docs | Community Forum | Bluesky
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.
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
LingarrSelf-hosted, open-source app that translates movie and TV subtitle files using LibreTranslate, DeepL, Google, or AI providers like OpenAI and Ollama.
lingva-translateOpen-source Google Translate front-end that scrapes translations so browsers avoid Google tracking; self-hosted with Docker, REST and GraphQL APIs, 100+ languages.
llotSelf-hosted, open-source translation service using local LLMs via Ollama with 38 languages, real-time translation, dark mode, and Wyoming TTS support.
MTranServerOpen-source, self-hosted offline translation server that runs without a GPU, with DeepL, Google and Immersive Translate compatible APIs; run via Docker or npm.
OmniPolyOmniPoly is a self-hosted, open-source web frontend unifying translation (LibreTranslate), grammar checking (LanguageTool), and AI text analysis (Ollama).
OmniVoice-StudioThis self-hosted, open-source ElevenLabs alternative clones and designs voices, dubs video and builds audiobooks in 646 languages, fully local on desktop or Docker.
PDFMathTranslateSelf-hosted, open-source scientific PDF translator that preserves formulas, tables and layout, via CLI, Gradio GUI or Docker using Google, DeepL, Ollama or OpenAI.- PokeSelf-hosted, open-source YouTube frontend built on the Invidious API that also offers private weather, translation and maps, with Return YouTube Dislikes and PWA install.
RSSBoxRSSBox is a self-hosted, open-source RSS feed translator using AI engines like OpenAI and DeepL to translate, filter, and generate daily digests from foreign feeds.
ScribeCrateAn open-source transcription server you run yourself, offering OpenAI-compatible speech-to-text, translation, and subtitle generation via Docker on CPU or GPU.- SimplyTranslateSelf-hosted, open-source frontend for multiple translation engines (Google Translate, iCIBA, Reverso) with a web UI, JSON API and text-to-speech.
TraduoraEver® Traduora™ - Open Translation Management Platform - https://traduora.co
0 comments