Mintplex-Labs/anything-llm · error · Error
Privatemode base path must be provided to use agents.
Error message
Privatemode base path must be provided to use agents.
What it means
Provider setup guard in AgentHandler.checkSetup: the selected agent provider is 'privatemode' but PRIVATEMODE_LLM_BASE_PATH is empty/unset, so the agent has no endpoint for the privacy-focused inference service and setup aborts.
Solutions
- Set the PRIVATEMODE_BASE_PATH environment variable.
- Ensure the Privatemode service is running.
Defensive patterns
Strategy: validation
When it happens
Trigger: Privatemode was selected as the agent provider but no base path is configured.
Common situations: This error is raised at runtime in server/utils/agents/index.js. It occurs when the required configuration for this provider is missing or invalid (unset environment variables, empty API key or base path), when the external service is unreachable or returns an unexpected response, or when invalid input reaches the call site. To prevent it, validate the relevant provider settings and environment variables at startup and confirm the service is reachable before this code path executes.
AI-assisted analysis of Mintplex-Labs/anything-llm@20f6d3546c (2026-08-18).
Data as JSON: /api/errors/8b59590311c553e0.
Report an issue: GitHub.
Appendix: source
Thrown at server/utils/agents/index.js:269
case "foundry":
if (!process.env.FOUNDRY_BASE_PATH)
throw new Error("Foundry base path must be provided to use agents.");
break;
case "giteeai":
if (!process.env.GITEE_AI_API_KEY)
throw new Error("GiteeAI API Key must be provided to use agents.");
break;
case "cohere":
if (!process.env.COHERE_API_KEY)
throw new Error("Cohere API key must be provided to use agents.");
break;
case "llmman":
if (!process.env.LLMMAN_BASE_PATH)
throw new Error("llmman base path must be provided to use agents.");
break;
case "privatemode":
if (!process.env.PRIVATEMODE_LLM_BASE_PATH)
throw new Error(
"Privatemode base path must be provided to use agents."
);
break;
case "sambanova":
if (!process.env.SAMBANOVA_LLM_API_KEY)
throw new Error("SambaNova API key must be provided to use agents.");
break;
case "lemonade":
if (!process.env.LEMONADE_LLM_BASE_PATH)
throw new Error("Lemonade base path must be provided to use agents.");
break;
case "omlx":
if (!process.env.OMLX_LLM_BASE_PATH)
throw new Error("OMLX base path must be provided to use agents.");
break;
case "minimax":
if (!process.env.MINIMAX_API_KEY)
throw new Error("Minimax API key must be provided to use agents.");View on GitHub (pinned to 20f6d3546c)