Use your own model providers

Add your company's Anthropic-compatible, Bedrock, Azure or LangWatch gateway provider, test it and make it what agents Laze runs call, with the key kept on Laze's servers.

Agents Laze runs on Claude Code can call your company's own model provider instead of Laze models. The provider key stays on Laze's servers: the agent's computer holds only a placeholder, and Laze swaps the real key in as the call leaves. Calls to your provider use no Laze credits.

Your Laze contact turns it on for your workspace. Until then the card does not show and every provider command answers that your company's models are not on.

Add a provider

Under Settings, Laze models, an Owner or Admin finds Your company's models and clicks Add provider. Members do not see the card.

FieldWhat to enter
ProviderAnthropic compatible (Databricks, Anthropic), OpenAI compatible, AWS Bedrock, Azure AI Foundry or LangWatch gateway
NameA name for the list, such as Databricks
Base URLThe provider's address. For Databricks, the workspace address is enough
AWS regionFor AWS Bedrock, instead of a base URL
Azure resource nameFor Azure AI Foundry, instead of a base URL
KeyThe provider's key. When editing, Leave empty to keep the saved key.
Model for Laze FrontierThe provider's name for the model agents on Laze Frontier run
Model for Laze SmallThe provider's name for the model agents on Laze Small run
Extended thinkingTurn it off for models that do not support it

Click Save. Use LangWatch gateway for providers Laze does not reach directly, such as Google Vertex or Bedrock with IAM roles.

Addresses Laze accepts

The base URL must be https on port 443, on a public host name. An IP address, a port, a user name or password, a query or a private address is refused. A URL pasted with its API path, such as https://models.example.com/anthropic/v1/messages, is stored as https://models.example.com/anthropic.

Changing a provider's address asks for the key again, so a saved key is never sent to a new server. Extra headers are stored as plain text, so headers that carry credentials, such as Authorization, are refused.

Test a provider

Click Test. Laze makes one short call per mapped model and shows a line for each:

LineWhat to fix
<model> answered in <n> msNothing
<model>: the key was refusedThe key
<model>: the provider has no model by this nameThe model name
<model>: out of quota or rate limitedQuota at the provider
<model>: this address does not answer as a model APIThe base URL
<model>: the provider could not be reachedThe address or the provider's network
<model>: the provider answered with an errorThe provider

Each failure also shows the provider's own message, with the key removed.

Pick what agents run on

Agents Laze runs use picks one provider, or Laze models. Agents on the default provider run their Laze Frontier model in place of Opus and Sonnet, and their Laze Small model in place of Haiku.

Claude Code speaks the Anthropic Messages API, so only an Anthropic-compatible provider can be picked. An OpenAI-compatible provider can be saved and tested, and shows Agents need an Anthropic-compatible endpoint.

Agents on a Claude or Codex login, and agents on people's own computers, keep what they run on. Budgets and credits do not apply to calls to your provider, and agents keep running when Laze models on in this workspace is off.

The default provider cannot be removed until another default is picked. If Laze cannot open the stored key, the agent's turn is refused with a notice pointing to Settings, Laze models; it never falls back to Laze models.

From the command line

Owners and Admins run the same steps with laze models. The key is read from standard input with --key-stdin, never from a flag, and save-provider does not run over MCP, so a key never passes through a chat model.

laze models providers
laze models save-provider --name Databricks --kind anthropic --address https://acme.cloud.databricks.com --frontier <model> --small <model> --key-stdin < key.txt
laze models test-provider Databricks
laze models default-provider Databricks
laze models default-provider laze
laze models remove-provider Databricks

--kind takes anthropic, openai, bedrock, azure or langwatch. For Bedrock, --address is the region; for Azure, the resource name. --no-thinking turns extended thinking off. Without --key-stdin, an edit with --id <provider> keeps the saved key. test-provider exits with an error when a model does not answer.

An agent's key is refused by every provider command.

What is recorded

Adding, changing and removing a provider, and changing the default, are entries in the workspace audit log. No entry holds the key.

Also check: Models, budgets and usage, Hosted agents.