Model String Format
All models use the formatprovider/model-id:
Built-in Providers
Anthropic
Models
Example
OpenAI
Models
Example
Azure OpenAI
Environment Variables
Example
Amazon Bedrock
Authentication uses a Bedrock API key (bearer token). The AWS region is read from
AWS_REGION unless a full runtime endpoint is supplied via baseUrls.bedrock (e.g. https://bedrock-runtime.us-east-1.amazonaws.com).
Models
Use any Bedrock model or inference profile ID your AWS account has been granted access to:Environment Variables
Example
Google (Gemini)
Models
Example
Mistral
Models
Example
DeepSeek
Models
Example
Ollama (Local)
Models
Any locally installed model:llama3codellamamistralmixtral- etc.
Ensure Ollama is running locally before use. The API key parameter is required but not used—pass any string.
Example
OpenRouter
Access many models through one API:
Example
xAI (Grok)
Models
Example
Custom Providers
Add your own OpenAI or Anthropic-compatible endpoints.CustomProvider Type
Properties
OpenAI-Compatible Example
Anthropic-Compatible Example
LiteLLM Example
Helper Functions
parseLLMString()
Parse a model string into provider and model ID.Example
createModelFromString()
Create a provider model instance directly.Example
createCustomProvider()
Create a custom provider configuration object.Example
Environment Variables Summary
Related
- Testing Across Providers - Conceptual guide
- HostRunner Reference - Agent configuration

