crewAIInc/crewAI · error · ValueError

Client ID is required. Please set it in the configuration.

Error message

Client ID is required. Please set it in the configuration.

What it means

Error "Client ID is required. Please set it in the configuration." thrown in crewAIInc/crewAI.

Source

Thrown at lib/crewai-core/src/crewai_core/auth/providers/workos.py:28

    def get_authorize_url(self) -> str:
        return f"https://{self._get_domain()}/oauth2/device_authorization"

    def get_token_url(self) -> str:
        return f"https://{self._get_domain()}/oauth2/token"

    def get_jwks_url(self) -> str:
        return f"https://{self._get_domain()}/oauth2/jwks"

    def get_issuer(self) -> str:
        return f"https://{self._get_domain()}"

    def get_audience(self) -> str:
        return self.settings.audience or ""

    def get_client_id(self) -> str:
        if self.settings.client_id is None:
            raise ValueError(
                "Client ID is required. Please set it in the configuration."
            )
        return self.settings.client_id

    def _get_domain(self) -> str:
        if self.settings.domain is None:
            raise ValueError("Domain is required. Please set it in the configuration.")
        return self.settings.domain

View on GitHub (pinned to 754d7323be)

Solutions

  1. Set the client ID in your WorkOS provider configuration.
  2. Copy the client ID from your WorkOS dashboard.

When it happens

Trigger: Thrown at lib/crewai-core/src/crewai_core/auth/providers/workos.py:28 when the library encounters an invalid state.

Common situations: Occurs when the WorkOS provider configuration is missing the client ID. Set the client ID in the configuration before initializing the provider.


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