When I run the minimal example agentprog "Create a new contact named Agent Prog in the Contacts app." --serial emulator-5554, the terminal repeatedly outputs the following error messages:
18:56:15 - LiteLLM:ERROR: vertex_llm_base.py:609 - Failed to load vertex credentials. Check to see if credentials containing partial/invalid information. Error: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
Traceback (most recent call last):
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/vertex_llm_base.py", line 605, in get_access_token
_credentials, credential_project_id = self.load_auth(
^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/vertex_llm_base.py", line 163, in load_auth
creds, creds_project_id = self._credentials_from_default_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/vertex_llm_base.py", line 230, in _credentials_from_default_auth
return google_auth.default(scopes=scopes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/google/auth/_default.py", line 752, in default
raise exceptions.DefaultCredentialsError(_CLOUD_SDK_MISSING_CREDENTIALS)
google.auth.exceptions.DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.
2026-03-25 18:56:15 [warning ] Retrying agentprog.all_utils.general_utils.init_get_litellm_response.<locals>.<lambda> in 30 seconds as it raised APIConnectionError: litellm.APIConnectionError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
Traceback (most recent call last):
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/main.py", line 3512, in completion
model_response = vertex_chat_completion.completion( # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py", line 2894, in completion
_auth_header, vertex_project = self._ensure_access_token(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/vertex_llm_base.py", line 343, in _ensure_access_token
return self.get_access_token(
^^^^^^^^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/vertex_llm_base.py", line 612, in get_access_token
raise e
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/vertex_llm_base.py", line 605, in get_access_token
_credentials, credential_project_id = self.load_auth(
^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/vertex_llm_base.py", line 163, in load_auth
creds, creds_project_id = self._credentials_from_default_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/vertex_llm_base.py", line 230, in _credentials_from_default_auth
return google_auth.default(scopes=scopes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/google/auth/_default.py", line 752, in default
raise exceptions.DefaultCredentialsError(_CLOUD_SDK_MISSING_CREDENTIALS)
google.auth.exceptions.DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
. [agentprog.all_utils.general_utils] func_name=[log_it] location=[before_sleep:64]
18:56:57 - LiteLLM:ERROR: vertex_llm_base.py:609 - Failed to load vertex credentials. Check to see if credentials containing partial/invalid information. Error: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
Traceback (most recent call last):
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/vertex_llm_base.py", line 605, in get_access_token
_credentials, credential_project_id = self.load_auth(
^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/vertex_llm_base.py", line 163, in load_auth
creds, creds_project_id = self._credentials_from_default_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/vertex_llm_base.py", line 230, in _credentials_from_default_auth
return google_auth.default(scopes=scopes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/google/auth/_default.py", line 752, in default
raise exceptions.DefaultCredentialsError(_CLOUD_SDK_MISSING_CREDENTIALS)
google.auth.exceptions.DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.
2026-03-25 18:56:57 [warning ] Retrying agentprog.all_utils.general_utils.init_get_litellm_response.<locals>.<lambda> in 30 seconds as it raised APIConnectionError: litellm.APIConnectionError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
Traceback (most recent call last):
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/main.py", line 3512, in completion
model_response = vertex_chat_completion.completion( # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py", line 2894, in completion
_auth_header, vertex_project = self._ensure_access_token(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/vertex_llm_base.py", line 343, in _ensure_access_token
return self.get_access_token(
^^^^^^^^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/vertex_llm_base.py", line 612, in get_access_token
raise e
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/vertex_llm_base.py", line 605, in get_access_token
_credentials, credential_project_id = self.load_auth(
^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/vertex_llm_base.py", line 163, in load_auth
creds, creds_project_id = self._credentials_from_default_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/litellm/llms/vertex_ai/vertex_llm_base.py", line 230, in _credentials_from_default_auth
return google_auth.default(scopes=scopes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iot/anaconda3/envs/agent/lib/python3.12/site-packages/google/auth/_default.py", line 752, in default
raise exceptions.DefaultCredentialsError(_CLOUD_SDK_MISSING_CREDENTIALS)
google.auth.exceptions.DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
. [agentprog.all_utils.general_utils] func_name=[log_it] location=[before_sleep:64]
When I run the minimal example agentprog "Create a new contact named Agent Prog in the Contacts app." --serial emulator-5554, the terminal repeatedly outputs the following error messages: