Quad Harness
0.2.0Download

Docs Models and providers

Models

Add any model as an endpoint, from built-in presets to Ollama, LM Studio, vLLM, OpenRouter or a custom JSON API, with write-only keys and reasoning effort.

5 min read

Quad Harness has no model of its own and no hard-wired provider. A model is an entry you add: where to send requests, which model id to ask for, which protocol to speak and, if needed, a key. This page covers models the engine talks to directly. For Claude Code, Codex and Antigravity, see Agent providers.

Where models live

Open Settings → Models and agents → Models and keys. The page has two parts:

  • Configured providers: every model you added, with its model id, protocol, context window and whether a key is saved. Each has Edit and Remove. The default one is marked default.
  • Add a model provider: the form to add a new one, with two tabs, Built-in provider and Custom API.

Add a built-in provider

Built-in providers have a fixed endpoint, so you never type a URL.

Provider Endpoint Suggested models
DeepSeek https://api.deepseek.com/v1 deepseek-chat, deepseek-reasoner
Kimi (Moonshot AI) https://api.moonshot.ai/v1 kimi-k2-0905-preview, kimi-k2-turbo-preview, moonshot-v1-128k
GLM (Zhipu AI) https://open.bigmodel.cn/api/paas/v4 glm-4.6, glm-4.5, glm-4.5-air
OpenAI https://api.openai.com/v1 gpt-4.1, gpt-4.1-mini, o3, o4-mini
Ollama (local) http://localhost:11434 llama3.1:8b, qwen3:8b, deepseek-r1:8b
  1. Choose the Built-in provider tab and pick a Provider.
  2. Paste your API key. Ollama on your own Mac needs none.
  3. Choose Load models. The app asks the provider’s /models endpoint (or Ollama’s /api/tags) and replaces the suggested list with what your account actually serves.
  4. Pick a Model.
  5. Optionally set a Context window (see below).
  6. Choose Add provider.

Add a custom endpoint

Choose the Custom API tab for anything else: a local server, a gateway, a hosted API with no preset.

Field What to put
Name A label for the picker, for example My gateway
Model The model id the server expects. Load models fills the list if the server has a models endpoint.
Context window Optional, in tokens
Base URL Where the API lives, for example https://gateway.example/v1
API protocol Chat completions, Ollama native or Custom JSON (below)
API key Optional. Sent as a bearer token.
Request path Optional. The path added to the base URL, for example /chat/completions
Response path Optional, for Custom JSON: where the answer is in the reply, as a dot path, for example choices.0.message.content

The three protocols

Protocol Use it for How it talks
Chat completions OpenAI-compatible APIs: vLLM, LM Studio, OpenRouter, most gateways, Ollama’s compatible endpoint Server-sent events, OpenAI’s chat format with tool calls
Ollama native Ollama’s own /api/chat Newline-delimited JSON
Custom JSON Anything else that takes a JSON body You give the request path and the response path

Base URL examples

Server Base URL Protocol
LM Studio http://localhost:1234/v1 Chat completions
vLLM http://localhost:8000/v1 Chat completions
Ollama (native) http://localhost:11434 Ollama native
Ollama (compatible endpoint) http://localhost:11434/v1 Chat completions
OpenRouter https://openrouter.ai/api/v1 Chat completions

Use the port your server actually listens on. The values above are the usual defaults.

Note. The native Ollama base URL has no /v1. The compatible one does. Mixing them up is the most common reason a local model does not answer. See Troubleshooting.

A custom JSON example

Say your service takes POST https://models.example.com/generate and answers {"output": {"text": "..."}}:

Field Value
Base URL https://models.example.com
API protocol Custom JSON
Request path /generate
Response path output.text

Keys are write-only

When you save a key, it goes to credentials.json in the app’s data folder, a file only your user account can read. models.json holds only the endpoint and model id. The window never gets the key back: it shows Key saved with a short redacted preview. To change a key, type a new one when editing. To delete it, choose Remove saved key while editing, then save.

Keys are sent only to the endpoint they belong to. They are never shown to the model.

The default model

New sessions use the default model. Set it in Settings → General → Default model, or by picking a model in the composer’s model picker, which also makes it the default. No model means sessions start without a provider.

You can switch a session to another model at any time from the model chip. Switching between models of the same provider reuses its saved key.

Context window

The context window is how many tokens the model can take in one request. Leave the field on Auto and the app uses what it knows about the model id, or 128,000 tokens when it knows nothing. Set it yourself if your server is configured differently, for example a local model started with a smaller context.

The context window decides when the conversation is compacted (if that comes before the token saving limit) and what the context ring in the top bar shows.

Reasoning effort

Some models accept a reasoning effort. When the chosen model does, the model picker shows an effort control:

Models Levels
OpenAI gpt-5, o1, o3, o4 families Off, Low, Medium, High, Max
deepseek-reasoner, Kimi K2, GLM 4.6, and models with thinking in their name Off, Low, High, Max

Other models show no effort control. In the Lean token saving profile, plain questions get a low effort automatically when the model offers one. See Saving tokens.

Images

Whether a model reads images is worked out from its name. A model that does not is never sent an image. To override, add "vision": true or "vision": false to that model’s entry in models.json in the data folder.

When a provider is busy

If a request cannot start because the provider says “not now” (too many requests, overloaded, a bad gateway, a timeout) or the connection drops before anything arrives, the app tries again after about 1, 3 and 8 seconds, or after the provider’s own Retry-After if that is longer (up to 30 seconds). Only the start of a request is retried, so no answer is ever repeated or cut in two.