Skip to content

Installation & Setup#

Prerequisites#

  • Python 3.10 or higher
  • uv (recommended) or pip
  • ffmpeg (for audio processing)

Installation#

Recommended

Using Docker is strongly recommended. It bundles the required STT and TTS services without manual configuration.

The easiest way to run ai_term is using the built-in CLI commands.

  1. Install ai_term:

    pip install py-aiterm
    

  2. Start the services:

    ai-term start
    

This pulls pre-built Docker images and starts the STT/TTS services.

Initial Startup

The first time you run this command, it may take several minutes to download the large Docker images (approx 3-5GB per image).

  1. Verify services are running:
    ai-term status
    

For more Docker configurations, see the Docker Guide.

Method 2: Local Installation#

If you prefer to run locally without Docker:

Virtual Environment

It is highly recommended to use a virtual environment (venv, uv, or conda) to avoid conflicting with system packages.

  1. Install dependencies: Using uv (recommended):
    uv sync
    
    Or pip:
    pip install -e .
    

Running the Application#

If you are not using Docker, you need to run the services manually.

Voice Features Requirement

If you do not start the support services below, the Voice Mode (TTS/STT) will fail. The main chat interface will still work for text-only interactions.

1. Start Support Services#

Open two separate terminal windows/tabs:

Terminal 1 (STT Service):

uv run uvicorn ai_term.stt.main:app --port 8901

Terminal 2 (TTS Service):

uv run uvicorn ai_term.tts.main:app --port 8902

2. Start the CLI#

In your main terminal:

uv run ai-term
# OR
uv run python -m ai_term.cli.main

Configuration#

You can configure providers and API keys directly in the application Settings screen (press Ctrl+S or click Settings).

For more details, see Configuration Guide.