Browser extension and desktop app that translates, polishes and summarizes selected text using LLM APIs like ChatGPT, Azure OpenAI and MiniMax.
LanceMoe/openai-translator
A PWA translator that uses OpenAI-compatible chat models, installable on phone or desktop, with local translation history.
Open-source alternative to:DeepL
- Stars
- 397
- Forks
- 59
- Open issues
- 6
- Last commit
- 29 days ago
What is it?
OpenAI Translator is a progressive web app that sends translation requests to any OpenAI-compatible chat model through the /v1/chat/completions API. Users set a custom API base URL and API key, then pick a suggested model or type in any chat model identifier the provider supports.
The app can stream output as it is generated and saves translation history in the browser. Because it is a PWA, it can be installed on phones and desktops. It is built with React 19, Vite, Tailwind CSS with DaisyUI, and React Query, and can be deployed as static files or as a Docker container served by nginx.
Key features
- 01Calls the OpenAI-compatible /v1/chat/completions API with optional streaming output.
- 02Supports custom API base URLs and keys for compatible providers.
- 03Lets you pick a suggested model or enter any chat model identifier.
- 04Stores translation history locally in the browser.
- 05Installable as a PWA on phone or desktop.
Use cases
- Translating text with your own OpenAI API key without a third-party translation service.
- Using a self-hosted or alternative OpenAI-compatible model endpoint for translation.
- Running a private translation web app on your own server with Docker or static hosting.
Quick start
- 1
Install pnpm (see pnpm.io/installation)
- 2
Install project dependencies
pnpm install - 3
Start the local development server
pnpm dev
Things to know
- Requires an API key and access to an OpenAI-compatible provider, and model availability depends on that provider.
Topics
FAQ
- What is openai-translator?
- A PWA translator that uses OpenAI-compatible chat models, installable on phone or desktop, with local translation history. OpenAI Translator is a progressive web app that sends translation requests to any OpenAI-compatible chat model through the /v1/chat/completions API. Users set a custom API base URL and API key, then pick a suggested model or type in any chat model identifier the provider supports.
- Is openai-translator free to use? What license does it have?
- openai-translator is open source under the GPL-3.0 license. Check the license terms before using it in commercial products.
- Is openai-translator still maintained?
- Actively maintained. The last commit to openai-translator was on Oct 8, 2026.
- What can I use openai-translator for?
- Translating text with your own OpenAI API key without a third-party translation service. Using a self-hosted or alternative OpenAI-compatible model endpoint for translation. Running a private translation web app on your own server with Docker or static hosting.
- How do I install openai-translator?
- Install pnpm (see pnpm.io/installation) Install project dependencies: pnpm install Start the local development server: pnpm dev
- Where can I get openai-translator?
- The source code and installation instructions are on GitHub: https://github.com/LanceMoe/openai-translator
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A Bob translation plugin that uses OpenAI, Gemini, MiniMax or OpenAI-compatible APIs for translation, polishing and grammar correction.
A bilingual translation browser extension and Greasemonkey/Tampermonkey userscript for side-by-side web page, input box, and video subtitle translation.
A CLI and web tool that translates SRT subtitle files line by line using ChatGPT or any OpenAI-compatible API, including local Ollama models.
A Chrome, Firefox and Edge browser extension that brings Notion AI-style writing and reading assistance to any webpage, powered by OpenAI GPT models.
A Django app that integrates Tailwind CSS into a Django project, with a standalone binary mode that needs no Node.js.