Mintplex-Labs/anything-llm · error · Error
No workspace agent provider set. Please set your agent…
Error message
No workspace agent provider set. Please set your agent provider in the workspace's settings
What it means
Fallback branch in the agent setup check: none of the known provider cases matched the workspace's configured agent provider (or no provider was set at all), so the agent subsystem has no LLM backend to run against and the setup check rejects the configuration.
Solutions
- Open the workspace settings and select an agent provider and model.
Defensive patterns
Strategy: validation
When it happens
Trigger: No agent provider was configured for the workspace.
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@3aec848f28 (2026-08-18).
Data as JSON: /api/errors/8fa80c2eb38f2f4e.
Report an issue: GitHub.
Appendix: source
Thrown at server/utils/agents/index.js:296
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.");
break;
case "cerebras":
if (!process.env.CEREBRAS_API_KEY)
throw new Error("Cerebras API key must be provided to use agents.");
break;
default:
throw new Error(
"No workspace agent provider set. Please set your agent provider in the workspace's settings"
);
}
}
/**
* Finds the default model for a given provider. If no default model is set for it's associated ENV then
* it will return a reasonable base model for the provider if one exists.
* @param {string} provider - The provider to find the default model for.
* @returns {string|null} The default model for the provider.
*/
providerDefault(provider = this.provider) {
switch (provider) {
case "openai":
return process.env.OPEN_MODEL_PREF ?? "gpt-4.1-nano";
case "anthropic":
return process.env.ANTHROPIC_MODEL_PREF ?? "claude-sonnet-4-6";
case "lmstudio":View on GitHub (pinned to 3aec848f28)