Skip to main content
When working with Agno, you may need to switch between different models. While Agno supports 20+ model providers, switching between different providers can cause compatibility issues. Switching models within the same provider is generally safer and more reliable. Safe: Switch models within the same provider (OpenAI → OpenAI, Google → Google)
Risky: Switch between different providers (OpenAI ↔ Google ↔ Anthropic)
Cross-provider switching is risky because message history between model providers are often not interchangeable, as some require messages that others don’t. However, we are actively working to improve interoperability.

Safe Model Switching

The safest way to switch models is to change the model ID while keeping the same provider:

Cross-Provider Switching

Switching between providers can cause compatibility issues and is not recommended for production use without thorough testing:

Learn More