Provides API endpoints related to provider
Summary
Types
Functions
Get provider auth methods
Retrieve available authentication methods for all AI providers.
Options
directoryworkspace
@spec provider_list(opts :: keyword()) :: {:ok, provider_list_200_json_resp()} | :error
List providers
Get a list of all available AI providers, including both available and connected ones.
Options
directoryworkspace
@spec provider_oauth_authorize( providerID :: String.t(), body :: map(), opts :: keyword() ) :: {:ok, OpenCode.Generated.ProviderAuthAuthorization.t()} | {:error, OpenCode.Generated.ProviderAuthError1.t()}
Start OAuth authorization
Start the OAuth authorization flow for a provider.
Options
directoryworkspace
Request Body
Content Types: application/json
@spec provider_oauth_callback( providerID :: String.t(), body :: map(), opts :: keyword() ) :: {:ok, boolean()} | {:error, OpenCode.Generated.ProviderAuthError1.t()}
Handle OAuth callback
Handle the OAuth callback from a provider after user authorization.
Options
directoryworkspace
Request Body
Content Types: application/json