explaingit

deeix-ai/deeix-chat

Analysis updated 2026-06-24

50GoAudience · ops devopsComplexity · 4/5LicenseSetup · hard

TLDR

A self-hosted AI workspace that routes chat and image requests across many model vendors with billing, SSO, RAG, and an admin console built in.

Mindmap

mindmap
  root((DEEIX-Chat))
    Inputs
      User chats
      Uploaded files
      Image prompts
    Outputs
      Streamed replies
      Generated images
      Usage logs
    Use Cases
      Team AI portal
      Multi-vendor routing
      Internal RAG
    Tech Stack
      Next.js
      Go
      Postgres
      Redis
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run one internal chat portal that fans out to OpenAI, Anthropic, Gemini, and xAI with weighted routing.

USE CASE 2

Bill a team for AI usage with Stripe subscriptions, per-token tiers, and balance top-ups.

USE CASE 3

Add OIDC SSO, 2FA, and audit logs to a company-wide ChatGPT replacement.

USE CASE 4

Index internal docs with pgvector and serve RAG answers alongside regular chat.

What is it built with?

GoNext.jsReactPostgrespgvectorRedisDocker

How does it compare?

deeix-ai/deeix-chatmitchellh/go-libuclninehills/pdf2md
Stars505636
LanguageGoGoGo
Last pushed2019-03-08
MaintenanceDormant
Setup difficultyhardmoderatehard
Complexity4/52/54/5
Audienceops devopsdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Needs Postgres with pgvector, Redis, vendor API keys, and a Stripe or EPay account for the billing features.

Apache 2.0 lets you use, modify, and offer this commercially as long as you keep the copyright and license notices.

In plain English

DEEIX Chat is an open source workspace that lets a team use many AI models from many vendors in one place. The README calls it an enterprise AI workspace and lists chat, image generation, file workflows, tool use, billing, identity, and admin operations as part of the same product. The frontend is built with Next.js 16 and React 19, and the backend is a Go 1.25 service. The chat side supports multi-branch conversations, streaming replies, retries, edits, feedback, sharing, file attachments, and traces that show how each request was executed. A separate image flow handles generation and editing using an OpenAI Images compatible protocol, with its own task history kept apart from text chat. Protocols listed for upstream models include OpenAI Responses and Chat Completions, OpenAI Images, Anthropic Messages, Google Gemini Generate Content, xAI Responses, OpenRouter defaults, and custom OpenAI compatible routes. Administrators configure platform model names, real upstream channels, route bindings, priority and weight routing, pricing, and circuit breaker state through a console. The same console covers users, roles, auth providers, subscriptions, balances, usage logs, audit logs, and runtime settings. Billing supports subscription plans, top-ups, tiered pricing by token, call, or duration, free models, Stripe Checkout, EPay, and webhook validation. Identity covers local login, registration, 2FA with TOTP, recovery codes, trusted devices, and SSO through OIDC and OAuth. Files and RAG handle upload, preview, OCR, text extraction, chunking, embeddings, and semantic retrieval. The storage layer uses PostgreSQL with pgvector and Redis, with optional S3 compatible object storage. The README also mentions MCP servers for tools, structured logs, request IDs, Swagger docs, and optional OpenTelemetry. Quick start covers a local dev path with make run and pnpm dev, a lightweight Docker Compose that needs an external Postgres and Redis, and a full stack compose that brings up the app, Postgres, and Redis together. A separated deployment mode is shown for serving the frontend and backend on different public origins. The project is released under Apache 2.0.

Copy-paste prompts

Prompt 1
Spin up DEEIX-Chat with docker compose using my existing Postgres and Redis, then add an OpenAI and an Anthropic upstream channel.
Prompt 2
Configure DEEIX-Chat to route GPT requests to two OpenAI keys with priority and weight, and trip a circuit breaker after 5 failures.
Prompt 3
Wire Stripe Checkout and webhook validation in DEEIX-Chat so users can buy a 200k-token monthly plan.
Prompt 4
Set up OIDC SSO with Google Workspace on DEEIX-Chat and require TOTP 2FA for admin roles.
Prompt 5
Add a RAG knowledge base in DEEIX-Chat from a folder of PDFs using pgvector and OCR.

Frequently asked questions

What is deeix-chat?

A self-hosted AI workspace that routes chat and image requests across many model vendors with billing, SSO, RAG, and an admin console built in.

What language is deeix-chat written in?

Mainly Go. The stack also includes Go, Next.js, React.

What license does deeix-chat use?

Apache 2.0 lets you use, modify, and offer this commercially as long as you keep the copyright and license notices.

How hard is deeix-chat to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is deeix-chat for?

Mainly ops devops.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.