selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

fastgpt logo

Self-host fastgpt

v4.17.4

Visual AI agent builder with RAG knowledge bases

ReleaseOpen CoreApache-2.0
Docker ComposeCompose file & guide
docker compose up -d
Updated2 days ago
LanguageTypescript
Setup difficultyAdvanced
Stars
29 999
CPU
2c
RAM
4g
Ports
3000 (FastGPT main service (host mapping configurable via FASTGPT_PORT)), 3003 (SSE MCP server service for published apps, optional)
Requires
AI Proxy, MongoDB
Docker
ghcr.io/labring/fastgpt
fastgpt screenshot 1fastgpt screenshot 2fastgpt screenshot 3fastgpt screenshot 4

What is fastgpt?

FastGPT is an AI agent and knowledge-base Q&A platform for teams that want assistants answering from their own documents. Apps are assembled in a visual Flow editor with dialogue and plugin workflows, agent skills, bidirectional MCP and sandboxed code execution, while the knowledge base indexes common document formats (Markdown, HTML, PDF, Word, PowerPoint, CSV, Excel) or pages read from a URL. Retrieval uses hybrid search with reranking, can be probed with single-point search tests, and citations are returned in chat, where chunks can also be corrected. Models are managed through the AI Proxy service, which aggregates OpenAI-style, Anthropic and other channels with load balancing and model usage dashboards, and the vector layer can run on pgvector, Milvus, OceanBase, SeekDB or Zilliz Cloud next to MongoDB, Redis and S3-compatible storage. Self-hosting is a Docker Compose stack: an interactive script downloads the compose file, generates root passwords and service tokens, and the app then listens on port 3000; Sealos one-click templates are also offered. The community edition is Apache-2.0 based but forbids operating a competing multi-tenant SaaS and removing the logo or copyright; app publishing to Feishu or WeChat, application evaluation, SSO login, RBAC and multi-tenant billing belong to the paid commercial edition, which is also available as a managed cloud service.

Should you self-host fastgpt?

fastgpt scores 77/100 on selfhost.directory (how scoring works) and ranks #16 of 209 in AI Agents. It has 29 999 GitHub stars, +222 in the last 30 days.

It shipped 31 stable releases in the past year. The latest, v4.17.4, came out on 5 November 2026. New versions land roughly every 5 days.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Typescript.

Its closest alternative on selfhost.directory is Orca (91/100, 118 573 stars). It scores higher overall, so compare the two before you pick. See fastgpt vs Orca side by side.

Features

  • Agent skill orchestration
  • Bidirectional MCP
  • Chat log review and annotation
  • Chunk editing
  • Citation feedback in chat
  • Document import
  • External API knowledge base
  • iFrame Embedding
  • Knowledge base with hybrid retrieval
  • Login-free sharing
  • Multiple vector database backends
  • Plugin toolsRAG-module and agent-loop hot updates are listed as not done.
  • Retrieval testing
  • SSO login and RBACCommercial edition only; also app publishing to Feishu and WeChat, application evaluation and multi-tenant billing.
  • Visual workflow orchestration

fastgpt README

fastgpt logo

FastGPT

English | 简体中文 | Bahasa Indonesia | ไทย | Tiếng Việt | 日本語

FastGPT 是一个 AI Agent 构建平台,提供开箱即用的数据处理、模型调用等能力,同时可以通过 Flow 可视化进行工作流编排,从而实现复杂的应用场景。

cloud document development project

fastgpt.mp4

快速开始

可以通过 Docker 快速启动 FastGPT,在终端输入以下命令,根据引导完成输入即可拉取配置。

# 输入命令拉取配置文件
bash <(curl -fsSL https://doc.fastgpt.io/deploy/install.sh)
# 启动
docker compose up -d

完全启动后,可通过 http://localhost:3000 访问 FastGPT,默认账号为 root,密码为 1234。

如果你遇到问题,可以查看完整 Docker 部署教程

🛸 使用方式

  • 云服务版本
    如果你不需要私有化部署,可以直接使用我们提供的云服务版本,地址为:fastgpt.io

  • 社区自托管版本
    可以使用Docker快速部署,也可以使用Sealos Cloud 来一键部署FastGPT。

  • 商业版
    如果你需要更完整的功能,或深度的服务支持,可以选择我们的商业版。我们除了提供完整的软件外,还提供相应的场景落地辅导,具体可提交商业咨询

💡 核心功能

Demo Demo
Demo Demo

1 应用编排能力

  • Agent Skill 编排
  • 对话工作流、插件工作流,包含基础的 RPA 节点
  • 用户交互
  • 双向 MCP
  • 辅助生成工作流

2 应用调试能力

  • 知识库单点搜索测试
  • 对话时反馈引用并可修改与删除
  • 完整调用链路日志
  • 应用评测
  • 高级编排 DeBug 调试模式
  • 应用节点日志

3 知识库能力

  • 多库复用,混用
  • chunk 记录修改和删除
  • 支持手动输入,直接分段,QA 拆分导入
  • 支持 TXT,MD,HTML,PDF,Docx,PPTX,CSV,XLSX (有需要更多 File Loader 可 PR ),支持 URL 读取、CSV 批量导入
  • 混合检索 & 重排
  • API 知识库

4 插件能力

  • 系统工具热更新
  • RAG 模块热更新
  • Agent-loop 热更新
  • AI 实时生成插件

5 运营能力

  • 免登录分享窗口
  • iframe 一键嵌入
  • 统一查阅对话记录,并对数据进行标注
  • 应用运营日志
#

💪 我们的项目 & 链接

#

🌿 第三方生态

#

🏘️ 社区交流群

扫码加入飞书话题群:

#

🤝 贡献者

我们非常欢迎各种形式的贡献。如果你对贡献代码感兴趣,可以查看我们的 GitHub Issues,大展身手,向我们展示你的奇思妙想。




Active participants of labring - past 28 days **** New trends of labring
New participants of labring - past 28 days

How to install fastgpt

How to configure fastgpt

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

How do I resolve a port conflict?

Container-side ports never collide, but host mapping does; change the left-hand (mapped) side of the host:container pair to a free port.

Why can't FastGPT reach my local model container?

The compose file bridges a fastgpt network, so a local model container must be attached to that same network to be reachable by container name or 0.0.0.0.

How can I check that environment variables were loaded?

Run docker exec -it fastgpt sh to enter the container and print the environment with the env command.

How do I add custom environment variables?

Edit the environment section of fastgpt-app inside docker-compose.yml and restart the container with docker compose up -d, following the environment variable reference.

How do I update the version?

Check the upgrade notes to pick a target version, change the image tags in docker-compose.yml, then rerun the containers so the new images are pulled, plus any init script for that version.

How do I change the API address and keys?

From V4.17.0 onward you must run or connect an AI Proxy and set AIPROXY_API_ENDPOINT plus a non-empty AIPROXY_API_TOKEN in the FastGPT container; old OpenAI variables cannot replace them, and provider addresses/keys are maintained in the admin channel settings.

More in AI Agents

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…