Quick Start

Install AI Server by running install.sh:

1. Clone the Repository

Clone the AI Server repository from GitHub:

2. Run the Installer

cd ai-server && cat install.sh | bash

The installer will detect common environment variables for its supported AI Providers including OpenAI, Anthropic, Mistral AI, Google, etc. and prompt if you would like to include any others in your AI Server configuration.

Accessing AI Server

Once the AI Server is running, you can access the Admin Portal at http://localhost:5006/admin to configure your AI providers and generate API keys. If you first ran the AI Server with configured API Keys in your .env file, you providers will be automatically configured for the related services.

INFO

The default password to access the Admin Portal is p@55wOrd. You can change this in your .env file by setting the AUTH_SECRET or providing it during the installation process.

You will then be able to make requests to the AI Server API endpoints, and access the Admin Portal user interface like the Chat interface to use your AI Provider models.

Re-install

If needed you can reset the process by deleting your local App_Data directory and rerunning docker compose up or re-running the install.sh.

Optional - Install ComfyUI Agent

If your server also has a GPU you can ask the installer to also install the ComfyUI Agent locally:

The ComfyUI Agent is a separate Docker agent for running ComfyUI, Whisper and FFmpeg on servers with GPUs to handle AI Server's Image and Video transformations and Media Requests, including:

Comfy UI Agent Installer

To install the ComfyUI Agent on a separate server (with a GPU), you can clone and run the ComfyUI Agent installer from there instead:

Clone the Comfy Agent Repo:

Run the Comfy Agent Installer:*

cd agent-comfy && cat install.sh | bash

Providing your AI Server URL and Auth Secret when prompted will automatically register the ComfyUI Agent with your AI Server to handle related requests.

You will be prompted to provide the AI Server URL and ComfyUI Agent URL during the installation. These should be the accessible URLs for your AI Server and ComfyUI Agent. When running locally, the ComfyUI Agent will be populated with a docker accessible path as localhost won't be accessible from the AI Server container. If you want to reset the ComfyUI Agent settings, remember to remove the provider from the AI Server Admin Portal.

Supported OS

The AI Server installer is supported on Linux, macOS, and Windows with WSL2, and all require Docker and Docker Compose to be installed at a minimum.

Prerequisites

Linux

Linux requires the following software installed:

  • Docker Engine (with Docker Compose)
  • Git

ComfyUI Agent

To run the ComfyUI Agent locally, you will also need:

  • Nvidia GPU with CUDA support
  • Nvidia Container Toolkit for Docker

macOS

macOS also requires:

  • Docker Engine (with Docker Compose)

ComfyUI Agent

ComfyUI Agent requires Pytorch running in Docker which isn't available for macOS

Windows with WSL2

Windows with WSL2 requires the following prerequisites:

  • Docker Engine accessible from WSL2 like Docker Desktop
  • WSL2 with Ubuntu 20.04 LTS or later

ComfyUI Agent

To run the ComfyUI Agent locally, you will also need: