BerriAI/litellm · error · ValueError

Container provider config not found for provider

Error message

Container provider config not found for provider: {custom_llm_provider}

What it means

Container API dispatch guard: ProviderConfigManager.get_provider_container_config returned None for the resolved custom_llm_provider, meaning LiteLLM has no container (code-execution/sandbox) provider config registered for that provider, so the container list operation cannot proceed.

Solutions

  1. Use a provider that supports container operations; verify the provider name in your model string.
  2. Consult the litellm docs for the list of container-capable providers.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at litellm/containers/main.py:437 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/3187f32bb5fb9144. Report an issue: GitHub.

Appendix: source

Thrown at litellm/containers/main.py:437

            response: Final = ContainerListResponse(**mock_response)
            return response

        # get llm provider logic
        # Pass credential params explicitly since they're named args, not in kwargs
        litellm_params: Final = GenericLiteLLMParams(
            api_key=api_key,
            api_base=api_base,
            api_version=api_version,
            **kwargs,
        )
        # get provider config
        container_provider_config: BaseContainerConfig | None = ProviderConfigManager.get_provider_container_config(
            provider=litellm.LlmProviders(custom_llm_provider),
        )

        if container_provider_config is None:
            raise ValueError(f"Container provider config not found for provider: {custom_llm_provider}")

        # Get container list request parameters
        container_list_optional_params: Final[ContainerListOptionalRequestParams] = (
            ContainerRequestUtils.get_requested_container_list_optional_param(local_vars)
        )

        # Pre Call logging
        litellm_logging_obj.update_from_kwargs(
            kwargs=kwargs,
            model="",
            optional_params=dict(container_list_optional_params),
            litellm_params={
                "litellm_call_id": litellm_call_id,
                **container_list_optional_params,
            },
            custom_llm_provider=custom_llm_provider,
        )

View on GitHub (pinned to 77b7c6c40c)