ChatRAG
ChatRAG: open-source Next.js platform for RAG-powered AI chatbots.
Working when we checked on .
What is ChatRAG?
ChatRAG is an open-source Next.js platform for building RAG chatbots that answer questions from uploaded documents and website content. It is aimed at developers and agencies who want to self-host, brand, and even monetize chatbots for themselves or clients. Documents (PDFs, Word, Excel, slides, images) are parsed with LlamaCloud and stored in a Supabase pgvector HNSW index. It supports 100+ AI models via OpenRouter, OpenAI, Anthropic and Gemini, and offers single-tenant and multi-tenant deployment modes. Released under the MIT license, it runs entirely on the user's own infrastructure.
ChatRAG pricing
Pricing model: Free
Free and MIT-licensed for self-hosting; no hosted plan prices are shown. Multi-tenant mode mentions subscription tiers without prices.
ChatRAG pros
- Open source under MIT license; free for commercial use and resale
- Supports 100+ AI models through OpenRouter, OpenAI, Anthropic and Gemini
- Real-time voice via LiveKit, AssemblyAI and Resemble
- Cloud connectors for Google Drive, Notion and Dropbox through Nango
- MCP tool calls (Zapier, n8n) with human approval
- Single-tenant and multi-tenant modes with Supabase row-level security
ChatRAG cons
- Requires developer skills: Node.js 20.9+, a Supabase project and an OpenAI key
- Self-hosted only; no hosted version is offered
- Depends on paid/third-party services like LlamaCloud, LiveKit and AssemblyAI for some features
- Pricing for any hosted or managed offering is not documented
Frequently asked questions about ChatRAG
Is ChatRAG really free? Can it be used commercially?
Yes. ChatRAG is open source under the MIT license with $0 license fees, so it can be used commercially for yourself or your clients, including forking, rebranding and selling what you build.
What is RAG?
RAG (retrieval-augmented generation) lets a chatbot answer questions using your own documents. ChatRAG parses uploaded files, chunks and embeds them, and stores them in a pgvector index so answers are grounded in your content.
What kinds of documents can be uploaded?
PDFs, Word, Excel, slides and images can be uploaded through the dashboard. ChatRAG parses them with LlamaCloud, chunks and embeds them, and stores them in a pgvector HNSW index so they are searchable seconds later.
Which AI models are supported?
ChatRAG supports OpenAI, Anthropic, Gemini, DeepSeek and 100+ more models through OpenRouter, including reasoning models.
What deployment modes are available?
There are two modes from one codebase: single-tenant, where every user chats with the same documents and keeps private chat history, and multi-tenant, where each user or organization gets an isolated knowledge base enforced by Supabase row-level security.
Do I need to be a developer to use ChatRAG?
Some technical setup is required. You need Node.js 20.9 or newer, a free Supabase project and an OpenAI key for embeddings, though setup scripts and a visual config UI are provided.
Is there a hosted version?
No hosted version is described in the sources. ChatRAG is self-hosted: you run it on your own infrastructure, deploying to Vercel, Fly.io or any server that runs Node.
Can the chatbot be embedded on other websites?
Yes. One script tag puts the chat widget on any site, styled with your own colours and branding.
Who is ChatRAG for?
It is aimed at developers and agencies who want to build, brand and monetize RAG chatbots for themselves or their clients, from product docs bots and support assistants to NotebookLM-style SaaS products.
Can the chatbot take actions beyond answering questions?
Yes. It can connect to Zapier, n8n or any MCP server, proposing tool calls that wait for human approval, and it can search the web with Firecrawl when documents fall short.