ai-agent
LibreTranslate
Free and Open Source Machine Translation API. Self-hosted, offline capable and easy to setup.
16,008 stars1,652 forksPythonUpdated 8/10/2026100% free · open source
What it does
LibreTranslate is a self-hosted, open-source machine translation API that allows you to translate text from one language to another without relying on external services.
Install / run
docker run -d -p 5000:5000 libtranslate/libretranslateWhen to use it
- •When you need to integrate machine translation into your application without paying for a third-party API
- •When you want to keep your translation data private and secure
- •When you need to support languages that are not well-supported by commercial translation APIs
Quick start
- 1Pull the LibreTranslate Docker image: docker pull libtranslate/libretranslate
- 2Run the container: docker run -d -p 5000:5000 libtranslate/libretranslate
- 3Test the API: curl -X POST 'http://localhost:5000/translate' -H 'Content-Type: application/json' -d '{"q":"Hello, world!","source":"en","target":"es"}'
- 4Configure the API: edit the config.json file to change settings such as the port number or logging level
- 5Integrate with your application: use the LibreTranslate API endpoint to send translation requests from your application
Ready-to-paste prompt
curl -X POST 'http://localhost:5000/translate' -H 'Content-Type: application/json' -d '{"q":"This is a test sentence.","source":"en","target":"fr"}'Heads up: You need to have Docker installed and running on your system to use LibreTranslate, and you should be aware that the initial download of the model data may take some time due to its large size.
Saves to your device
Topics
api
machine
translate
translation
translator
How LibreTranslate works
Codeflow
Free to inspect
LibreTranslate is a medium Python project (~11k lines across 34 code files, plus 10 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit this month, AGPL-3.0 license, has a test suite.
Size
Medium codebase
~11k lines · 34 code files · ~1 h to skim
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Python · Docker
No API keys detected
Python 74%HTML 11%Dockerfile 6%CSS 6%Shell 3%
Where to start reading
- 1README.mdStart here — what it does and how to install it
- 2AGENTS.mdThe instructions the AI actually follows
- 3main.pyWhere the program starts running
- 4pyproject.tomlDependencies and the commands it exposes
- 5libretranslate/__init__.pyInside libretranslate/ — the main logic begins here
What's in each folder
READMEHas testsDocumentedCI checksDocker readyAGPL-3.0 licenseUpdated this month
Details
Creator
LibreTranslate
Language
Python
Category
ai-agent
Published
12/19/2020
Are you the creator of this tool? Claim your listing → and earn 85% of every sale.
Related skills
More ai-agent tools founders pair with this one.
ai-agent★ 276,806
Track GitHub Stars with 996.ICU
Get a popular GitHub star counter for your startup, backed by 276k+ GitHub stars, ideal for founders.
ai-agent★ 264,191
Superpowers
An agentic skills framework & software development methodology that works.
ai-agent★ 244,424
Linux: Open Source Kernel
Get the Linux kernel source tree for custom development, ideal for startup founders in need of a flexible OS foundation with 236k+ GitHub stars
ai-agent★ 210,750
Vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
ai-agent★ 204,069
Improve Code with andrej-karpathy-skills
Get better code behavior with andrej-karpathy-skills, 165k+ GitHub stars, for founders using LLMs.
ai-agent★ 189,101
Simplify Zsh with ohmyzsh
Get a customizable terminal experience with ohmyzsh, perfect for startup founders, backed by 188k+ GitHub stars.