Prerequisites
Install
Use SDK adapter
Use theArbytraCrewAILLM adapter:
ArbytraCrewAILLM routes models through Arbytra’s OpenAI-compatible endpoint. It passes provider="openai" to CrewAI, which prevents CrewAI from routing to native provider SDKs.
Pass
arbytra_llm.llm to Agent, not the ArbytraCrewAILLM instance.Configure options
Configure routing
Pass aRoutingOptions instance to control routing:
last_routing_metadata returns metadata from the most recent non-streaming response.
Different agents can use different models and routing strategies:
Configure manually
Alternative: configure CrewAI manually
Alternative: configure CrewAI manually
If you prefer to use CrewAI’s For routing options and metadata access, use
LLM class directly, pass provider="openai" to route models through Arbytra:ArbytraCrewAILLM.