Request a demo
Guide

Bring your own model: how InsightWorker picks a provider, and how to choose one

The seven model providers InsightWorker can use, the order in which it picks one from your configuration, per-step model overrides in apps, what enterprise policy checks, and a practical way to decide.

November 9, 2026 · 7 min read · All articles

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.

Where the data goes. Prompts, tool results and file contents the agent reads are sent to the provider you configure, under your agreement with that provider. The worker itself runs on your machine or server. If some data must not leave your network, point the worker at a model you host (an OpenAI-compatible endpoint) and keep those tasks on it.

How to decide

If...Start with
Your workloads already run in AWS and you have Bedrock model accessBedrock, with the machine's role
Your organisation standardised on MicrosoftAzure OpenAI
You are on Google CloudVertex AI (or Gemini for a quick trial)
Data must stay on your networkAn OpenAI-compatible endpoint you host
You want the simplest setup for a pilotThe provider whose API key you can get today

A short evaluation

  1. Pick two or three real tasks your team would hand to the worker, ideally as apps.
  2. Run each on two providers (switch with LLM_PROVIDER), keeping everything else equal.
  3. Compare the outputs a reviewer would accept, the time per run and your provider's cost for the tokens used.
  4. Move the mechanical steps to a fast model and repeat; keep what holds up.

Build one app for your team

Bring one repetitive task your team does every week. We will build it with you as an InsightWorker app, on your model provider, and run it from the CLI, a browser or a schedule.

Request a demo