Skip to main content

CLI Installation

The easiest way to get started with InfraGPT is through the CLI tool.
# Install using pipx
pipx install infragpt

# Launch interactive mode
infragpt

Install with pip

# Install using pip
pip install infragpt

# Launch interactive mode
infragpt

Configuration

API Keys

InfraGPT supports multiple LLM providers. Set your API key as an environment variable:
export OPENAI_API_KEY="your-openai-api-key"
infragpt --model openai
export ANTHROPIC_API_KEY="your-anthropic-api-key"
infragpt --model anthropic

Basic Usage

Interactive Mode

Launch InfraGPT and start using natural language:
infragpt
Example queries:
> create a new VM instance called test-vm in us-central1 with 2 CPUs
> list all storage buckets in my project
> show me the status of my kubernetes cluster
CLI Demo

Slack Integration

For team collaboration, set up the Slack bot:
  1. Deploy the Backend Service - Follow the development guide to deploy the Go service
  2. Configure Slack App - Create a Slack app with Socket Mode enabled
  3. Set Environment Variables - Configure your Slack tokens and database connection
Slack Integration

Next Steps