Skip to content

Installation

This guide covers installing the Amplifier CLI.

Requirements

  • Python 3.11+
  • UV - Fast Python package manager (recommended)

Install UV

# macOS/Linux/WSL
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows PowerShell
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

Quick Install

Try Without Installing

uvx --from git+https://github.com/microsoft/amplifier amplifier

This downloads and runs Amplifier in an isolated environment without permanent installation.

Install Globally

uv tool install git+https://github.com/microsoft/amplifier

This installs the amplifier command globally.

First-Time Setup

After installation, run:

amplifier init

The setup wizard will:

  1. Detect API keys - Checks for ANTHROPIC_API_KEY, OPENAI_API_KEY, AZURE_OPENAI_API_KEY, GOOGLE_API_KEY
  2. Configure provider - Sets your preferred LLM provider
  3. Set defaults - Configures default model and settings

Tip: Set environment variables before running init for faster setup:

export ANTHROPIC_API_KEY="your-key"
amplifier init

Shell Completion

Enable tab completion for faster CLI usage:

amplifier --install-completion

This automatically: - Detects your shell (bash, zsh, fish) - Adds completion to your shell config - Safe to run multiple times

After installation:

source ~/.bashrc  # or ~/.zshrc for zsh

Provider Configuration

export ANTHROPIC_API_KEY="your-key"
amplifier provider add anthropic

OpenAI

export OPENAI_API_KEY="your-key"
amplifier provider add openai

Azure OpenAI

export AZURE_OPENAI_API_KEY="your-key"
amplifier provider add azure-openai

Google Gemini

export GOOGLE_API_KEY="your-key"
amplifier provider add google

Ollama (Local, Free)

# Start Ollama server first
ollama serve

# Configure Amplifier
amplifier provider add ollama

No API key needed - runs locally on your machine.

Verify Installation

# Check version
amplifier --version

# Test with a simple prompt
amplifier run "Hello, world!"

Next Steps

Troubleshooting

Command Not Found

If amplifier command is not found after installation:

  1. Check UV installation:

    uv --version
    

  2. Verify tool installation:

    uv tool list
    

  3. Add to PATH (if needed):

    export PATH="$HOME/.local/bin:$PATH"
    

API Key Issues

If provider setup fails:

  1. Verify environment variable:

    echo $ANTHROPIC_API_KEY  # Should print your key
    

  2. Check provider configuration:

    amplifier provider list
    

  3. Test provider connectivity:

    amplifier provider test anthropic
    

Module Loading Errors

If modules fail to load:

  1. Update Amplifier:

    uv tool upgrade amplifier
    

  2. Clear module cache:

    rm -rf ~/.amplifier/modules/
    

  3. Reinstall with fresh dependencies:

    uv tool uninstall amplifier
    uv tool install git+https://github.com/microsoft/amplifier