Skip to content

[Feature]: Generate AI endpoint configuration and launch shai CLI #132

@chuliang

Description

@chuliang

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:

  1. Generate API credentials (API key) for that endpoint
  2. Automatically configure shai CLI with those credentials
  3. 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 key
  • internal/services/browser/manager.go - Add action handler for launching shai
  • Browser UI - Add menu option for AI endpoint actions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions