Skip to main content
Use Arbytra 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 ArbytraCrewAILLM 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 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 Arbytra:
For routing options and metadata access, use ArbytraCrewAILLM.