Overview
When you sign up for CrewAI AMP, you may belong to multiple organizations — for example, a personal org and one or more team/company orgs. The active organization determines where your tools are published, where deployments are created, and which resources you can access. Managing your active organization is important because actions likecrewai tool publish and crewai deploy create target whatever org is currently active in your CLI session.
Authentication and Organizations
When you runcrewai login, the CLI:
- Authenticates you via a secure device code flow (OAuth2)
- Logs you in to the Tool Repository
- Sets your active organization to the default organization returned by the server
Logging In
Terminal
- A verification URL and code are displayed in your terminal
- Your browser opens for you to confirm authentication
- On success, your active org is automatically set
Checking Your Current Organization
To see which organization is currently active:Terminal
Listing Your Organizations
To see all organizations you belong to:Terminal
Switching Organizations
To switch your active organization:Terminal
Terminal
crewai org list.
You must be authenticated (
crewai login) before using any crewai org commands.Practical Example: Publishing Tools to the Right Organization
A common scenario is when you belong to both a personal org and a team org. If you runcrewai login and immediately publish a tool, the tool may end up in your personal org rather than your team org.
To avoid this:
How Settings Are Stored
Organization settings are stored in~/.config/crewai/settings.json. The relevant fields are:
org_name: Name of the currently active organizationorg_uuid: UUID of the currently active organization
crewai login and crewai org switch — you should not edit them manually.
Running
crewai login clears your current organization settings before re-authenticating. After login, the active org is set based on the server’s default for your account.Command Reference
| Command | Description |
|---|---|
crewai login | Authenticate to CrewAI AMP (sets active org to default) |
crewai org current | Show the currently active organization |
crewai org list | List all organizations you belong to |
crewai org switch <id> | Switch to a specific organization by UUID |
crewai logout | Log out and clear organization settings |
