This documentation is automatically synchronized with the OpenHands Software Agent SDK to ensure accuracy and completeness.
Model Categories
Verified Models
These models have been thoroughly tested with OpenHands and are recommended for production use. They are actively maintained and verified to work well with OpenHands agents.OpenHands Hosted Models
OpenHands provides hosted access to premium models through our API:claude-sonnet-4-5-20250929(recommended)claude-haiku-4-5-20251001gpt-5-codex(recommended)gpt-5-2025-08-07(recommended)gpt-5-mini-2025-08-07claude-sonnet-4-20250514claude-opus-4-20250514claude-opus-4-1-20250805devstral-small-2507devstral-medium-2507o3o4-minigemini-2.5-prokimi-k2-0711-previewqwen3-coder-480b
For OpenHands hosted models, see the OpenHands LLMs guide for setup instructions.
OpenAI Models
Verified OpenAI models that work excellently with OpenHands:gpt-5-codex(recommended for coding tasks)gpt-5-2025-08-07(recommended)gpt-5-mini-2025-08-07o4-minigpt-4ogpt-4o-minigpt-4-32kgpt-4.1gpt-4.1-2025-04-14o1-minio3codex-mini-latest
Anthropic Models
Verified Anthropic Claude models:claude-sonnet-4-5-20250929(recommended)claude-haiku-4-5-20251001claude-sonnet-4-20250514(recommended)claude-opus-4-20250514claude-opus-4-1-20250805claude-3-7-sonnet-20250219claude-3-sonnet-20240229claude-3-opus-20240229claude-3-haiku-20240307claude-3-5-haiku-20241022claude-3-5-sonnet-20241022claude-3-5-sonnet-20240620
Mistral Models
Verified Mistral AI models optimized for coding:devstral-small-2505devstral-small-2507(recommended)devstral-medium-2507(recommended)
Unverified Models
OpenHands supports hundreds of additional models through LiteLLM that haven’t been specifically verified but may work well. These include models from:- Google: Gemini Pro, Gemini Flash, PaLM models
- AWS Bedrock: Claude, Titan, Jurassic models
- Azure OpenAI: All OpenAI models via Azure
- Cohere: Command models
- AI21: Jurassic models
- Hugging Face: Open source models
- Local providers: Ollama, vLLM, SGLang, LM Studio
- Other providers: Groq, Together AI, Replicate, and more
Unverified models may have varying levels of compatibility with OpenHands. Performance and reliability may differ significantly from verified models.
Model Features
Different models support different features that enhance the OpenHands experience:Reasoning Models
Models that support enhanced reasoning capabilities: Reasoning Effort Support:- OpenAI o-series:
o1,o3,o3-mini,o4-mini - OpenAI GPT-5 family:
gpt-5,gpt-5-mini,gpt-5-codex - Google Gemini:
gemini-2.5-flash,gemini-2.5-pro
- Anthropic Claude 4.5:
claude-sonnet-4-5,claude-haiku-4-5
Vision Models
Many models support image input for visual reasoning tasks. Vision support is automatically detected through LiteLLM’s model information system.Tool Calling
Most modern models support native tool calling, which is essential for OpenHands agents. The SDK automatically detects and configures tool calling capabilities.Prompt Caching
Models that support prompt caching for improved performance and cost efficiency:- Anthropic Claude 3.5 and 4.x series
- Claude 3 Haiku and Opus (specific versions)
Provider Configuration
Using Verified Models
For verified models, you can use them directly with their model names:Using Unverified Models
For unverified models, use the provider prefix format:Model Selection Guidelines
For Production Use
Recommended models for production environments:- OpenHands Hosted:
claude-sonnet-4-5-20250929orgpt-5-codex - Self-hosted:
claude-sonnet-4-20250514orgpt-5-2025-08-07 - Cost-effective:
claude-haiku-4-5-20251001orgpt-5-mini-2025-08-07
For Development and Testing
Good options for development:- Fast and affordable:
gpt-4o-miniorclaude-3-5-haiku-20241022 - Local development:
devstral-small-2507via Ollama - Experimentation: Any unverified model that fits your use case
For Specialized Tasks
Coding-focused tasks:gpt-5-codex(OpenAI)devstral-medium-2507(Mistral)claude-sonnet-4-5-20250929(Anthropic)
o3oro4-mini(OpenAI)gemini-2.5-pro(Google)
gpt-4o(OpenAI)claude-sonnet-4-5-20250929(Anthropic)gemini-2.5-pro(Google)
Cost Considerations
Model costs vary significantly across providers and models. Consider these factors:- Input/Output token costs: Larger models typically cost more per token
- Prompt caching: Can reduce costs for repeated prompts
- Hosted vs. self-hosted: OpenHands hosted models may offer better value
- Usage patterns: High-volume usage may benefit from dedicated instances
For detailed pricing information, consult each provider’s pricing documentation. OpenHands automatically tracks token usage and costs for all models.
Getting Model Lists Programmatically
You can retrieve supported models programmatically using the SDK:Provider-Specific Guides
For detailed setup instructions for specific providers, see:- OpenHands Hosted Models
- OpenAI
- Anthropic (via OpenRouter)
- Azure OpenAI
- Google Gemini
- Groq
- Local Models
- LiteLLM Proxy
- Custom Configurations
Troubleshooting
Model Not Found
If you encounter “model not found” errors:- Check the model name spelling and provider prefix
- Verify your API credentials are correct
- Ensure the model is available in your region/account
- Try using the full provider/model format (e.g.,
openai/gpt-4o)
Performance Issues
For poor model performance:- Try a verified model from the recommended list
- Check if the model supports the features you need (tool calling, vision, etc.)
- Adjust model parameters like temperature and max_output_tokens
- Consider using a more powerful model for complex tasks
Cost Management
To manage costs effectively:- Use smaller models for simple tasks
- Enable prompt caching where supported
- Set appropriate token limits
- Monitor usage through OpenHands telemetry
- Consider OpenHands hosted models for predictable pricing
Contributing
If you’ve successfully tested a model not in the verified list, please consider contributing:- Test the model thoroughly with various OpenHands tasks
- Document any special configuration requirements
- Submit a pull request to add it to the verified models list
- Share your experience in the OpenHands community

