Connect CrewAI to Anoman AI
Configure CrewAI agents to route all LLM calls through Anoman using the OpenAI-compatible base URL. Guardrails and policy enforcement apply to every crew task with zero changes to your crew definition.
Prerequisites
- An Anoman AI account with an active API key
- Python 3.10+
- CrewAI installed
Step 1: Install dependencies
Step 2: Configure the LLM with Anoman
Create a LLM instance pointing to Anoman's OpenAI-compatible endpoint. Pass this as the llm parameter on each agent.
Step 3: Define agents with Anoman LLM
Pass the anoman_llm instance to each agent. Your crew definition stays unchanged — every LLM call routes through Anoman automatically.
Alternative: environment variables
If you prefer not to pass api_key and base_url explicitly, set them as environment variables. CrewAI reads these when OPENAI_API_KEY is set.
When a guardrail triggers
If a task prompt is blocked by the guardrail pipeline, the API returns a 403. CrewAI surfaces this as an exception on the affected task.
Check docs/openapi/ for the current error schema.
Need help with your integration?
Join the Founding 50 for early access and direct support from the Anoman team.