# OpenAI Translator for Raycast

URL: https://www.raycast.com/douo/openai-translator

> Translate, polish, summarize and explain text with OpenAI, Claude, Gemini, Groq, Ollama and other LLMs, from selection, clipboard or OCR.

- Install: raycast://extensions/douo/openai-translator
- Author: [Tiou Lims](https://www.raycast.com/douo)
- Installs: 10,793
- Platforms: macOS
- Categories: Applications, Productivity
- Updated: 2026-11-17
- Source: https://github.com/raycast/extensions/tree/459326f4f557692a79246dba2d013746f56d724b/extensions/openai-translator/

## Commands

- **Translate**: Translation based on Multiple LLMs.
- **Setup Providers**: Setup Providers
- **Polishing**: Polishing based on Multiple LLMs.
- **Summarize**: Summarize based on Multiple LLMs.
- **What Is It?**: Identify some text and tell what is it?
- **Query Selected**: Query selected text from frontmost application
- **Query Clipboard**: Query text from clipboard
- **Query OCR**: Query text from image

## README

### OpenAI Translator

[Raycast](https://www.raycast.com/) extension for translation based on ChatGPT API.

Quick Tips and Tricks:
[![Quick Tips and Tricks for Raycast OpenAI Translator](https://img.youtube.com/vi/2tW9iKz2nT0/maxresdefault.jpg)](https://www.youtube.com/watch?v=2tW9iKz2nT0)


### Insipired By

- [yetone/openai-translator](https://github.com/yetone/openai-translator)
- [abielzulio/chatgpt-raycast](https://github.com/abielzulio/chatgpt-raycast)
- [yihong0618/iWhat](https://github.com/yihong0618/iWhat)

### Install

#### Store

[Raycast OpenAI Translator](https://www.raycast.com/douo/openai-translator)

#### Manual

``` shell
git clone https://github.com/douo/raycast-openai-translator.git
cd raycast-openai-translator
npm install && npm run dev
```

After the extension command show up, You can stop(`Ctrl-c`) the server safely.


### Feature

![Intro](https://github.com/raycast/extensions/raw/459326f4f557692a79246dba2d013746f56d724b/extensions/openai-translator//doc/configuration.png)

It is recommended to set the Provider to "Custom..." and then manage your Providers using the "Setup Provider" command.

![Setup Provider](https://github.com/raycast/extensions/raw/459326f4f557692a79246dba2d013746f56d724b/extensions/openai-translator//doc/setup-provider.png)

#### Main Feature

- Selected text translation
- Screencapture translation（Powered by macOS Vision API）
- Clipboard text translation
- Global shortcut(Go to the Raycast extension configuration page to configure it manually)

![openai-translator-10](https://user-images.githubusercontent.com/743074/226171648-d138308b-837e-4b79-a84e-3f2173958066.png)

![Actions](https://github.com/raycast/extensions/raw/459326f4f557692a79246dba2d013746f56d724b/extensions/openai-translator//doc/actions.png)

#### Translation Mode

![Commands](https://github.com/raycast/extensions/raw/459326f4f557692a79246dba2d013746f56d724b/extensions/openai-translator//doc/commands.png)


- Translate
- Polishing
- Summarize
- What/What is it?

![Translate](https://github.com/raycast/extensions/raw/459326f4f557692a79246dba2d013746f56d724b/extensions/openai-translator//doc/translate.png)
![What](https://github.com/raycast/extensions/raw/459326f4f557692a79246dba2d013746f56d724b/extensions/openai-translator//doc/what-en.png)

#### Multiple LLM Provider Support

![Multi LLM](https://github.com/raycast/extensions/raw/459326f4f557692a79246dba2d013746f56d724b/extensions/openai-translator//doc/multi-llm.png)

- [OpenAI ChatGPT](https://chat.openai.com/)
- [Raycast AI](https://www.raycast.com/pro)
- [Azure OpenAI Service](https://azure.microsoft.com/en-us/products/cognitive-services/openai-service)
- [Gemini](https://gemini.google.com/)
- [Claude](https://claude.ai/)
- [Groq](https://groq.com/)
- [Moonshot](https://moonshot.cn/)
- [Ollama](https://ollama.com/)

##### OpenAI ChatGPT

- API Entrypoint: https://api.openai.com/v1/chat/completions
- API Key: Get your [OpenAI](https://platform.openai.com/account/api-keys) API Key.
- API Model: gpt-3.5-turbo/etc

##### Raycast AI

- API Entrypoint: none
- API Key: none
- API Model: No configuration required.

Requires [Raycast Pro](https://www.raycast.com/pro) to support.

##### Azure OpenAI Service

- API Entrypoint:`https://${resourceName}.openai.azure.com/openai/deployments/${deployName}/chat/completions?api-version=${apiVersion}`
- API Key: [Azure](https://portal.azure.com/) -> Azure OpenAI -> Keys and Endpoint
- API Model：No configuration required.

##### Gemini

- API Key: [Google AI Studio -> Get API Key](https://aistudio.google.com/app/apikey)

##### Claude

- API Key: [Anthrop Console](https://console.anthropic.com/settings/keys)

##### Groq

- API Key: [GroqCloud](https://console.groq.com/keys)

##### Moonshot

- API Key: [Moonshot AI](https://platform.moonshot.cn/console/api-keys)

##### Ollama

[OpenAI compatibility](https://ollama.com/blog/openai-compatibility)

#### Others

- [x] History records
- [x] Text copy
- [x] Stream text display
- [x] Manually specify text language (automatic detection is not reliable when mixing multiple languages)
- [x] Custom API Entrypoint
- [X] Proxy
- [ ] i18n
- [ ] TTS

![Stream UI](https://github.com/raycast/extensions/raw/459326f4f557692a79246dba2d013746f56d724b/extensions/openai-translator//doc/stream-text.png)
![Lang Dropdown](https://github.com/raycast/extensions/raw/459326f4f557692a79246dba2d013746f56d724b/extensions/openai-translator//doc/lang-dropdown.png)
![Empty](https://github.com/raycast/extensions/raw/459326f4f557692a79246dba2d013746f56d724b/extensions/openai-translator//doc/empty.png)

### How to configure shortcut to selected text query

- Configure the extension(`⌘+⇧+,`).
  1. Select "Query Selected"
  2. Setup shortcut
  3. Make sure "Query Mode" is "Translate".

![Enable Global Shortcuts](https://github.com/raycast/extensions/raw/459326f4f557692a79246dba2d013746f56d724b/extensions/openai-translator//doc/query-selected.png)
