Get Your Adaptive API Key
Sign up here to create an account and generate your API key.Overview
CrewAI is a Python framework for orchestrating autonomous AI agents that collaborate to complete complex tasks. By integrating Adaptive with CrewAI, you get intelligent model routing across all your agents while building sophisticated multi-agent systems with role-based architectures.Key Benefits
- Keep existing workflows - No changes to your CrewAI crew structure
- Intelligent routing - Automatic model selection for each agent interaction
- Cost optimization - 30-70% cost reduction across agent executions
- Role-based agents - Works seamlessly with CrewAI’s agent roles and tasks
- Tool support - Adaptive selects function-calling capable models automatically
- Multi-agent collaboration - Optimized routing for each agent’s specific needs
Installation
Quick Setup
1. Configure Adaptive as Your LLM Provider
The only change needed is to configure CrewAI’s LLM to use Adaptive’s endpoint:2. Create a Simple Crew
Advanced Patterns
Multi-Agent Workflow with Different Models
You can configure different agents with different settings while using Adaptive’s intelligent routing:Agents with Tools
Adaptive automatically selects models that support function calling when tools are used:Sequential and Hierarchical Processes
CrewAI supports different process types, and Adaptive works with all of them:Using Environment Variables
Configure Adaptive using environment variables for cleaner code:.env file:
.env
Python usage
Configuration Options
Model Selection
- Empty string (recommended): Enables Adaptive’s intelligent routing
- Specific model: Forces a particular model (e.g., “gpt-4.1-nano”)
- Provider only: Let Adaptive choose best model from provider (e.g., “openai”)
Additional LLM Parameters
All standard LLM parameters work with Adaptive:Complete Example: Content Creation Crew
Best Practices
- Use empty model string for intelligent routing across all agents
- Different temperatures for different agent personalities (creative vs analytical)
- Leverage tools - Adaptive automatically selects function-calling capable models
- Environment variables for cleaner configuration management
- Verbose mode during development to see Adaptive’s model selection
- Sequential processes for tasks that depend on each other
- Specialized agents with specific roles and backstories for better results
Migration from OpenAI
Simply update your LLM configuration to point to Adaptive:What You Get
Same CrewAI API
All CrewAI features work without any changes to your crew structure
Intelligent Routing
Automatic model selection optimized for each agent’s role
Cost Optimization
Significant savings through smart provider selection per agent
Tool Support
Automatic selection of function-calling models when tools are used



