Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

feat: add Atlas Cloud LLM provider (#5298)

nb213857db69525e0
diff --git a/changelog.d/+atlas-cloud-provider.feature.md b/changelog.d/+atlas-cloud-provider.feature.md
new file mode 100644
index 0000000000..696f56b7b9
--- /dev/null
+++ b/changelog.d/+atlas-cloud-provider.feature.md
@@ -0,0 +1 @@
+Add Atlas Cloud as a built-in OpenAI-compatible LLM provider.
diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md
index 927f490c60..7fc04d0d65 100644
--- a/docs/CONFIGURATION.md
+++ b/docs/CONFIGURATION.md
@@ -120,6 +120,7 @@ They are not available in the Web UI because they are needed to start the applic
| `llm.anthropic.api_key` | `LDR_LLM_ANTHROPIC_API_KEY` | `` | Your Anthropic API key for Claude models. Get one at console.anthropic.com. Required when using the Anthropic provider. | LLM |
| `llm.anthropic_endpoint.api_key` | `LDR_LLM_ANTHROPIC_ENDPOINT_API_KEY` | `` | Optional API key for your Anthropic-compatible endpoint. Leave blank for self-hosted servers that don't require authentication. | LLM |
| `llm.anthropic_endpoint.url` | `LDR_LLM_ANTHROPIC_ENDPOINT_URL` | `` | Base URL of a self-hosted service implementing the Anthropic Messages API (/v1/messages). The client appends the API path. Example: http://localhost:9090. Required when using the Anthropic-Compatible Endpoint provider. | LLM |
+| `llm.atlascloud.api_key` | `LDR_LLM_ATLASCLOUD_API_KEY` | `null` | API key to use for the Atlas Cloud provider. | LLM |
| `llm.context_window_size` | `LDR_LLM_CONTEXT_WINDOW_SIZE` | `128000` | Maximum context window size in tokens for cloud LLMs. Only used when unrestricted context is disabled. | LLM |
| `llm.context_window_unrestricted` | `LDR_LLM_CONTEXT_WINDOW_UNRESTRICTED` | `true` | Let cloud provider APIs manage their own token limits without a hard cap (recommended). Uncheck to enforce a specific limit via the Context Window Size setting. | LLM |
| `llm.deepseek.api_key` | `LDR_LLM_DEEPSEEK_API_KEY` | `null` | API key to use for the DeepSeek provider. | LLM |
diff --git a/src/local_deep_research/defaults/llm_providers/atlascloud_settings.json b/src/local_deep_research/defaults/llm_providers/atlascloud_settings.json
new file mode 100644
index 0000000000..cbd6f97bd1
--- /dev/null
+++ b/src/local_deep_research/defaults/llm_providers/atlascloud_settings.json
@@ -0,0 +1,16 @@
+{
+ "llm.atlascloud.api_key": {
+ "category": "llm_general",
+ "description": "API key to use for the Atlas Cloud provider.",
+ "editable": true,
+ "max_value": null,
+ "min_value": null,
+ "name": "Atlas Cloud API Key",
+ "options": null,
+ "step": null,
+ "type": "LLM",
+ "ui_element": "password",
+ "value": null,
+ "visible": true
+ }
+}
diff --git a/src/local_deep_research/llm/providers/implementations/atlascloud.py b/src/local_deep_research/llm/providers/implementations/atlascloud.py
new file mode 100644
index 0000000000..06eea65faf
--- /dev/null
+++ b/src/local_deep_research/llm/providers/implementations/atlascloud.py
@@ -0,0 +1,23 @@
+"""Atlas Cloud LLM provider for Local Deep Research."""
+
+from ..base import Exposure
+from ..openai_base import OpenAICompatibleProvider
+
+
+class AtlasCloudProvider(OpenAICompatibleProvider):
+ """Atlas Cloud provider using its OpenAI-compatible endpoint."""
+
+ provider_name = "Atlas Cloud"
+ api_key_setting = "llm.atlascloud.api_key"
+ default_base_url = "https://api.atlascloud.ai/v1"
+ default_model = "deepseek-ai/deepseek-v4-pro"
+
+ provider_key = "ATLASCLOUD"
+ company_name = "Atlas Cloud"
+ is_cloud = True
+ egress_exposure = Exposure.EXPOSING
+
+ @classmethod
+ def requires_auth_for_models(cls):
+ """Atlas Cloud exposes its model catalog without authentication."""
+ return False
diff --git a/src/local_deep_research/security/egress/policy.py b/src/local_deep_research/security/egress/policy.py
index 5a4f122673..6934754dd3 100644
--- a/src/local_deep_research/security/egress/policy.py
+++ b/src/local_deep_research/security/egress/policy.py
@@ -704,6 +704,7 @@ _CLOUD_LLM_PROVIDERS = frozenset(
"openrouter",
"requesty",
"orcarouter",
+ "atlascloud",
"deepseek",
"xai",
"ionos",
diff --git a/src/local_deep_research/web/services/research_service.py b/src/local_deep_research/web/services/research_service.py
index 1f2330664a..8bdfb6b3a2 100644
--- a/src/local_deep_research/web/services/research_service.py
+++ b/src/local_deep_research/web/services/research_service.py
@@ -1578,6 +1578,7 @@ def run_research_process(research_id, query, mode, **kwargs):
"openai",
"openrouter",
"orcarouter",
+ "atlascloud",
"google",
"ionos",
"xai",
diff --git a/src/local_deep_research/web/static/js/components/context-overflow.js b/src/local_deep_research/web/static/js/components/context-overflow.js
index 3dad10afb2..ef36b0c85e 100644
--- a/src/local_deep_research/web/static/js/components/context-overflow.js
+++ b/src/local_deep_research/web/static/js/components/context-overflow.js
@@ -81,6 +81,7 @@
'google': 'Google',
'openrouter': 'OpenRouter',
'orcarouter': 'OrcaRouter',
+ 'atlascloud': 'Atlas Cloud',
'lmstudio': 'LM Studio',
'llamacpp': 'Llama.cpp',
'xai': 'xAI',
diff --git a/src/local_deep_research/web/static/js/components/research.js b/src/local_deep_research/web/static/js/components/research.js
index 497f34d4ce..3a565aafbd 100644
--- a/src/local_deep_research/web/static/js/components/research.js
+++ b/src/local_deep_research/web/static/js/components/research.js
@@ -50,6 +50,8 @@
let openrouterApiKeyContainer = null;
let orcarouterApiKeyInput = null;
let orcarouterApiKeyContainer = null;
+ let atlascloudApiKeyInput = null;
+ let atlascloudApiKeyContainer = null;
let xaiApiKeyInput = null;
let xaiApiKeyContainer = null;
let ionosApiKeyInput = null;
@@ -295,6 +297,8 @@
openrouterApiKeyContainer = document.getElementById('openrouter_api_key_container');
orcarouterApiKeyInput = document.getElementById('orcarouter_api_key');
orcarouterApiKeyContainer = document.getElementById('orcarouter_api_key_container');
+ atlascloudApiKeyInput = document.getElementById('atlascloud_api_key');
+ atlascloudApiKeyContainer = document.getElementById('atlascloud_api_key_container');
xaiApiKeyInput = document.getElementById('xai_api_key');
xaiApiKeyContainer = document.getElementById('xai_api_key_container');
ionosApiKeyInput = document.getElementById('ionos_api_key');
@@ -860,6 +864,9 @@
if (orcarouterApiKeyContainer) {
orcarouterApiKeyContainer.style.display = provider === 'ORCAROUTER' ? 'block' : 'none';
}
+ if (atlascloudApiKeyContainer) {
+ atlascloudApiKeyContainer.style.display = provider === 'ATLASCLOUD' ? 'block' : 'none';
+ }
if (xaiApiKeyContainer) {
xaiApiKeyContainer.style.display = provider === 'XAI' ? 'block' : 'none';
}
@@ -1012,6 +1019,11 @@
saveSearchSetting('llm.orcarouter.api_key', this.value);
});
}
+ if (atlascloudApiKeyInput) {
+ atlascloudApiKeyInput.addEventListener('change', function() {
+ saveSearchSetting('llm.atlascloud.api_key', this.value);
+ });
+ }
if (xaiApiKeyInput) {
xaiApiKeyInput.addEventListener('change', function() {
saveSearchSetting('llm.xai.api_key', this.value);
@@ -1167,6 +1179,9 @@
if (orcarouterApiKeyContainer) {
orcarouterApiKeyContainer.style.display = selectedProvider === 'ORCAROUTER' ? 'block' : 'none';
}
+ if (atlascloudApiKeyContainer) {
+ atlascloudApiKeyContainer.style.display = selectedProvider === 'ATLASCLOUD' ? 'block' : 'none';
+ }
if (xaiApiKeyContainer) {
xaiApiKeyContainer.style.display = selectedProvider === 'XAI' ? 'block' : 'none';
}
@@ -1558,6 +1573,9 @@
if (openrouterApiKeyContainer) {
openrouterApiKeyContainer.style.display = providerValue === 'OPENROUTER' ? 'block' : 'none';
}
+ if (atlascloudApiKeyContainer) {
+ atlascloudApiKeyContainer.style.display = providerValue === 'ATLASCLOUD' ? 'block' : 'none';
+ }
if (xaiApiKeyContainer) {
xaiApiKeyContainer.style.display = providerValue === 'XAI' ? 'block' : 'none';
}
@@ -1644,6 +1662,12 @@
openrouterApiKeyInput.disabled = !openrouterApiKeySetting.editable;
}
+ const atlascloudApiKeySetting = data.settings['llm.atlascloud.api_key'];
+ if (atlascloudApiKeySetting && atlascloudApiKeyInput) {
+ atlascloudApiKeyInput.value = atlascloudApiKeySetting.value || '';
+ atlascloudApiKeyInput.disabled = !atlascloudApiKeySetting.editable;
+ }
+
const xaiApiKeySetting = data.settings['llm.xai.api_key'];
if (xaiApiKeySetting && xaiApiKeyInput) {
xaiApiKeyInput.value = xaiApiKeySetting.value || '';
@@ -1839,6 +1863,9 @@
if (openrouterApiKeyContainer) {
openrouterApiKeyContainer.style.display = provider === 'OPENROUTER' ? 'block' : 'none';
}
+ if (atlascloudApiKeyContainer) {
+ atlascloudApiKeyContainer.style.display = provider === 'ATLASCLOUD' ? 'block' : 'none';
+ }
if (xaiApiKeyContainer) {
xaiApiKeyContainer.style.display = provider === 'XAI' ? 'block' : 'none';
}
diff --git a/src/local_deep_research/web/templates/pages/research.html b/src/local_deep_research/web/templates/pages/research.html
index 8ce0a0a631..7423dce8f4 100644
--- a/src/local_deep_research/web/templates/pages/research.html
+++ b/src/local_deep_research/web/templates/pages/research.html
@@ -270,6 +270,14 @@
<span class="ldr-input-help">Get your key at www.orcarouter.ai</span>
</div>
+ <!-- Atlas Cloud API Key (hidden by default) -->
+ <div class="ldr-form-group ldr-half" id="atlascloud_api_key_container" style="display: none;">
+ <label for="atlascloud_api_key">Atlas Cloud API Key</label>
+ <input type="password" id="atlascloud_api_key" name="atlascloud_api_key" class="ldr-form-control"
+ placeholder="Enter your Atlas Cloud API key" autocomplete="off">
+ <span class="ldr-input-help">Get your key at atlascloud.ai</span>
+ </div>
+
<!-- xAI API Key (hidden by default) -->
<div class="ldr-form-group ldr-half" id="xai_api_key_container" style="display: none;">
<label for="xai_api_key">xAI API Key</label>
diff --git a/tests/llm_providers/implementations/test_atlascloud_provider.py b/tests/llm_providers/implementations/test_atlascloud_provider.py
new file mode 100644
index 0000000000..b2512586f1
--- /dev/null
+++ b/tests/llm_providers/implementations/test_atlascloud_provider.py
@@ -0,0 +1,86 @@
+"""Tests for the Atlas Cloud LLM provider."""
+
+from unittest.mock import Mock, patch
+
+import pytest
+
+from local_deep_research.llm.providers.base import Exposure
+from local_deep_research.llm.providers.implementations.atlascloud import (
+ AtlasCloudProvider,
+)
+
+
+class TestAtlasCloudProvider:
+ """Tests for Atlas Cloud metadata and OpenAI-compatible construction."""
+
+ def test_metadata(self):
+ assert AtlasCloudProvider.provider_name == "Atlas Cloud"
+ assert AtlasCloudProvider.provider_key == "ATLASCLOUD"
+ assert AtlasCloudProvider.company_name == "Atlas Cloud"
+ assert AtlasCloudProvider.api_key_setting == "llm.atlascloud.api_key"
+ assert AtlasCloudProvider.default_base_url == (
+ "https://api.atlascloud.ai/v1"
+ )
+ assert AtlasCloudProvider.default_model == (
+ "deepseek-ai/deepseek-v4-pro"
+ )
+ assert AtlasCloudProvider.is_cloud is True
+ assert AtlasCloudProvider.egress_exposure is Exposure.EXPOSING
+
+ def test_create_llm_uses_atlas_cloud_endpoint(self):
+ def get_setting(key, default=None, *args, **kwargs):
+ settings = {
+ "llm.atlascloud.api_key": "test-atlas-cloud-key",
+ "llm.max_tokens": None,
+ "llm.streaming": None,
+ "llm.max_retries": None,
+ "llm.request_timeout": None,
+ }
+ return settings.get(key, default)
+
+ with (
+ patch(
+ "local_deep_research.config.thread_settings.get_setting_from_snapshot",
+ side_effect=get_setting,
+ ),
+ patch(
+ "local_deep_research.llm.providers.openai_base.ChatOpenAI"
+ ) as chat_openai,
+ ):
+ llm = Mock()
+ chat_openai.return_value = llm
+
+ result = AtlasCloudProvider.create_llm(
+ model_name=AtlasCloudProvider.default_model,
+ temperature=0.2,
+ )
+
+ assert result is llm
+ chat_openai.assert_called_once()
+ params = chat_openai.call_args.kwargs
+ assert params["model"] == "deepseek-ai/deepseek-v4-pro"
+ assert params["base_url"] == "https://api.atlascloud.ai/v1"
+ assert params["api_key"] == "test-atlas-cloud-key"
+ assert params["temperature"] == 0.2
+
+ def test_model_catalog_does_not_require_authentication(self):
+ assert AtlasCloudProvider.requires_auth_for_models() is False
+
+ def test_create_llm_raises_without_api_key(self):
+ with patch(
+ "local_deep_research.config.thread_settings.get_setting_from_snapshot",
+ return_value=None,
+ ):
+ with pytest.raises(ValueError, match="API key not configured"):
+ AtlasCloudProvider.create_llm()
+
+ @pytest.mark.parametrize(
+ ("api_key", "expected"),
+ [("test-atlas-cloud-key", True), (None, False), ("", False)],
+ )
+ def test_is_available_reflects_api_key(self, api_key, expected):
+ with patch(
+ "local_deep_research.config.thread_settings.get_setting_from_snapshot",
+ return_value=api_key,
+ ):
+ assert AtlasCloudProvider.is_available() is expected
diff --git a/tests/settings/golden_master_settings.json b/tests/settings/golden_master_settings.json
index 35df7918b9..c7d47e9e8a 100644
--- a/tests/settings/golden_master_settings.json
+++ b/tests/settings/golden_master_settings.json
@@ -1190,6 +1190,20 @@
"value": "",
"visible": true
},
+ "llm.atlascloud.api_key": {
+ "category": "llm_general",
+ "description": "API key to use for the Atlas Cloud provider.",
+ "editable": true,
+ "max_value": null,
+ "min_value": null,
+ "name": "Atlas Cloud API Key",
+ "options": null,
+ "step": null,
+ "type": "LLM",
+ "ui_element": "password",
+ "value": null,
+ "visible": true
+ },
"llm.context_window_size": {
"category": "llm_parameters",
"description": "Maximum context window size in tokens for cloud LLMs. Only used when unrestricted context is disabled.",
diff --git a/tests/test_api_key_frontend_settings.py b/tests/test_api_key_frontend_settings.py
index 01e50c38ce..682b5bb450 100644
--- a/tests/test_api_key_frontend_settings.py
+++ b/tests/test_api_key_frontend_settings.py
@@ -11,6 +11,7 @@ API_KEY_SETTINGS = {
"GOOGLE": "llm.google.api_key",
"OPENROUTER": "llm.openrouter.api_key",
"ORCAROUTER": "llm.orcarouter.api_key",
+ "ATLASCLOUD": "llm.atlascloud.api_key",
"XAI": "llm.xai.api_key",
"IONOS": "llm.ionos.api_key",
"OPENAI_ENDPOINT": "llm.openai_endpoint.api_key",
@@ -24,6 +25,7 @@ CLOUD_PROVIDERS = [
"GOOGLE",
"OPENROUTER",
"ORCAROUTER",
+ "ATLASCLOUD",
"XAI",
"IONOS",
]
@@ -78,6 +80,14 @@ class TestAPIKeyProviderMapping:
assert OpenRouterProvider.api_key_setting == "llm.openrouter.api_key"
+ def test_atlascloud_provider_api_key_setting(self):
+ """Test Atlas Cloud provider uses correct API key setting."""
+ from local_deep_research.llm.providers.implementations.atlascloud import (
+ AtlasCloudProvider,
+ )
+
+ assert AtlasCloudProvider.api_key_setting == "llm.atlascloud.api_key"
+
def test_orcarouter_provider_api_key_setting(self):
"""Test OrcaRouter provider uses correct API key setting."""
from local_deep_research.llm.providers.implementations.orcarouter import (
@@ -332,6 +342,9 @@ class TestFrontendAPIKeyMapping:
from local_deep_research.llm.providers.implementations.openrouter import (
OpenRouterProvider,
)
+ from local_deep_research.llm.providers.implementations.atlascloud import (
+ AtlasCloudProvider,
+ )
from local_deep_research.llm.providers.implementations.xai import (
XAIProvider,
)
@@ -351,6 +364,7 @@ class TestFrontendAPIKeyMapping:
"ANTHROPIC": AnthropicProvider,
"GOOGLE": GoogleProvider,
"OPENROUTER": OpenRouterProvider,
+ "ATLASCLOUD": AtlasCloudProvider,
"XAI": XAIProvider,
"IONOS": IONOSProvider,
"OPENAI_ENDPOINT": CustomOpenAIEndpointProvider,
diff --git a/tests/ui_tests/test_api_key_inputs.js b/tests/ui_tests/test_api_key_inputs.js
index df1c6284b4..8cce9ed621 100644
--- a/tests/ui_tests/test_api_key_inputs.js
+++ b/tests/ui_tests/test_api_key_inputs.js
@@ -17,6 +17,7 @@ const API_KEY_PROVIDERS = [
{ provider: 'GOOGLE', containerId: 'google_api_key_container', inputId: 'google_api_key', settingKey: 'llm.google.api_key' },
{ provider: 'OPENROUTER', containerId: 'openrouter_api_key_container', inputId: 'openrouter_api_key', settingKey: 'llm.openrouter.api_key' },
{ provider: 'ORCAROUTER', containerId: 'orcarouter_api_key_container', inputId: 'orcarouter_api_key', settingKey: 'llm.orcarouter.api_key' },
+ { provider: 'ATLASCLOUD', containerId: 'atlascloud_api_key_container', inputId: 'atlascloud_api_key', settingKey: 'llm.atlascloud.api_key' },
{ provider: 'XAI', containerId: 'xai_api_key_container', inputId: 'xai_api_key', settingKey: 'llm.xai.api_key' },
{ provider: 'IONOS', containerId: 'ionos_api_key_container', inputId: 'ionos_api_key', settingKey: 'llm.ionos.api_key' },
{ provider: 'OPENAI_ENDPOINT', containerId: 'openai_endpoint_api_key_container', inputId: 'openai_endpoint_api_key', settingKey: 'llm.openai_endpoint.api_key' },