crewAIInc/crewAI · error · AuthenticationRequiredError

Please sign up/login to CrewAI+ before using the CLI.

Error message

Please sign up/login to CrewAI+ before using the CLI.

What it means

Error "Please sign up/login to CrewAI+ before using the CLI." thrown in crewAIInc/crewAI.

Source

Thrown at lib/cli/src/crewai_cli/command.py:38

class BaseCommand:
    def __init__(self) -> None:
        self._telemetry = Telemetry()
        self._telemetry.set_tracer()


class PlusAPIMixin:
    def __init__(self, telemetry: Telemetry) -> None:
        try:
            telemetry.set_tracer()
            self.plus_api_client = PlusAPI(api_key=get_auth_token())
        except Exception:
            telemetry.deploy_signup_error_span()
            console.print(
                "Please sign up/login to CrewAI+ before using the CLI.",
                style="bold red",
            )
            console.print("Run 'crewai login' to sign up/login.", style="bold green")
            raise AuthenticationRequiredError from None

    def _validate_response(self, response: httpx.Response) -> None:
        """Handle and display error messages from API responses.

        Args:
            response: The response from the Plus API.
        """
        try:
            json_response = response.json()
        except (json.JSONDecodeError, ValueError):
            console.print(
                "Failed to parse response from Enterprise API failed. Details:",
                style="bold red",
            )
            console.print(f"Status Code: {response.status_code}")
            console.print(
                f"Response:\n{response.content.decode('utf-8', errors='replace')}"
            )

View on GitHub (pinned to 754d7323be)

Solutions

  1. Run `crewai login` to authenticate with CrewAI+.
  2. Sign up for a CrewAI+ account if you do not have one.

When it happens

Trigger: Thrown at lib/cli/src/crewai_cli/command.py:38 when the library encounters an invalid state.

Common situations: Occurs when a CrewAI+ only CLI command is run without an active CrewAI+ session. Sign up or log in to CrewAI+ (crewai login) before running the command.


AI-assisted analysis of crewAIInc/crewAI@754d7323be (2026-08-15). Data as JSON: /api/errors/7fc5740eccc3f72a. Report an issue: GitHub.