---
title: "Deploy LibreTranslate"
description: "Self-hosted, offline machine translation API with a web UI"
category: "AI/ML"
url: https://railway.com/deploy/libretranslate-4
---

# Deploy LibreTranslate

Self-hosted, offline machine translation API with a web UI

**[Deploy LibreTranslate on Railway](https://railway.com/template/libretranslate-4)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/libretranslate-4/manifest.json

- **Creator:** zer0person's Projects
- **Category:** AI/ML
- **Total deploys:** 1

## Template content

### LibreTranslate

- **Image:** libretranslate/libretranslate:latest
- **Start command:** `/app/scripts/entrypoint.sh --host 0.0.0.0 --port 5000 --threads 2 --update-models --load-only en,es,fr,de,it,pt,ru,zh,ja`
- **Public domain:** Yes

## Documentation

# Deploy and Host LibreTranslate on Railway

[LibreTranslate](https://github.com/LibreTranslate/LibreTranslate) is a free, open-source machine translation API powered by Argos Translate. It runs fully offline on your own server, with a simple web UI and a JSON API.

## About Hosting LibreTranslate

This template runs the official `libretranslate/libretranslate:latest` image with a volume at `/home/libretranslate/.local` for the language models. To keep memory and first-boot time reasonable, the start command loads English, Spanish, French, German, Italian, Portuguese, Russian, Chinese and Japanese with 2 workers. The first boot downloads these models (a few minutes) to the volume; each restart checks for missing or updated models. To change languages, edit `--load-only` in the service's start command.

The API is public and has no API key by default. Use `--api-keys` and the `ltmanage keys` command if you want to restrict it.

## Common Use Cases

- Translate text and documents in your own apps without a paid API
- Offer a private translation page to a team
- Keep text off third-party translation services

## Dependencies for LibreTranslate Hosting

- One service with a volume; nothing else

### Deployment Dependencies

- [LibreTranslate on GitHub](https://github.com/LibreTranslate/LibreTranslate)
- [Docker image](https://hub.docker.com/r/libretranslate/libretranslate)
- [API docs](https://docs.libretranslate.com)

## Why Deploy LibreTranslate on Railway?

Railway gives you a public HTTPS URL, a persistent volume for the models and automatic restarts with no server to maintain.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius v0.1 Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/libretranslate-4
