Installation & Setup#
Prerequisites#
- Python 3.10 or higher
uv(recommended) orpipffmpeg(for audio processing)
Installation#
Method 1: Docker (Recommended)#
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.
-
Install ai_term:
-
Start the services:
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).
- Verify services are running:
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.
- Install dependencies:
Using
uv(recommended): Orpip:
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):
Terminal 2 (TTS Service):
2. Start the CLI#
In your main terminal:
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.