> ## Documentation Index
> Fetch the complete documentation index at: https://koharu.rs/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect a translation provider

> Use local GGUF models, hosted services, or a compatible model server.

The model picker lists Koharu's local models and every model of each provider you have connected. A model is named `provider/model`, such as `koharu/index-translate-9b`. Translation and the Agent pick from the same list; the Agent offers only models that can call tools.

## Available connections

| Connection | Providers | Connect with |
| - | - | - |
| Local inference | Koharu's GGUF models, run in-process through llama.cpp | Nothing |
| Hosted APIs | OpenAI, Anthropic, Google Gemini, xAI, DeepSeek, MiniMax, OpenRouter | An API key |
| Subscriptions | ChatGPT, and Grok with a SuperGrok or X Premium plan | Sign-in |
| Self-hosted | Ollama, LM Studio, and one OpenAI-compatible server | A base URL, and a key if the server needs one |

Koharu's local models include Index-Translate (2B, 9B, and a 35B A3B preview), which only translate, and general models from the Gemma 4, Qwen 3.5, Qwen 3.6, Qwen 3.8, and LFM3 families, some in uncensored variants. Index-Translate 9B is the default translation model. Each local model downloads from Hugging Face the first time it runs.

**1. Save the connection**

Open **Settings → Providers**. Enter a provider's API key in its **Credential** field; it is
saved when the field loses focus. For ChatGPT or Grok, choose **Sign in** and finish signing in
on the page your browser opens, entering the code Koharu shows if asked.

For Ollama, LM Studio, or an OpenAI-compatible server, enter its **Base URL**. Ollama and LM
Studio default to their usual local addresses when the field is empty; LM Studio's is
`http://localhost:1234`. An OpenAI-compatible server needs a base URL ending where OpenAI's
`/v1` does, such as `https://example.com/v1`.

**2. Select a model**

Open the processing selector's **Model** or **Settings → Translation → Translation model**.
Opening the processing selector refreshes the list. A provider without a key, or one that
cannot be reached, lists no models.

**3. Try one page**

Check the source text, run translation on the current page, and review the result before
processing a chapter.

## Credentials and privacy

API keys and sign-ins are stored encrypted in `~/.koharu/secrets.age`, with the key kept in the operating system's credential store; no environment variable is read. Base URLs live in the `[providers]` section of `~/.koharu/config.toml`. **Sign out** revokes a subscription sign-in and deletes it; the eraser button clears a key.

Local models keep pages and text on your machine after download. A hosted provider receives the text of each page it translates, and the page image when **Vision** is on, under its own retention terms. Local detection and OCR do not make a hosted translation request local.

> [!WARNING]
>
> Keep keys out of the system prompt, text layers, and configuration files. Save credentials through
> **Settings → Providers**.


## Related topics

- [Troubleshooting](https://koharu.rs/reference/troubleshooting.md)
- [Configure translation](https://koharu.rs/models/translation.md)
- [Koharu documentation](https://koharu.rs/index.md)
- [Set up Koharu Agent](https://koharu.rs/agent/setup.md)
- [Settings](https://koharu.rs/reference/settings.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.