feat(gateway): add Atlas Cloud as a runtime source provider#23
Open
lucaszhu-hue wants to merge 1 commit into
Open
feat(gateway): add Atlas Cloud as a runtime source provider#23lucaszhu-hue wants to merge 1 commit into
lucaszhu-hue wants to merge 1 commit into
Conversation
Wire Atlas Cloud into the Mac PhoneClaw Gateway as a first-class runtime source. Atlas Cloud exposes an OpenAI-compatible API (https://api.atlascloud.ai/v1), so it routes through the existing OpenAICompatibleProvider with no new transport code. - Add `atlasCloud` case to ProviderKind (BYOK category): title, icon, defaultID, defaultBaseURL, default models, API-key flags. - Add it to `catalogCases` so it appears as a selectable tile in the provider picker, and to `isMainRuntimeSource` so it is built, validated (http/https URL) and routed like the other runtime sources. Build passes (swift build). - README / README_EN: Atlas Cloud section + document choosing it as a Mac runtime source. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Wires Atlas Cloud into the Mac-side PhoneClaw Gateway as a first-class runtime source. Atlas Cloud exposes an OpenAI-compatible API (
https://api.atlascloud.ai/v1), giving one key access to many cloud models (Claude / GPT / Qwen / DeepSeek / GLM / …) — useful when on-device models aren't enough, while the iPhone keeps its native chat/Skill experience.Why this is code, not just docs
The Gateway already has a
ProviderKindenum, a genericOpenAICompatibleProvider(handles/v1/models+/v1/chat/completions), andmakeProvider'sdefault:branch that builds it for cloud kinds. The only thing gating cloud providers from being routed wasisMainRuntimeSource/catalogCases. So Atlas Cloud plugs into the existing, already-implemented HTTP-upstream path — no new transport/SSE code needed.Changes
PhoneClawGateway/.../GatewayApp.swiftProviderKind.atlasCloud(BYOK category):title= "Atlas Cloud", icon,defaultID=atlascloud,defaultBaseURL=https://api.atlascloud.ai/v1,needsAPIKey/commonlyUsesAPIKey= true, default models (deepseek-ai/deepseek-v4-pro,anthropic/claude-sonnet-4.6,qwen/qwen3-coder-next,openai/gpt-5.5).catalogCases→ appears as a selectable tile in the provider picker.isMainRuntimeSource→ it is built, validated (http/https URL check), persisted and routed throughOpenAICompatibleProviderlike the other runtime sources.Verification
cd PhoneClawGateway && swift buildpasses — the exhaustiveProviderKindswitches force compile-time completeness, so every case is covered. The API key is read from the existing per-provider Keychain field (no key committed).🤖 Generated with Claude Code
🤝 Partnership & contact
This PR comes from the Atlas Cloud team. Beyond the integration above, we'd love to explore a closer collaboration with PhoneClaw — for example co-marketing or a featured integration.
If that sounds interesting, reach out anytime:
And of course, happy to revise this PR to match your project's conventions — just leave a comment. 🙌