Learn how to connect ZeroChat with any language model, running either on your machine or in the cloud.
ZeroChat lets you define multiple connection profiles. A profile encapsulates the API protocol type, server endpoint URL, authentication key (optional for local servers), and selected model name.
To manage profiles, click the active profile name in the header. The selector lets you create and export profiles, close the menu, and edit or delete each listed profile. Selecting one makes it active.
The profile selector lets you Export all editable definitions. It downloads an encrypted HTML file: open it to start importing into ZeroChat. After confirmation, new profiles are added and matching identifiers are updated without changing the Mirror profile.
API keys are encrypted in the browser's local profile storage and remain encrypted inside the backup, which adds a second encryption layer. The Lock changes checkbox, located in the editor header, marks a profile as non-editable when it is loaded again; the lock protects all profile settings. Changes are saved using the Save button in the modal header.
| Interface Type | Common Servers & Services | Typical Endpoint | API Key |
|---|---|---|---|
| OpenAI / Compatible | LM Studio, LocalAI, vLLM, official OpenAI | http://localhost:1234/v1 |
Optional on local / Required on OpenAI |
| Ollama | Local Ollama server | http://localhost:11434 |
Not required |
| OpenRouter | OpenRouter multi-model gateway | https://openrouter.ai/api/v1 |
Required (sk-or-...) |
| Anthropic Claude | Official Anthropic API | https://api.anthropic.com/v1 |
Required (sk-ant-...) |
| Google Gemini | Google AI Studio | Gemini OpenAI-compatible endpoint | Required |
| WebLLM | In-browser direct (WebGPU) | webllm://local (automated) |
Not applicable (100% local) |
| Mirror (Espejo) | Internal offline testing | No endpoint (simulated mode) | Not applicable |
When creating or editing a profile, ZeroChat provides a Query button next to the URL input. This inspects the server before saving:
When connecting to Ollama, browsers will block requests due to CORS (Cross-Origin Resource Sharing) unless Ollama is started with cross-origin access enabled:
# On Linux / macOS (terminal)
OLLAMA_ORIGINS="*" ollama serve
# On Windows (PowerShell)
$env:OLLAMA_ORIGINS="*"
ollama serve
If running Ollama as a systemd service on Linux, add Environment="OLLAMA_ORIGINS=*" under the [Service] section.
ZeroChat includes a read-only Mirror (Espejo) profile. It is ideal for UI testing and troubleshooting: