Skip to main content
Use Infravelle as your LLM provider in CrewAI for cost-effective multi-agent workflows. This integration is Python-only. For TypeScript, use the Vercel AI SDK integration.

Prerequisites

Install

Use SDK adapter

Use the InfravelleCrewAILLM adapter:
InfravelleCrewAILLM routes models through Infravelle’s OpenAI-compatible endpoint. It passes provider="openai" to CrewAI, which prevents CrewAI from routing to native provider SDKs.
Pass infravelle_llm.llm to Agent, not the InfravelleCrewAILLM instance.

Configure options

Configure routing

Pass a RoutingOptions 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

If you prefer to use CrewAI’s LLM class directly, pass provider="openai" to route models through Infravelle:
For routing options and metadata access, use InfravelleCrewAILLM.