InsightWorker does not bring a model; it brings the agent, the tools and the apps, and uses the model provider you already have an agreement with. That matters to security reviews (data goes where your contract says), to cost (you pay your provider's rates) and to choice (you can change provider without changing apps). This guide covers what is supported, how the worker picks, and how to decide.
Seven providers
- AWS Bedrock, with the AWS credentials of the machine or role, in your region.
- Anthropic API directly.
- OpenAI, with an optional reasoning-effort setting for models that take one.
- Azure OpenAI: endpoint, key, deployment and API version.
- Google Gemini with an API key, or Vertex AI with a project, a location and service-account credentials.
- Any OpenAI-compatible endpoint (
CUSTOM_LLM_BASE_URL), which covers self-hosted gateways and on-premises model servers.
How it picks
Configuration comes from a .env in the folder you run from, or ~/.insightworker/.env when there is none, or the
process environment. If you set LLM_PROVIDER, that is the provider. If not, the worker takes the first one whose credentials are
present, in a fixed order, and falls back to Bedrock. The banner at start-up prints the provider and model it chose; check it the first time,
because a stray OPENAI_API_KEY in your shell will be picked over an Anthropic key in the file.
# ~/.insightworker/.env (or .env in the folder you run from)
LLM_PROVIDER=azure
AZURE_OPENAI_ENDPOINT=https://<your-resource>.openai.azure.com
AZURE_OPENAI_API_KEY=...
AZURE_OPENAI_DEPLOYMENT=<your-deployment>
AZURE_OPENAI_API_VERSION=<api-version>
# a faster model for mechanical app steps that ask for {{fast_model}}
INSIGHTWORKER_FAST_MODEL=<a smaller deployment>
Different models for different steps
An app's workflow.yaml can set model on a step: a literal model id, or {{fast_model}} /
{{default_model}}, which resolve from INSIGHTWORKER_FAST_MODEL and INSIGHTWORKER_DEFAULT_MODEL.
Authors use it to put short, mechanical steps (a summary, a config file, a rollup) on a smaller, cheaper model and keep the larger one for
judgement. A step can also raise its output-token limit for large structured outputs. Shell steps use no model at all.
What enterprise policy checks
In enterprise mode, before every agent loop the worker checks the active model against the organisation's policy from the console: if
an allow-list is set, the model must be on it, and it must not be on the deny-list. Model ids are namespaced by provider
(bedrock:<model-id>), and a policy can pin a specific model for a specific app. A denied model stops the run with a message
naming the models that are allowed.
How to decide
| If... | Start with |
|---|---|
| Your workloads already run in AWS and you have Bedrock model access | Bedrock, with the machine's role |
| Your organisation standardised on Microsoft | Azure OpenAI |
| You are on Google Cloud | Vertex AI (or Gemini for a quick trial) |
| Data must stay on your network | An OpenAI-compatible endpoint you host |
| You want the simplest setup for a pilot | The provider whose API key you can get today |
A short evaluation
- Pick two or three real tasks your team would hand to the worker, ideally as apps.
- Run each on two providers (switch with
LLM_PROVIDER), keeping everything else equal. - Compare the outputs a reviewer would accept, the time per run and your provider's cost for the tokens used.
- Move the mechanical steps to a fast model and repeat; keep what holds up.

