AI connections
Your models. Your endpoints.
Use Lemonade, LM Studio, Ollama, or another local runtime. Add a private OpenAI-compatible gateway or any compatible endpoint when you choose remote AI.
01
Choose a connection in Settings
Open Settings → AI connections, select an endpoint, then choose an advertised model. Check endpoints probes the public model APIs of your configured connections and standard local runtimes. It does not scan the network or connect to internal model worker ports.
Models come from each runtime’s own catalog. KeepIndex does not search cache directories or download weights automatically. Unavailable profiles can be configured before their runtime is started.
02
Connect local engines
For Docker Desktop, use host.docker.internal to reach a runtime on the computer. Native KeepIndex uses 127.0.0.1. Use the runtime’s public API and update a profile for a custom port.
Lemonade’s current default API is port 13305 with an /api base. Older installations may use another public port. LM Studio uses 1234, Ollama 11434, and standalone llama.cpp commonly uses 8080.
Lemonade http://host.docker.internal:13305/api
LM Studio http://host.docker.internal:1234
Ollama http://host.docker.internal:11434
llama.cpp http://host.docker.internal:8080
03
Add a gateway or another endpoint
Choose Add endpoint, enter a name, HTTP(S) URL, protocol, and optional API key. Use OpenAI-compatible for Lemonade, LM Studio, a private gateway, or another compatible API. Native Ollama is also supported.
A base URL with or without /v1 is accepted for compatible APIs. Use the exact advertised model IDs, including routing prefixes at gateways. Saving a new endpoint does not select it.
A remote selection sends prompts and retrieved excerpts to that endpoint. Your original folders and index stay on this computer. Use HTTPS or a separately protected transport when connecting remotely.
04
Bootstrap with environment settings
Environment variables seed the first configured connection. Once you save connections in Settings, the local saved catalog takes precedence. Keys stay in an owner-readable file alongside the database and never appear in the browser’s model catalog.
KEEPINDEX_AI_NAME=Lemonade
LLM_URL=http://host.docker.internal:13305/api
KEEPINDEX_INFERENCE_PROVIDER=openai-compatible
LLM_MODEL=
LLM_API_KEY=
05
An explicit choice for every destination
Local, LAN, Tailscale, and public compatible inference endpoints are supported. Credentials in URLs, query strings, fragments, and redirects are rejected. A connection’s API key is used only for that connection’s inference requests.
Requests already running remain on their original connection while you select another endpoint. An unavailable endpoint does not cause a switch to remote AI. A configured fallback model stays within the selected endpoint.
Read the AI data boundary ↗