Your first provider is connected during the onboarding wizard. This page covers adding additional providers or managing existing ones from Settings → Connections.
Supported providers
- API key providers
- OAuth / interactive providers
- Local / self-hosted
These are the simplest to connect — paste a key, done.
Step-by-step: adding a provider
1
Open Connections
Go to Settings → Connections in the HQ sidebar.
2
Click Add connection
Select your provider from the catalog. Each card shows the auth method.
3
Complete auth
- API key: paste your key, click Connect
- OAuth: click Start, follow the browser flow, return to HQ
- Local URL: enter the endpoint URL (see Ollama/LM Studio guides below)
4
Set a default model
After connecting, you’ll be prompted to pick a default model. This applies to all agents unless overridden per-agent.
Ollama (free, runs on your machine)
Ollama lets you run models like Llama 3, Mistral, Gemma, and others locally with no API costs. Everything stays on your machine.1
Install Ollama
Download from ollama.com and install it.
2
Pull a model
3
Connect in HQ
Go to Settings → Connections → Add connection → Ollama. Enter this URL:
host.docker.internal is how Docker reaches your Mac/Windows machine. On Linux, use your host IP (e.g. http://172.17.0.1:11434).4
Verify
Click Connect. HQ probes the endpoint and lists available models. Pick one as the default.
LM Studio
LM Studio is a Mac/Windows/Linux app with a GUI for downloading and running local models.1
Install and load a model
Download from lmstudio.ai, open it, browse the model library, and download a model.
2
Start the local server
In LM Studio, go to Local Server (left sidebar) → click Start Server. Note the port (default is 1234).
3
Connect in HQ
Go to Settings → Connections → Add connection → LM Studio (or use “OpenAI-compatible”). Enter:
Per-agent model overrides
Each agent can use a different provider and model. This lets you run a cheap local model for a background researcher while a cofounder agent uses Claude Opus. To override for one agent: open the agent’s detail page → look for the Model section in the right rail → pick a model and thinking level.Model selection
The model picker shows models grouped by provider, filtered to only providers you’ve connected. If you have multiple connections that serve the same models (e.g. an OpenAI API key and an OpenAI subscription), the picker shows one unified “OpenAI” group that routes through whichever connection you have. If both are connected, each model appears with “Subscription” and “API” route labels so you can choose which billing path to use.Thinking level
For models that support extended thinking (Claude, o-series), you can set a thinking level per agent:Per-task overrides
When creating or editing a task assigned to an agent, you can override the thinking level for that specific task. This is useful for one-off complex tasks that need deeper reasoning without changing the agent’s default. Task-level overrides are passed to the agent session at wake time via the inbox dispatch mechanism.Resolution order
The model used for any given agent session follows this cascade:- Per-task override (if the wake was triggered by a task with
model_overrideorthinking_override) - Agent default (set in the agent detail sidebar)
- Gateway default (the first connected model, or the workspace default from Settings → Connections)
Rotating or removing a provider
To remove a provider or rotate keys:- Go to Settings → Connections
- Find the provider → click Remove or Update key
- For a key rotation: click Remove, then re-add with the new key

