Skip to main content

Setup Command

The setup command is used to configure Astonish, particularly for setting up AI providers.

Usage

astonish setup [OPTIONS] [TYPE]

Options

OptionDescription
-h, --helpShow help message and exit
-v, --verboseEnable verbose output
--versionShow version information and exit

Types

TypeDescription
providerConfigure a specific AI provider

If no type is specified, the command defaults to provider setup.

Examples

Basic Setup

astonish setup

This will start the interactive setup process, allowing you to select and configure an AI provider.

Provider Setup

astonish setup provider

This explicitly specifies that you want to configure an AI provider.

Interactive Process

When you run the setup command, Astonish will:

  1. Display a list of available AI providers
  2. Prompt you to select a provider from the list
  3. Guide you through the configuration process for the selected provider
  4. Save the configuration for future use

Supported Providers

Astonish supports multiple AI providers, including:

  • Anthropic
  • LM Studio
  • Ollama
  • Openrouter
  • SAP AI Core

Each provider may have different configuration requirements, which will be presented during the setup process.

Implementation Details

The setup command is implemented in the setup() function in main.py. It uses the AIProviderFactory to get the list of registered providers and then guides the user through the configuration process.