Skip to content

Capsize-Games/airunner

AI Runner

image

AI Runner Screenshot

openvoice_realtime_conversation.mp4

Discord GitHub PyPi GitHub last commit

🐞 Report Bug Β· ✨ Request Feature Β· πŸ›‘οΈ Report Vulnerability Β· πŸ“– Wiki


Support AI Runner

βœ‰οΈ Get notified when the packaged version releases


✨ Key Features

Feature Description
πŸ—£οΈ Voice Chat Real-time conversations with LLMs using espeak, SpeechT5, or OpenVoice TTS
πŸ€– Custom AI Agents Configurable personalities, moods, and RAG-enhanced knowledge
🎨 Visual Workflows Drag-and-drop LangGraph workflow builder with runtime execution
πŸ–ΌοΈ Image Generation Stable Diffusion (SD 1.5, SDXL) and FLUX models with drawing tools, LoRA, inpainting, and filters
πŸ”’ Privacy First Runs locally with no external APIs by default, configurable guardrails
⚑ Fast Generation ~2s inference on RTX 2080s with GPU acceleration

🌍 Language Support

Language TTS LLM STT GUI
English βœ… βœ… βœ… βœ…
Japanese βœ… βœ… ❌ βœ…
Spanish/French/Chinese/Korean βœ… βœ… ❌ ❌

🫰 Request language support


βš™οΈ System Requirements

Minimum Recommended
OS Ubuntu 22.04, Windows 10 Ubuntu 22.04 (Wayland)
CPU Ryzen 2700K / i7-8700K Ryzen 5800X / i7-11700K
RAM 16 GB 32 GB
GPU NVIDIA RTX 3060 NVIDIA RTX 4090
Storage 22 GB (with models) 100 GB+

πŸ’Ύ Installation

Docker (Recommended)

GUI Mode:

xhost +local:docker && docker compose run --rm airunner

Headless API Server:

docker compose run --rm --service-ports airunner --headless

Note: --service-ports is required to expose port 8080 for the API.

The headless server exposes an HTTP API on port 8080 with endpoints:

  • GET /health - Health check and service status
  • POST /llm - LLM inference
  • POST /art - Image generation

Manual Installation (Ubuntu/Debian)

Python 3.13+ required. We recommend using pyenv and venv.

  1. Install system dependencies:

    sudo apt update && sudo apt install -y \
      build-essential cmake git curl wget \
      nvidia-cuda-toolkit pipewire libportaudio2 libxcb-cursor0 \
      espeak espeak-ng-espeak qt6-qpa-plugins qt6-wayland \
      mecab libmecab-dev mecab-ipadic-utf8 libxslt-dev mkcert
  2. Create data directory:

    mkdir -p ~/.local/share/airunner
  3. Install AI Runner:

    pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
    pip install airunner[all_dev]
  4. Run:

    airunner

For detailed instructions, see the Installation Wiki.


πŸ€– Models

AI Runner downloads essential TTS/STT models automatically. LLM and image models must be configured:

Category Model Size
LLM (default) Llama 3.1 8B Instruct (4bit) ~4 GB
Image Stable Diffusion 1.5 ~2 GB
Image SDXL 1.0 ~6 GB
Image FLUX.1 Dev/Schnell (GGUF) 8-12 GB
TTS OpenVoice / SpeechT5 654 MB - 4 GB
STT Whisper Tiny 155 MB

LLM Providers: Local (HuggingFace), Ollama, OpenRouter, OpenAI

Art Models: Place your models in ~/.local/share/airunner/art/models/


πŸ› οΈ CLI Commands

Command Description
airunner Launch GUI
airunner-setup Download models
airunner-build-ui Rebuild UI from .ui files
airunner-tests Run test suite
airunner-generate-cert Generate SSL certificate

πŸ”’ HTTPS Configuration

AI Runner's local server uses HTTPS by default. Certificates are auto-generated in ~/.local/share/airunner/certs/.

For browser-trusted certificates, install mkcert:

sudo apt install libnss3-tools
mkcert -install

βš–οΈ Colorado AI Act Notice

Effective February 1, 2026, the Colorado AI Act (SB 24-205) regulates high-risk AI systems.

Your Responsibility: If you use AI Runner for decisions with legal or significant effects on individuals (employment screening, loan eligibility, insurance, housing), you may be classified as a deployer of a high-risk AI system and must:

  • Implement a risk management policy
  • Complete impact assessments
  • Provide consumer notice and appeal mechanisms
  • Report algorithmic discrimination to the Colorado Attorney General

AI Runner's Design: Local-first operation, configurable guardrails, and no external data transmission by default help support compliant use.


πŸ§ͺ Testing

# Run headless-safe tests
pytest src/airunner/utils/tests/

# Run display-required tests (Qt/GUI)
xvfb-run -a pytest src/airunner/utils/tests/xvfb_required/

Contributing

See CONTRIBUTING.md and the Development Wiki.

Documentation


Sponsorship

Support development on GitHub Sponsors.

Past Sponsors

Open Core Ventures Catalyst Program Open Core Ventures Catalyst Program