BerriAI/litellm · error
DATAFORSEO_PASSWORD is not set. Set `DATAFORSEO_PASSWORD`…
Error message
DATAFORSEO_PASSWORD is not set. Set `DATAFORSEO_PASSWORD` environment variable or pass credentials in api_key parameter.
What it means
Credential guard in DataForSEO validate_environment: login was resolved but no password was found from the caller-supplied 'login:password' api_key or the DATAFORSEO_PASSWORD secret, leaving incomplete Basic-auth credentials.
Solutions
- Set the DATAFORSEO_PASSWORD environment variable to your DataForSEO API password.
- Or pass credentials through the api_key parameter as accepted by the DataForSEO integration.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at litellm/llms/dataforseo/search/transformation.py:80 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/85505febf0c7ca06.
Report an issue: GitHub.
Appendix: source
Thrown at litellm/llms/dataforseo/search/transformation.py:80
caller_supplied_credentials: Final = bool(api_key and ":" in api_key)
if api_key and ":" in api_key:
login, password = api_key.split(":", 1)
if not caller_supplied_credentials and login and password:
self._assert_trusted_api_base_for_server_credential(
api_base,
self.DATAFORSEO_API_BASE,
"DATAFORSEO_API_BASE",
"DATAFORSEO_LOGIN",
)
if not login:
raise ValueError(
"DATAFORSEO_LOGIN is not set. Set `DATAFORSEO_LOGIN` environment variable or pass credentials in api_key parameter."
)
if not password:
raise ValueError(
"DATAFORSEO_PASSWORD is not set. Set `DATAFORSEO_PASSWORD` environment variable or pass credentials in api_key parameter."
)
# Create Basic Auth header
credentials: Final = f"{login}:{password}"
encoded_credentials: Final = base64.b64encode(credentials.encode()).decode()
headers["Authorization"] = f"Basic {encoded_credentials}"
headers["Content-Type"] = "application/json"
return headers
def get_complete_url(
self,
api_base: str | None,
optional_params: dict,
data: dict | list[dict] | None = None,
**kwargs,
) -> str:View on GitHub (pinned to 77b7c6c40c)