selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

GitHub
fuseai logo

Self-host fuseai

v0.1.0

Self-hosted web app for chatting with OpenAI APIs

AlphaOpen Source
Updated3 years ago
LanguageTypescript
Setup difficultyModerate
Stars
291
Port
3000 (HTTP web interface)
Requires
SQLite
Docker
bitswired/ai-chat-app
Install with Docker
fuseai screenshot 1

What is fuseai?

fuseai is a self-hosted web application for interacting with OpenAI's ChatGPT API. It provides a chat interface built with Next.js, React, TypeScript, and the Mantine component library. The app supports two modes: single-user (with a pre-configured admin account) and multi-user (with email-based authentication via SMTP). It uses Prisma with SQLite for data persistence, tRPC for API communication, and NextAuth for authentication. Deployment is via Docker images published as bitswired/ai-chat-app with separate tags for single-user and multi-user modes. The project is in early development (v0.1.0) with a roadmap including Whisper API integration, prompt templates, and mobile improvements.

Should you self-host fuseai?

fuseai scores 37/100 on selfhost.directory (how scoring works) and ranks #59 of 69 in AI Chat. It has 291 GitHub stars.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is written mostly in Typescript.

Its closest alternative on selfhost.directory is LibreChat (85/100, 46 424 stars). It scores higher overall, so compare the two before you pick. See fuseai vs LibreChat side by side.

Features

  • Chat with OpenAI ChatGPT
  • Email authentication
  • Multi-User Mode
  • Single-User Mode
  • Unraid supportCommunity contributed by barnito

fuseai README

How to install fuseai

Install fuseai with Docker

Environment variables
DATABASE_URL, NEXTAUTH_SECRET, NEXTAUTH_URL, ADMIN_EMAIL, ADMIN_PASSWORD

docker run -p 3000:3000
-e DATABASE_URL=file:./db.sqlite
-e NEXTAUTH_SECRET=secret
-e NEXTAUTH_URL=http://localhost:3000/
-e ADMIN_EMAIL=admin@admin.com
-e ADMIN_PASSWORD=password
bitswired/ai-chat-app:single-user-latest

Single-user mode with pre-configured admin account

How to configure fuseai

  • ADMIN_EMAILadmin@admin.comEmail address for the admin user

    Email address for the admin user

  • ADMIN_PASSWORDpasswordPassword for the admin user (single-user mode)

    Password for the admin user (single-user mode)

  • DATABASE_URLfile:./db.sqlitePrisma database connection URL (SQLite file path)

    Prisma database connection URL (SQLite file path)

  • EMAIL_FROMai-chat-app@ai-chat-app.comFrom address for outgoing emails

    From address for outgoing emails

  • EMAIL_SERVER_HOSTsmtp.gmail.comSMTP server host for sending emails

    SMTP server host for sending emails

  • EMAIL_SERVER_PASSWORDpasswordSMTP password

    SMTP password

  • EMAIL_SERVER_PORT465SMTP server port

    SMTP server port

  • EMAIL_SERVER_USERuser@gmail.comSMTP username

    SMTP username

  • NEXTAUTH_SECRETsecretSecret for NextAuth.js session encryption

    Secret for NextAuth.js session encryption

  • NEXTAUTH_URLhttp://localhost:3000Base URL of the application for NextAuth callbacks

    Base URL of the application for NextAuth callbacks

  • NEXT_PUBLIC_MULTI_USER1Enable multi-user mode with email authentication

    Enable multi-user mode with email authentication

    values: 0 or 1

fuseai releases & version history

More in AI Chat

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…