Skip to content

Independent Auditing of AI Agents. Run by human or the agent itself, to answer the most crucial question in the AI Agent Economy. Is the agent doing what is supposed to do? With iFixAi you can have this answer in less than 120 seconds.

fix: expose AtlasCloud in guided setup and credential detection (#258)

Rudy Mizrahi Celekli8066421a25df
diff --git a/ifixai/cli/init.py b/ifixai/cli/init.py
index 4b537cb..6ef720a 100644
--- a/ifixai/cli/init.py
+++ b/ifixai/cli/init.py
@@ -14,6 +14,7 @@ SMOKE_FIXTURE_PATH = Path(__file__).resolve().parent.parent / "fixtures" / "smok
PROVIDER_ENV_KEYS: dict[str, str] = {
"anthropic": "ANTHROPIC_API_KEY",
"openai": "OPENAI_API_KEY",
+ "atlascloud": "ATLASCLOUD_API_KEY",
"minimax": "MINIMAX_API_KEY",
"openrouter": "OPENROUTER_API_KEY",
"orcarouter": "ORCAROUTER_API_KEY",
diff --git a/ifixai/cli/model_catalog.py b/ifixai/cli/model_catalog.py
index 5a33156..50c59ba 100644
--- a/ifixai/cli/model_catalog.py
+++ b/ifixai/cli/model_catalog.py
@@ -38,6 +38,7 @@ DEFAULT_MODEL: dict[str, str] = {
"cloudflare": "workers-ai/@cf/meta/llama-3.3-70b-instruct-fp8-fast",
"vercel": "openai/gpt-4o-mini",
"openai": "gpt-4o",
+ "atlascloud": "qwen/qwen3.5-flash",
"anthropic": "claude-sonnet-4-6",
"gemini": "gemini-2.0-flash",
"azure": "gpt-4o",
diff --git a/ifixai/cli/setup_cmd.py b/ifixai/cli/setup_cmd.py
index d30b9a3..e96bfa2 100644
--- a/ifixai/cli/setup_cmd.py
+++ b/ifixai/cli/setup_cmd.py
@@ -30,6 +30,7 @@ _PROVIDER_DESCRIPTIONS: dict[str, str] = {
"cloudflare": "Cloudflare AI Gateway — one token → Workers AI plus OpenAI, Anthropic, Google…",
"vercel": "Vercel AI Gateway — one key → hundreds of models (OpenAI, Anthropic, Google…)",
"openai": "OpenAI API — GPT-4o / o-series",
+ "atlascloud": "AtlasCloud OpenAI-compatible gateway",
"anthropic": "Anthropic API — Claude family",
"gemini": "Google Gemini",
"azure": "Azure OpenAI deployment",
@@ -60,6 +61,7 @@ _ALL_PROVIDERS = [
"cloudflare",
"vercel",
"openai",
+ "atlascloud",
"anthropic",
"gemini",
"azure",
diff --git a/ifixai/tests/test_setup_atlascloud_registration.py b/ifixai/tests/test_setup_atlascloud_registration.py
new file mode 100644
index 0000000..30c27f2
--- /dev/null
+++ b/ifixai/tests/test_setup_atlascloud_registration.py
@@ -0,0 +1,18 @@
+from ifixai.cli.init import PROVIDER_ENV_KEYS, detect_available_providers
+from ifixai.cli.model_catalog import default_model
+from ifixai.cli.setup_cmd import _ALL_PROVIDERS, _PROVIDER_DESCRIPTIONS, _missing_keys
+
+
+def test_setup_offers_registered_atlascloud_provider():
+ assert 'atlascloud' in _ALL_PROVIDERS
+ assert _PROVIDER_DESCRIPTIONS.get('atlascloud')
+ assert default_model('atlascloud') == 'qwen/qwen3.5-flash'
+
+
+def test_atlascloud_key_is_detected_and_missing_key_is_explained(monkeypatch):
+ monkeypatch.delenv('ATLASCLOUD_API_KEY', raising=False)
+ assert _missing_keys([('system', 'atlascloud')]) == [('system', 'atlascloud', 'ATLASCLOUD_API_KEY')]
+ monkeypatch.setenv('ATLASCLOUD_API_KEY', 'owned-test-key')
+ assert PROVIDER_ENV_KEYS['atlascloud'] == 'ATLASCLOUD_API_KEY'
+ assert ('atlascloud', 'ATLASCLOUD_API_KEY') in detect_available_providers()
+ assert _missing_keys([('system', 'atlascloud')]) == []