# ai-chat-app

ai-chat-app is an open source, self-hosted ChatGPT-style web application that lets you run a private, multi-user AI chat assistant in your own infrastructure. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/2590/ai-chat-app

## Description

ai-chat-app is an open source, self-hosted ChatGPT-style web application that lets you run a private, multi-user AI chat assistant in your own infrastructure.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

37/100 (Low), based on 5 of 5 factors.
- Maintained: 0 (last commit 1330 days ago)
- Popular: 49 (290 GitHub stars)
- Easy to install: 50 (1 install platform, install notes, setup guide, Docker image)
- Light to run: 30 (4 GB minimum RAM)
- Security check: 90 (no serious findings, CI)

## Links

- GitHub: https://github.com/bitswired/fuseai
- Unraid: https://ca.unraid.net/apps/ai-chat-app-17yc9hk0mv3x5o?q=ai-chat-app

## Common questions

### Which Docker image and environment variables are shown for single-user mode?

Use the bitswired/ai-chat-app:single-user-latest image and set DATABASE_URL, NEXTAUTH_SECRET, NEXTAUTH_URL, ADMIN_EMAIL, and ADMIN_PASSWORD.

### What do I set to run multi-user mode?

Use the multi-user-latest image, set NEXT_PUBLIC_MULTI_USER=1, and configure the email server variables EMAIL_SERVER_HOST, EMAIL_SERVER_PORT, EMAIL_SERVER_USER, EMAIL_SERVER_PASSWORD, and EMAIL_FROM.

### Which port should I expose?

The examples expose container port 3000 on host port 3000.

### Where is the SQLite database file located for backups?

The examples use DATABASE_URL=file:./db.sqlite, and the Unraid example uses DATABASE_URL=file:/config/db.sqlite with the /config volume.

---
Source: Our Local Host (https://ourlocalhost.com/app/2590/ai-chat-app), the self-hosted and open-source app directory.
