DocsGPT: A Self-Hosted RAG Platform That Grew Into an Agent Builder
Private AI platform for agents, assistants and enterprise search. Built-in Agent Builder, Deep research, Document analysis, Multi-model support, and API connectivity for agents.
At a glance
- What is it?
- DocsGPT is an open-source, MIT-licensed platform for running private document search and AI assistants. It now includes an agent workflow builder, deep research mode, and enterprise connectors, but its breadth comes with real setup and maintenance demands.
- Who is it for?
- Adopt DocsGPT if you need a self-hosted, private AI platform that combines document search with agent workflows and you have the Docker and Python expertise to manage a multi-service deployment. Do not choose it if you want a single-command, fully managed SaaS or if your team lacks the capacity to handle upgrades and configuration drift.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository received new commits within the last day.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on September 15, 2026, and from our analysis. They are not legal advice.
DEEP OPEN-SOURCE ANALYSIS
From Chatbot to Agent Platform: What DocsGPT Actually Solves
DocsGPT started as a tool to answer questions about your own documents, a classic retrieval-augmented generation setup. The current README describes a much larger product: private AI for agents, assistants, and enterprise search. It solves the problem of building and hosting AI systems that can read your private files, answer with citations, and take actions through connected tools, all without sending data to a third-party cloud. The target user is a developer or IT team that wants to deploy an AI assistant internally, with control over models and data. The project has grown to include an Agent Builder, deep research mode, and connectors for SharePoint and Confluence, which shifts it from a simple Q&A tool to a platform for building automated workflows. That is a significant scope expansion, and it means the project is no longer just a RAG demo; it is competing with commercial platforms like Copilot Studio or custom LangChain deployments.
Architecture: A Flask Backend, a Vite Frontend, and Docker Compose
The repository layout shows a backend Flask application in the docsgpt Python package, a frontend built with Vite and React, and an Extensions directory for integrations like Chatwoot and a React widget. The architecture chart is referenced but not included in the material, so the exact data flow is not fully visible. What is clear is that the system is split into multiple services: the setup script generates a docker-compose command, and stopping the system requires running docker compose -f deployment/docker-compose.yaml down. The README mentions a Postgres migration for user data, which suggests a database service is part of the stack. There is also mention of RedBeat-backed agent scheduling, which implies a Celery-like task queue with a Redis backend. This is a real multi-service architecture, not a single Python script. The frontend communicates with the backend over HTTP, and the backend handles document ingestion, retrieval, and LLM calls. The separation of backend, frontend, and extensions is sensible for modularity, but it also means that operators need to understand each piece to debug issues.
Setup: Scripts That Ask You Five Questions
Getting DocsGPT running starts with cloning the repository and running a setup script. On macOS and Linux, that is ./setup.sh; on Windows, PowerShell -ExecutionPolicy Bypass -File .\setup.ps1. The script presents five options: use the public API, run locally, connect to a local inference engine, use a cloud API provider, or build the Docker image locally. It then configures the .env file automatically and handles downloads and installations. After setup, you navigate to http://localhost:5173/ to use the web UI. To stop the system, you run docker compose -f deployment/docker-compose.yaml down. This is a straightforward path for someone comfortable with Docker, but it is not a one-line install. The script requires you to make a choice about the model provider before you can start, and that choice affects everything downstream. The README points to a more detailed quickstart guide in the documentation, which is where you would find specifics about .env variables like API keys or model names.
Feature Breadth: From PDFs to Audio and Agent Workflows
The feature list is long. DocsGPT reads PDF, DOCX, CSV, XLSX, EPUB, MD, RST, HTML, MDX, JSON, PPTX, images, and audio formats like MP3 and WAV. It can ingest from URLs, sitemaps, Reddit, GitHub, and web crawlers. Speech workflows allow voice input into chat and transcription of meeting recordings. The agent builder includes conditional nodes, which is a notable step beyond simple prompt chaining. Research mode is listed as a completed roadmap item. There are pre-built integrations for Discord and Telegram bots, plus an HTML/React chat widget. API keys can be generated and linked to specific settings, documents, and models, which is useful for exposing the system to external chatbots. The breadth is impressive, but it also raises a question: how deep is each feature? The README does not provide implementation details for the agent builder or research mode. A developer evaluating this for production would need to read the documentation or test each feature to see if it meets their needs.
Deployment and Privacy: The Trade-Off Between Control and Effort
The core selling point is privacy. You can run DocsGPT with local models via Ollama or llama_cpp, or use cloud providers like OpenAI, Google, and Anthropic. The setup script's option to use a local inference engine directly addresses the 'private AI' claim. Kubernetes support is mentioned for enterprise scalability. The roadmap shows OIDC/SSO login with SCIM provisioning, admin dashboard, and role-based access control, all completed by June 2026. These features make it viable for an organization that needs to control who accesses the system. However, running your own deployment means you are responsible for securing the Postgres database, managing model inference hardware, and keeping the system updated. The README offers paid support and a Lighthouse program for companies that want help with production deployments. That is a signal that self-hosting is not trivial. The trade-off is clear: you gain data control, but you lose the convenience of a managed service.
Limitations and Wrong Use Cases
DocsGPT is not a plug-and-play appliance. The setup requires Docker and a decision about model providers, and the system is composed of multiple services that need to be orchestrated. If you do not have Docker installed, you cannot start. The README does not mention a standalone Python installation path, so the Docker dependency is real. Another limitation is the lack of detailed documentation in the README itself; you must go to the external documentation site for specifics like environment variables or configuration. The roadmap shows rapid feature additions, which can be a double-edged sword: new features like Postgres migration and RBAC were added recently, but that means the codebase is changing quickly, and upgrades might introduce breaking changes. The project is not a fit for a team that wants a simple Q&A bot with minimal setup; there are lighter tools for that. It is also not a fit for someone who needs a fully managed cloud experience, because even the cloud version is a separate commercial offering, not the open-source project.
Alternatives and How They Differ
The obvious alternative is a purpose-built RAG framework like LangChain or LlamaIndex, which give you building blocks for document retrieval and agent logic. The difference is that these frameworks are libraries, not platforms. With LangChain, you write Python code to wire together a retriever, an LLM, and a prompt. DocsGPT provides a ready-made frontend, a backend, and an agent builder with a visual interface, so you do not write glue code for the basic flow. Another alternative is a commercial product like Microsoft Copilot Studio, which offers a managed environment with connectors and governance, but it is not open source and you do not control the deployment. DocsGPT sits in the middle: it gives you the source code and self-hosting capability, but it also gives you a lot of pre-built UI and infrastructure that you would otherwise assemble yourself. The choice depends on whether you want to build from components or configure a platform.
Maintenance, Licensing, and Upgrade Cost
The project is licensed under the MIT, which is permissive: you can use, modify, and distribute it with few restrictions, but this is not legal advice. The repository is actively maintained, with releases in 2026 and a roadmap that lists many completed features. The last push date is September 2026, and the project is not archived. That activity is a positive sign for ongoing maintenance, but it also means you need to track releases. The upgrade cost is not documented in the README, but the move to Postgres for user data suggests that earlier versions may have used a different storage, which could complicate upgrades from older versions. The presence of a setup script that configures .env and docker-compose implies that configuration is centralized, which helps with reproducibility. However, the multi-service architecture means that upgrading likely requires pulling new Docker images and possibly running migrations. The README does not provide an upgrade guide, so you would need to rely on the external documentation or release notes. For a production deployment, budget time for testing upgrades in a staging environment.
Editorial conclusion
Adopt DocsGPT if you need a self-hosted, private AI platform that combines document search with agent workflows and you have the Docker and Python expertise to manage a multi-service deployment. Do not choose it if you want a single-command, fully managed SaaS or if your team lacks the capacity to handle upgrades and configuration drift. Before committing, verify that the latest release supports your chosen LLM provider, that your document formats are covered, and that the Postgres migration and RBAC features match your user management needs. The roadmap shows rapid feature additions, so check the changelog for breaking changes between versions like 0.18.0 and 0.19.0 before upgrading.
Community notes