feat: add OpenCSG CSGHub login and AI Gateway model provider#230
Merged
Conversation
- Added functions to fetch CSGHub authentication status, initiate login, and logout. - Integrated CSGHub authentication into the workspace sidebar, displaying user information and login/logout buttons. - Implemented fallback to CSGHub authentication store for credentials if environment variables are not set. - Created hooks for managing CSGHub authentication state and actions. - Updated UI components to reflect authentication status and provide user feedback during login/logout processes. - Added tests for CSGHub authentication logic and UI components. - Updated translations for CSGHub related messages.
Collaborator
Author
RussellLuo
reviewed
Jun 24, 2026
| Avatar string `json:"avatar"` | ||
| CSGHubBaseURL string `json:"csghub_base_url"` | ||
| PortalURL string `json:"portal_url"` | ||
| LoggedInAt time.Time `json:"logged_in_at"` |
Collaborator
There was a problem hiding this comment.
This login metadata probably should not live in auth/csghub.json. That directory is currently the model-provider credential store, while logged_in_at and the other account display fields are more like top-level auth state. Consider moving this state into ~/.csgclaw/auth.json, similar to Codex, and keep auth/ scoped to provider-specific credentials only.
Collaborator
Author
There was a problem hiding this comment.
Done, I've addressed this. PTAL
Collaborator
Author
…ortal URL validation
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.




Uh oh!
There was an error while loading. Please reload this page.