DocsGPT is an open-source platform for turning documents, websites and connected apps into AI agents that answer with cited sources. It's built for teams and developers who need private, self-hosted retrieval-augmented generation (RAG) without sending data to a third party, and who want to build agents, workflows, chat widgets or APIs on top of their own knowledge base.
It runs entirely inside your own environment: API, worker, Postgres, Redis, vector store and files. You choose the model, whether that's a cloud provider like OpenAI or Anthropic, or a local model through Ollama or vLLM. Everything, including SSO and team access control, ships under the MIT license.
DocsGPT fits teams that need an internal or customer-facing assistant grounded in private documentation, support handbooks, codebases or internal wikis, especially where data residency or privacy rules matter. It's a good match if you want to embed a sourced-answer chat widget on a product site, expose an OpenAI-compatible endpoint to existing tooling, or wire agents into Claude/Cursor via MCP.
It also suits organizations that need SSO, role-based access control, usage quotas and audit logs around their AI agents, since those are built in rather than bolted on. Air-gapped deployment is supported for environments that can't reach the internet at all.
It's less of a fit if you just want a quick prototype chatbot with no self-hosting overhead and no need for document grounding, citations, or connectors, a lighter framework or a hosted SaaS chatbot might get you there faster. It's also not meant for pure LLM fine-tuning or training workloads; it's a retrieval and agent orchestration layer, not a model training platform.
The fastest path is the one-command installer, which checks for Docker, installs the docsgpt CLI, and runs docsgpt up:
# macOS and Linux
curl -fsSL https://docs.ac/install | bash
# Windows (PowerShell)
irm https://docs.ac/install.ps1 | iex
docsgpt up asks who should be able to reach the instance and which model to use. A local install opens at http://localhost:7091.
Once installed, manage the stack with the docsgpt command:
docsgpt status # version, address and health
docsgpt logs # follow the logs
docsgpt upgrade # upgrade and restart on the new version
docsgpt backup # back up the database and uploaded data
docsgpt down # stop (data and settings stay)
Other supported deployment methods include Docker Compose, pip, Kubernetes, an air-gapped setup, and running from a source checkout with the included setup script. If you just want to try DocsGPT without self-hosting, use the hosted DocsGPT Cloud instance instead.