---
title: "ChatRAG - Open-Source AI Chatbots with RAG"
description: "Free, open-source Next.js platform for building RAG-powered AI chatbots. MIT licensed and self-hosted."
url: "https://www.chatrag.ai"
type: "landing-page"
license: "MIT"
repository: "https://github.com/areia-ai/chatrag"
last_updated: "2026-10-26T23:33:22.140Z"
---

# ChatRAG

**Build AI chatbots in hours, not months.**

A free, open-source Next.js and AI SDK platform for building RAG-powered AI chatbots, released under the MIT License. Source code: https://github.com/areia-ai/chatrag

## What is ChatRAG?

ChatRAG is a self-hosted platform for building AI chatbots that answer from your own documents. You can run it for yourself or your clients, white-label it, and charge for what you build. There is no hosted version and no paid tier.

## Key Features

### 🚀 Production-Ready RAG System
- HNSW vector search (15-28x faster than traditional methods)
- Multi-pass retrieval with adaptive strategies
- Support for PDF, DOCX, TXT, HTML, and more

### 🤖 Multi-LLM Support
- OpenAI GPT-4, GPT-4o, GPT-3.5
- Anthropic Claude 3
- Google Gemini
- Meta Llama 3
- Any model via OpenRouter

### 💾 Vector Database
- Supabase with pgvector
- Optimized HNSW indexes
- Built-in caching

### 🔐 Authentication & Security
- Supabase Auth integration
- Row-Level Security (RLS)
- API key management

### 💳 Monetization
- Stripe integration
- Subscription tiers
- Usage-based billing

### 🎨 Customization
- White-label branding
- Embeddable widgets
- 18 language support

## Deployment Modes

### Single-Tenant
All users share the same knowledge base. Ideal for:
- AI Twins
- Product documentation
- Customer support bots

### Multi-Tenant
Each user gets isolated workspaces. Ideal for:
- SaaS products
- Enterprise deployments
- Agency client management

## Integrations

- **WhatsApp** - Connect via Baileys, no Business account needed
- **Voice** - Real-time voice with LiveKit
- **MCP Tools** - Model Context Protocol
- **Cloud Connectors** - Google Drive, Dropbox, etc.

## License and cost

Free and open source under the MIT License. You pay only for your own API usage and hosting. The license covers the code, not the ChatRAG name or logo.

## Links

- [GitHub repository](https://github.com/areia-ai/chatrag)
- [Documentation](https://www.chatrag.ai/docs)
- [Blog](https://www.chatrag.ai/blog)
- [Quick Start Guide](https://www.chatrag.ai/docs/quick-start)

## AI-Friendly Endpoints

This website provides AI-readable Markdown at these endpoints:

- `/api/markdown/page` - This landing page
- `/api/markdown/blog` - Blog index
- `/api/markdown/blog/{slug}` - Individual blog posts
- `/api/markdown/docs` - Documentation index
- `/api/markdown/docs/{slug}` - Individual docs pages
- `/llms.txt` - LLM-friendly site summary
- `/llms-full.txt` - Complete LLM context

## Contact

Created by Carlos Marcial
- Twitter: [@carlosmarcialt](https://x.com/carlosmarcialt)
- Website: [chatrag.ai](https://www.chatrag.ai)
