Skip to main content

CrewAI

CrewAI’s LLM class uses LiteLLM for model connections. Select the OpenAI-compatible protocol with an openai/ prefix and send requests to Radium.

Before you start

You need Python 3.10 or newer, a Radium API key, and a terminal or PowerShell window.

1. Create a project and install CrewAI

2. Set your Radium credentials

Tracing is disabled here so this connection example does not ask for an additional tracing setup.

3. Create main.py

The openai/ prefix is required for LiteLLM provider routing. Radium still receives the model ID without that prefix.

4. Run it

Expected final output:
CrewAI may print status messages before the final line.

Choose a model

Migrate an existing crew

Create one Radium-backed LLM and pass it to every agent that should use Radium:
Your roles, goals, tasks, and crew process can remain unchanged. Planning, memory, and external tools may require additional model calls or credentials.

Troubleshooting

Validation

These instructions were verified with Python 3.12.7 and crewai==1.15.17 on August 20, 2026. You do not need that exact package version.
Agent/task generation and CrewAI tool execution passed with hal-1.0, clarke-1.0, and tycho-1.0.

Next steps

API quickstart

Call Radium directly

Tool calling

The tool_use and tool_result contract