Deploy Crew
Deploy your local CrewAI project to the Enterprise platform
Option 1: CLI Deployment
This video tutorial walks you through the process of deploying your locally developed CrewAI project to the CrewAI Enterprise platform, transforming it into a production-ready API endpoint.
Prerequisites
Before starting the deployment process, make sure you have:
- A CrewAI project built locally (follow our quickstart guide if you haven’t created one yet)
- Your code pushed to a GitHub repository
- The latest version of the CrewAI CLI installed (
uv tool install crewai
)
For a quick reference project, you can clone our example repository at github.com/tonykipkemboi/crewai-latest-ai-development.
Step 1: Authenticate with the Enterprise Platform
First, you need to authenticate your CLI with the CrewAI Enterprise platform:
When you run either command, the CLI will:
- Display a URL and a unique device code
- Open your browser to the authentication page
- Prompt you to confirm the device
- Complete the authentication process
Upon successful authentication, you’ll see a confirmation message in your terminal!
Step 2: Create a Deployment
From your project directory, run:
This command will:
- Detect your GitHub repository information
- Identify environment variables in your local
.env
file - Securely transfer these variables to the Enterprise platform
- Create a new deployment with a unique identifier
On successful creation, you’ll see a message like:
Step 3: Monitor Deployment Progress
Track the deployment status with:
For detailed logs of the build process:
The first deployment typically takes 10-15 minutes as it builds the container images. Subsequent deployments are much faster.
Additional CLI Commands
The CrewAI CLI offers several commands to manage your deployments:
Option 2: Deploy Directly via Web Interface
You can also deploy your crews directly through the CrewAI Enterprise web interface by connecting your GitHub account. This approach doesn’t require using the CLI on your local machine.
Step 1: Pushing to GitHub
First, you need to push your crew to a GitHub repository. If you haven’t created a crew yet, you can follow this tutorial.
Step 2: Connecting GitHub to CrewAI Enterprise
- Log in to CrewAI Enterprise
- Click on the button “Connect GitHub”
Step 3: Select the Repository
After connecting your GitHub account, you’ll be able to select which repository to deploy:
Step 4: Set Environment Variables
Before deploying, you’ll need to set up your environment variables to connect to your LLM provider or other services:
- You can add variables individually or in bulk
- Enter your environment variables in
KEY=VALUE
format (one per line)
Step 5: Deploy Your Crew
- Click the “Deploy” button to start the deployment process
- You can monitor the progress through the progress bar
- The first deployment typically takes around 10-15 minutes; subsequent deployments will be faster
Once deployment is complete, you’ll see:
- Your crew’s unique URL
- A Bearer token to protect your crew API
- A “Delete” button if you need to remove the deployment
Interact with Your Deployed Crew
Once deployment is complete, you can access your crew through:
-
REST API: The platform generates a unique HTTPS endpoint with these key routes:
/inputs
: Lists the required input parameters/kickoff
: Initiates an execution with provided inputs/status/{kickoff_id}
: Checks the execution status
-
Web Interface: Visit app.crewai.com to access:
- Status tab: View deployment information, API endpoint details, and authentication token
- Run tab: Visual representation of your crew’s structure
- Executions tab: History of all executions
- Metrics tab: Performance analytics
- Traces tab: Detailed execution insights
Trigger an Execution
From the Enterprise dashboard, you can:
- Click on your crew’s name to open its details
- Select “Trigger Crew” from the management interface
- Enter the required inputs in the modal that appears
- Monitor progress as the execution moves through the pipeline
Monitoring and Analytics
The Enterprise platform provides comprehensive observability features:
- Execution Management: Track active and completed runs
- Traces: Detailed breakdowns of each execution
- Metrics: Token usage, execution times, and costs
- Timeline View: Visual representation of task sequences
Advanced Features
The Enterprise platform also offers:
- Environment Variables Management: Securely store and manage API keys
- LLM Connections: Configure integrations with various LLM providers
- Custom Tools Repository: Create, share, and install tools
- Crew Studio: Build crews through a chat interface without writing code
Need Help?
Contact our support team for assistance with deployment issues or questions about the Enterprise platform.
Was this page helpful?