Setting up Providers
Install and configure your AI backend for Karpa: LM Studio, Ollama, or cloud providers.
Karpa supports multiple AI backends. Local runtimes (LM Studio, Ollama) keep everything on your machine; cloud providers trade some privacy for convenience. Here is how to set up each one.
LM Studio (Local)
LM Studio is the recommended local runtime for translation work.
1. Install LM Studio
Download from lmstudio.ai and install for your platform (macOS, Windows, Linux).
2. Download a model
- Open the Search tab in LM Studio.
- Search for a translation-capable model. Good starting points include
HY-MT1.5-7Bor a small instruct model such asllama3.2(see Choosing a Model). - Download a quantized variant such as
Q4_K_M.
Quantized models are smaller and faster while keeping good translation quality.
Q4_K_Mis the usual sweet spot for local use.
3. Start the local server
- Go to the Developer / Local Server tab.
- Load your downloaded model.
- Set the port to 1234.
- Click Start Server and confirm the status shows running.
4. Connect Karpa
In Settings → Connection, select LM Studio. The default URL
(http://localhost:1234) works if you kept the default port. Use the model
picker to select your loaded model, then click Test Connection.
Ollama (Local)
Ollama is an alternative local runtime.
1. Install Ollama
Download from ollama.com and install.
2. Pull a model
ollama pull llama3.2
# or any other model that works well for translation3. Make sure the server is running
Ollama starts a background server automatically on port 11434 when you use the CLI. Verify with:
curl http://localhost:11434/api/tags4. Connect Karpa
In Settings → Connection, select Ollama. The default URL
(http://localhost:11434) works out of the box.
OpenAI (Cloud)
- Create an account at platform.openai.com.
- Generate an API key in the dashboard.
- In Karpa's Settings → Connection, select OpenAI.
- Enter your API key and choose a model (default:
gpt-4o-mini).
Anthropic (Cloud)
- Create an account at console.anthropic.com.
- Generate an API key.
- In Karpa's Settings → Connection, select Anthropic.
- Enter your API key and choose a model (default:
claude-sonnet-4-20250514).
Google Gemini (Cloud)
- Get an API key from aistudio.google.com.
- In Karpa's Settings → Connection, select Google Gemini.
- Enter your API key and choose a model (default:
gemini-2.0-flash).
OpenRouter (Cloud)
One API key, 200+ models from many providers.
- Create an account at openrouter.ai.
- Generate an API key.
- In Karpa's Settings → Connection, select OpenRouter.
- Enter your API key and pick any model from the catalog.
Custom (Self-hosted / Proxy)
Any OpenAI-compatible endpoint works: vLLM, LiteLLM, text-generation-webui, corporate gateways, you name it.
- In Settings → Connection, select Custom.
- Enter the base URL of the endpoint.
- Add an API key if your endpoint requires one.
- Type the model identifier manually if auto-fetch cannot list models.
That's it. You can switch providers anytime from Settings without restarting the app.
