[Feature]: Generate AI endpoint configuration and launch shai CLI
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 179
- Forks
- 35
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 7
Description
Is there an existing issue for this?
- I have searched the existing issues
Product concerned
Public cloud
Feature description
Add the ability to generate AI endpoint API credentials and configuration from the browser interface, then launch the shai CLI tool with the proper configuration for the selected endpoint.
Use Case
When browsing AI endpoints in the browser, users should be able to:
- Generate API credentials (API key) for that endpoint
- Automatically configure
shaiCLI with those credentials - Launch shai directly from the browser
This eliminates manual setup steps:
- Navigate to OVHcloud Manager
- Generate/copy API credentials
- Manually configure shai with credentials
- Launch shai separately
Acceptance Criteria
- Add "Launch shai" action when viewing AI endpoint details
- Generate API key for the selected endpoint (via API)
- Set up shai configuration with the generated credentials
- Graceful error handling if shai is not installed
- Show loading state during credential generation
- Display success message before launching shai
Implementation Details
- Call OVHcloud API to generate or fetch API key for the endpoint
- Create/update shai configuration file (typically
~/.config/shai/auth.config) - Set API key and endpoint URL in shai config
- Detect if shai CLI is installed before attempting launch
- Launch shai with proper access to the configured endpoint
- Provide helpful error messages if shai is missing or config invalid
Related Components
internal/services/browser/api.go- Add method to generate/fetch API keyinternal/services/browser/manager.go- Add action handler for launching shai- Browser UI - Add menu option for AI endpoint actions
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with internal/services/browser/api.go and internal/services/browser/manager.go, then locate the browser UI for AI endpoint actions. Trace how API credentials and endpoint details are handled before deciding how the action should detect and launch shai. Done means the listed acceptance criteria are covered, including loading, success, and missing-CLI error states.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend, cli, cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100