# Repository Briefing: arc53/DocsGPT
> Source: https://repoforai.com/repo/arc53/DocsGPT (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/arc53/DocsGPT
- **Official Docs / Website**: https://www.docsgpt.cloud/
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A+ (97/100 · Maintenance 35/35 · Adoption 22/25 · Releases 20/20 · License 20/20)
- **Latest Release**: 1.2.0 (2026-11-24) — https://github.com/arc53/DocsGPT/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Docker, Self-Hosted, MCP, CLI, API
- **Momentum**: 18,395 ★ total (+3 24h / +17 7d) · 2,283 forks
- **Topics**: `agent-builder`, `agents`, `ai`, `chatgpt`, `docsgpt`, `hacktoberfest`, `hacktoberfest-swag`, `hacktoberfest2026`, `information-retrieval`, `language-model`, `llm`, `machine-learning`
- **When to Use**: Best for: 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. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Ingestion: A separate worker handles ingestion and embeddings, with Redis linking it to the API and PostgreSQL, vector storage, and files in the data layer.
- Retrieval: Source-cited answers and GraphRAG complement document ingestion and synchronization from systems such as SharePoint, Confluence, GitHub, and S3.
- Workflow execution: The visual builder combines agents, conditions, state, and sandboxed code; schedules and webhooks provide non-interactive triggers.
- Integration: OpenAI-compatible `/v1`, the Agent API, embeddable widgets, and an MCP server expose different paths into the platform.
- Governance: OIDC and SCIM provisioning, teams and roles, audit logs, per-user and per-team quotas, and OpenTelemetry integration.
- Self-host operations: The Docker-oriented `docsgpt` CLI provides status, logs, upgrade, and backup commands; an air-gapped deployment path is available.
```

## Quick Start / Clone
```bash
> curl -fsSL https://docs.ac/install | bash
>
```
