arc53/DocsGPT
Self-hosted RAG workspace for source-cited knowledge agents and workflows
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
DocsGPT is a self-hosted web application with a Python 3.12+ backend packaged via Hatchling. The backend lives in docsgpt/, with the UI in frontend/ and deployment assets in deployment/. The API serves the web UI, widgets, and API and MCP clients; a separate worker handles ingestion and embeddings. Redis connects the API and worker, and both use a data layer that includes PostgreSQL, a vector store, and file storage. This separates ingestion from request handling without eliminating contention on shared infrastructure.
The agent is the main configuration boundary: it bundles a prompt, knowledge, tools, and a model. Visual workflows compose agents with branching, state, and sandboxed code. Extension happens at several distinct boundaries: /v1 provides an OpenAI-compatible entry point, the Agent API exposes agents to applications, and the DocsGPT MCP server exposes agent knowledge to MCP clients. Agents can also consume external MCP tools; that is a separate integration with its own permissions and outbound traffic.
Key Capabilities & Differentiators
Knowledge ingestion covers PDFs, Office files, web pages, and audio, with synchronization from sources including Google Drive, SharePoint, Confluence, GitHub, and S3. DocsGPT supports GraphRAG and answers with source citations. Deep research handles multi-step questions, while the visual builder is better suited to expressing explicit branches and state. Agents can run interactively, on a schedule, or from a webhook, and can use web search, REST APIs, MCP tools, and sandboxed code.
Model choices include OpenAI, Anthropic, Google, Groq, and OpenRouter, as well as local serving through Ollama, vLLM, or other OpenAI-compatible servers. Guardrails can flag, redact, or block content involving PII, secrets, prompt injection, and ungrounded answers. Team controls include OIDC, SCIM provisioning, roles and sharing for agents, knowledge, and tools, an audit log, and per-user or per-team usage quotas. OpenTelemetry provides an integration point for observability. Validate citation quality and guardrail behavior against your corpus before relying on either.
Trade-offs & Limitations
The key comparison with Dify Cloud is who operates the platform and controls the data path. DocsGPT gives your team control over storage, identity, and model routing, but also makes it responsible for database and worker operations, connector credentials, upgrades, and recovery. The MIT license includes SSO, teams, and quotas; third-party models, services, and connectors still have their own terms. If your team mainly wants to publish workflows without running the platform, evaluate a managed service before committing to self-hosting.
Self-hosting the application does not keep every payload in your environment. Hosted models may receive prompts and retrieved passages, and external REST or MCP tools can introduce separate egress paths. Local inference removes the hosted-provider dependency for that path, but shifts capacity planning and model operations to your team. For a pilot, test citation correctness and access isolation with realistic documents, measure ingestion alongside interactive traffic, and give write-capable tools narrowly scoped credentials rather than relying on guardrails as an authorization boundary.
Hardware & Deployment Guide
The CLI quickstart checks for Docker and runs docsgpt up, which asks who should be able to reach the instance and which model to use. The local UI opens at http://localhost:7091. Docker Compose, Kubernetes, pip, and air-gapped installation are also available; the backend package requires Python 3.12 or newer. Plan persistent storage for PostgreSQL, files, and vector data, capacity for Redis and the worker, and a restore test. docsgpt backup covers the database and uploaded data; verify how your chosen vector store is recovered or rebuilt rather than assuming it is part of that backup.
Hosted inference avoids running model servers in your stack. Local generation and embeddings add compute and memory requirements that depend on the selected models and workloads. For an air-gapped rollout, stage models and installation artifacts ahead of time and validate that the chosen connectors and tools can operate without internet access. Release 1.0.0 split settings into domain modules, 1.1.0 retained the Responses prompt cache across turns, and 1.2.0 added a Twelve Data MCP preset and changed GitHub ingestion to use a single tarball request.
/v1, the Agent API, embeddable widgets, and an MCP server expose different paths into the platform.docsgpt CLI provides status, logs, upgrade, and backup commands; an air-gapped deployment path is available.Teams building internal knowledge assistants or embedded, source-cited search that need control over model selection, document access, and deployment, and can operate a multi-service stack.
You want a fully managed workflow platform or only need a stateless model API. The ingestion, storage, identity, and recovery responsibilities are hard to justify for those use cases.
Quick Start & Installation
> curl -fsSL https://docs.ac/install | bash >
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| DocsGPT ★ | 18.4k | +17 | Python | MIT | Self-hosted RAG workspace for source-cited knowledge agents and workflows |
| langflow | 157.1k | +100 | Python | MIT | Visual Python workflow builder for deploying AI agents as APIs and MCP tools |
| MetaGPT | 71.6k | +94 | Python | MIT | A role-based Python agent framework that turns software briefs into project arti |
| agno | 43.4k | +66 | Python | Apache-2.0 | Python framework and runtime for durable agent services over REST and MCP |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/arc53/DocsGPT.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about DocsGPT
When should I use the OpenAI-compatible endpoint, the Agent API, or MCP?
/v1 when reusing an OpenAI SDK, the Agent API or webhooks when an application needs to invoke DocsGPT agents, and the DocsGPT MCP server when an MCP client needs to search an agent’s knowledge. Connecting an external MCP server as an agent tool is a separate integration in the opposite direction. Test the specific SDK methods or MCP operations you need before committing.Do I need a GPU, and what should I size first?
Can we use DocsGPT commercially and keep it on our own infrastructure?
How should we choose between DocsGPT and Dify Cloud?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy