Integrations / CrewAI
C

CrewAI

Framework · Verified setup guide

Multi-agent framework. Route its OpenAI-backed LLM through LuxeChain.

Setup steps

  1. 1
    Installpip install crewai
  2. 2
    Create the LLMPass model, base_url and api_key below.
  3. 3
    Use itAttach the LLM to an Agent.

Configuration example

python
from crewai import LLM

llm = LLM(
    model="openai/YOUR_MODEL_ID",          # any model id from the /models page
    base_url="https://api.luxechain.si/v1",
    api_key="lxc_live_YOUR_KEY",
)

Replace YOUR_MODEL_ID with any model from the catalogue. Never paste a real API key into a shared document.

Troubleshooting

CrewAI uses LiteLLM underneath, so the model needs the openai/ prefix.

If the tool rejects the endpoint, confirm the base URL exactly matches the value on the right, and that the key is active in your account.