---
title: Model Providers
description: "Use any LLM with Strands agents. Switch between Amazon Bedrock, Anthropic, OpenAI, Ollama, and more without changing your agent code."
sidebar:
  label: "Overview"
---

import { getCollection } from 'astro:content'
import { getIntegrationEntries } from '@util/integration-content'
import SimpleTable from '@components/SimpleTable.astro'
import PageLink from '@components/PageLink.astro'

export const allDocs = await getCollection('docs')
export const officialProviders = getIntegrationEntries(allDocs, 'model-provider', false)
export const communityProviders = getIntegrationEntries(allDocs, 'model-provider', true)

export const providerColumns = [
  { header: "Provider" },
  { header: "Python Supported", style: { textAlign: 'center' } },
  { header: "TypeScript Supported", style: { textAlign: 'center' } },
]

export const renderCell = (item, col) => [
  <PageLink href={item.href}>{item.displayTitle}</PageLink>,
  item.pythonSupport ? '✅' : '❌',
  item.typescriptSupport ? '✅' : '❌',
][col]

## What are Model Providers?

A model provider is a service or platform that hosts and serves large language models through an API. The Strands Agents SDK abstracts away the complexity of working with different providers, offering a unified interface that makes it easy to switch between models or use multiple providers in the same application.

## Supported Providers

The following table shows all model providers supported by Strands Agents SDK and their availability in Python and TypeScript:

<SimpleTable data={officialProviders} columns={providerColumns}>
  {renderCell}
</SimpleTable>

### Community providers

The following providers are built and maintained by the Strands community. Browse the [Community Catalog](/docs/community/community-packages/) to explore additional community packages.

<SimpleTable data={communityProviders} columns={providerColumns}>
  {renderCell}
</SimpleTable>

## Getting Started

### Installation

Most providers are available as optional dependencies. Install the provider you need:

<Tabs>
<Tab label="Python">

```bash
# Install with specific provider
pip install 'strands-agents[bedrock]'
pip install 'strands-agents[openai]'
pip install 'strands-agents[anthropic]'

# Or install with all providers
pip install 'strands-agents[all]'
```
</Tab>
<Tab label="TypeScript">

```bash
# Core SDK includes BedrockModel by default
npm install @strands-agents/sdk

# To use OpenAI, install the openai package
npm install openai
```

> **Note:** All model providers except Bedrock are listed as optional dependencies in the SDK. This means npm will attempt to install them automatically, but won't fail if they're unavailable. You can explicitly install them when needed.
</Tab>
</Tabs>

### Basic Usage

Each provider follows a similar pattern for initialization and usage. Models are interchangeable - you can easily switch between providers by changing the model instance:

<Tabs>
<Tab label="Python">

```python
from strands import Agent
from strands.models.bedrock import BedrockModel
from strands.models.openai import OpenAIModel

# Use Bedrock
bedrock_model = BedrockModel(
    model_id="anthropic.claude-sonnet-4-20250514-v1:0"
)
agent = Agent(model=bedrock_model)
response = agent("What can you help me with?")

# Alternatively, use OpenAI by just switching model provider
openai_model = OpenAIModel(
    client_args={"api_key": "<KEY>"},
    model_id="gpt-4o"
)
agent = Agent(model=openai_model)
response = agent("What can you help me with?")
```
</Tab>
<Tab label="TypeScript">

```typescript
--8<-- "user-guide/concepts/model-providers/index_imports.ts:basic_usage_imports"

--8<-- "user-guide/concepts/model-providers/index.ts:basic_usage"
```
</Tab>
</Tabs>

## Next Steps

### Explore Model Providers

- **[Amazon Bedrock](amazon-bedrock.md)** - Default provider with wide model selection, enterprise features, and full Python/TypeScript support
- **[OpenAI](openai.md)** - GPT models with streaming support
- **[Google](google.md)** - Google's Gemini models with tool calling support
- **[Custom Providers](custom_model_provider.md)** - Build your own model integration
- **[Anthropic](anthropic.md)** - Direct Claude API access
