Documentation Index
Fetch the complete documentation index at: https://crewai-gui-monorepo-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Use a working directory when your Crew or Flow lives inside a larger
repository. CrewAI AMP validates, builds, tests, and runs the automation from
that subfolder instead of the repository root.
When to Use This
Monorepo deployments are useful when one repository contains multiple automations, shared packages, or other application code:support_agent, set the working directory to:
What the Working Directory Controls
When a working directory is set, AMP uses that folder for:- Project validation, including
pyproject.toml,src/, and the Crew or Flow entry point - Dependency installation with
uv - The running process working directory
- The
CREW_ROOT_DIRenvironment variable
Supported Sources
You can set a working directory when creating a deployment from:- A connected GitHub repository
- A Git repository configured in AMP
- A ZIP upload
Configure working directories in the AMP web interface. The
crewai deploy create CLI flow does not prompt for this field.Configure a New Deployment
Open Deploy from Code
In CrewAI AMP, create a new deployment and choose your source: GitHub, Git
Repository, or ZIP upload.
Select the repository, branch, or ZIP file
Choose the repository and branch that contain your monorepo, or upload a ZIP
file whose root contains the monorepo contents.
Enter the working directory
Enter the path from the repository root to the Crew or Flow project:Do not include a leading slash.
Configure an Existing Deployment
Turn off auto-deploy if needed
If auto-deploy is enabled, disable it first. The working directory field is
unavailable while auto-deploy is on.
Path Rules
The working directory must be a relative path inside the repository or ZIP root.| Rule | Example |
|---|---|
| Use a relative path | crews/support_agent |
Do not start with / | /crews/support_agent is invalid |
Do not use . or .. path segments | crews/../support_agent is invalid |
| Use only letters, numbers, dashes, underscores, dots, and forward slashes | crews/support agent is invalid |
| Keep the path at 255 characters or fewer | Longer paths are rejected |
Lock Files and UV Workspaces
The selected folder must contain the automation’spyproject.toml and src/
directory. A uv.lock or poetry.lock file can live either in the selected
folder or at the repository root.
This supports both common monorepo layouts:
- Project lock file
- Workspace lock file
Troubleshooting
Working Directory Not Found
Check that the path is relative to the repository or ZIP root. For ZIP uploads, the ZIP contents must include the working directory path exactly as entered.Missing pyproject.toml
The working directory should point to the Crew or Flow project folder, not just to a parent folder that contains several projects.Missing uv.lock or poetry.lock
Commit a lock file either in the selected project folder or in the repository root. For UV workspaces, keepinguv.lock at the workspace root is supported.
Auto-Deploy Is Unavailable
Auto-deploy is disabled while a working directory is set. Use manual redeploys or trigger redeployments from CI/CD with the AMP API instead.Deploy to AMP
Continue with the deployment guide after choosing your monorepo working
directory.
