CrewAI
What is crewAI?
CrewAI is an open-source Python framework for orchestrating autonomous, role-playing AI agents that collaborate to complete complex tasks. It is designed to facilitate the development and management of multi-agent AI systems and is used in a variety of applications, from content creation to financial analysis.
Key features:
Role-Based Architecture: Agents are assigned specific roles and backstories, defining their capabilities and responsibilities within the "crew".
Agent Orchestration: The framework manages how agents interact, communicate, and work together seamlessly to achieve a common goal.
Tools and Integrations: Agents can be equipped with tools, such as web search engines, to interact with the outside world and gather information. It integrates with multiple Large Language Model (LLM) providers, giving users flexibility in model choice.
Flows: A feature that allows developers to create structured, event-driven workflows, manage state, and control execution flow for multi-step processes.
Scalability and Flexibility: The framework is built to be fast, lean, and production-ready, suitable for developing both basic and complex applications.
Connecting crewAI with nexos.ai’s models and assistants gives teams instant, secure workflow intelligence. Every interaction uses authenticated API‑key access, ensuring sensitive company data remains safe within nexos.ai while providing full observability and control over API usage.
To connect your nexos.ai API and crewAI UI go through the following steps:
Generate your personal API key
Log in to your nexos.ai account and head over to the User profile section by clicking on the profile bubble in the top right corner of the UI.

How to generate a personal API key
Create LLM Connection
Navigate to LLM Connections and create a connection that will route through nexos.ai. Add custom models and define them by UUID or Name.
Fill in the LLM Connection Name.
Select custom-openai-compatible as the provider.
Set the
OPENAI_BASE_URLtohttps://api.nexos.ai/v1.Fill in the
OPENAI_API_KEYwith the team-api-key or generated in the previous step.Create custom models to match nexos.ai model names or UUIDs.
Submit by clicking the Add Connection button.

Configure and execute workflow With the configuration already set up, we can move to creating a fresh project and us nexos.ai as a proxy to the LLMs

Try out your workflow to see if the nodes have been configured correctly.
CrewAI offers CLI as well
This setup guides you through integrating CrewAI with NexosAI using a convenient command-line interface.
Install dependencies.
Define environment variables:
NEXOS_API_KEY=team-api-keyNEXOS_BASE_URL=https://api.nexos.ai/v1
Sample implementation using nexos.ai
You can use any open AI compatible model. To check what models are available for you, call Gateway API | nexos.ai documentation You can use either nexos_model_idor id as model.
Last updated

