crewAIInc/crewAI · error · AuthError

No token found, make sure you are logged in

Error message

No token found, make sure you are logged in

What it means

Error "No token found, make sure you are logged in" thrown in crewAIInc/crewAI.

Source

Thrown at lib/crewai-core/src/crewai_core/auth/token.py:16

"""Authentication token retrieval."""

from __future__ import annotations

from crewai_core.token_manager import TokenManager


class AuthError(Exception):
    """Raised when authentication fails."""


def get_auth_token() -> str:
    """Return the saved authentication token; raise ``AuthError`` if missing."""
    access_token = TokenManager().get_token()
    if not access_token:
        raise AuthError("No token found, make sure you are logged in")
    return access_token

View on GitHub (pinned to 754d7323be)

Solutions

  1. Log in with `crewai login` to obtain a token.
  2. Check that your stored credentials file exists and is readable.

When it happens

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

Common situations: Occurs when a token is requested but no stored token exists. Log in first (e.g. crewai login) so a token is written to the token store.


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