已开源 / 可部署Open-source / Deployable

知行 GatewayZhixing Gateway

知行 Gateway 是基于 Dify 平台的本地知识库问答网关平台:用 Gateway API、Admin 后台和助手管理,把私有知识库、模型连接和问答入口统一部署在自己的环境里。Zhixing Gateway is a Dify-based local knowledge-base Q&A gateway: Gateway APIs, Admin Web, and assistant management make private knowledge bases, model connections, and Q&A entry points deployable in your own environment.

适合谁使用

  • 已经使用 Dify 或私有知识库、需要统一问答入口的个人开发者和团队
  • 希望在自己的环境部署 Gateway API 与管理后台的用户

解决什么问题

企业和个人已经在 Dify 或本地知识库里沉淀了资料,但缺少一个可部署、可管理、能统一暴露问答入口的网关层。

核心能力

Dify 接入

根目录提供 Docker Compose 源码部署,交付目录提供面向发布镜像的部署方式。

Gateway API

Gateway 暴露 API 与接口文档,启动时自动执行迁移和幂等 seed。

Admin 后台

项目结构包含 Admin Web、Gateway 后端和助手管理能力,面向 Dify 知识库问答与智能工作流。

助手管理

知行 Gateway 是基于 Dify 平台的本地知识库问答网关平台:用 Gateway API、Admin 后台和助手管理,把私有知识库、模型连接和问答入口统一部署在自己的环境里。

典型工作流

  • 配置 Dify 与环境变量
  • 通过 Docker Compose 启动 Gateway 和 Admin
  • 创建和管理助手
  • 从统一 API 或前端入口发起知识问答

适用场景

  • Dify 知识库问答
  • 私有模型入口
  • 企业知识网关

输入

  • Dify 应用或知识库连接
  • 助手配置
  • 用户问题

输出

  • 统一 Gateway API
  • 助手管理配置
  • 知识库问答结果

部署和数据边界

  • 服务部署在用户自己的 Docker 环境
  • 知识内容和模型连接由用户自己的 Dify 环境管理
  • 公开仓库当前以 main 分支持续维护,尚未发布独立语义版本
01

克隆仓库

git clone https://github.com/Jaycelu/zhixing.git
cd zhixing
02

源码方式启动

cp .env.example .env
docker compose up -d --build
03

访问入口

Gateway API:  http://127.0.0.1:8000
Gateway Docs: http://127.0.0.1:8000/docs
Admin 后台:   http://127.0.0.1:8080
04

交付版启动

cd deploy
cp .env.example .env
docker compose up -d

系统要求

  • 需要 Docker 与 Docker Compose
  • 需要按仓库说明配置 Dify 连接和环境变量

当前版本和更新时间

main

发布日期:2026-05-27

内容更新时间:2026-07-13

已知限制

  • 当前没有 GitHub Release 语义版本
  • 部署前需要自行准备 Dify 和运行环境

常见问题

知行 Gateway 是一个新的大模型平台吗?

不是。它是面向现有 Dify 应用和知识库的可部署网关与管理入口。

如何部署?

仓库提供 Docker Compose 源码部署和交付目录部署方式。

数据部署在哪里?

Gateway、Admin 和相关连接配置运行在用户自己的环境中。

相关技术文章

本地大模型如何接入网络运维平台 · 规划中

查看内容规划

产品入口

Who it is for

  • Developers and teams already using Dify or private knowledge bases
  • Users who want to self-host a Gateway API and admin console

What problem it solves

Teams may already have documents, Dify apps, or local knowledge bases, but still need a deployable gateway layer to manage assistants and expose Q&A access cleanly.

Core capabilities

Dify integration

The root Docker Compose file supports source deployment, while the deploy directory targets released images.

Gateway API

The Gateway exposes API docs and runs migrations plus idempotent seed logic on startup.

Admin console

The repo includes Admin Web, Gateway backend, and assistant management for Dify-based knowledge Q&A workflows.

Assistant management

Zhixing Gateway is a Dify-based local knowledge-base Q&A gateway: Gateway APIs, Admin Web, and assistant management make private knowledge bases, model connections, and Q&A entry points deployable in your own environment.

Typical workflows

  • Configure Dify and environment variables
  • Start Gateway and Admin with Docker Compose
  • Create and manage assistants
  • Ask questions through a unified API or frontend

Use cases

  • Dify knowledge Q&A
  • Private model entry
  • Enterprise knowledge gateway

Inputs

  • Dify application or knowledge-base connection
  • Assistant configuration
  • User questions

Outputs

  • Unified Gateway API
  • Assistant configuration
  • Knowledge-base answers

Deployment and data boundary

  • Services run in the user's own Docker environment
  • Knowledge and model connections remain in the user's Dify environment
  • The public repository is maintained on main and has no separate semantic release
01

Clone repository

git clone https://github.com/Jaycelu/zhixing.git
cd zhixing
02

Run from source

cp .env.example .env
docker compose up -d --build
03

Open services

Gateway API:  http://127.0.0.1:8000
Gateway Docs: http://127.0.0.1:8000/docs
Admin Web:     http://127.0.0.1:8080
04

Run delivery compose

cd deploy
cp .env.example .env
docker compose up -d

System requirements

  • Requires Docker and Docker Compose
  • Dify connection and environment variables must be configured according to the repository

Current version and update

main

Published:2026-05-27

Content updated:2026-07-13

Known limitations

  • There is currently no semantic GitHub Release
  • Dify and the runtime environment must be prepared by the user

Frequently asked questions

Is Zhixing Gateway a new model platform?

No. It is a deployable gateway and management entry for existing Dify applications and knowledge bases.

How is it deployed?

The repository provides Docker Compose workflows for source and delivery deployments.

Where does the data run?

Gateway, Admin, and connection settings run in the user's own environment.

Related technical guides

本地大模型如何接入网络运维平台 · Planned

View the editorial roadmap

Product access

产品截图Product screenshots

知行 Gateway 知行 Gateway 管理驾驶舱
知行 Gateway 管理驾驶舱Zhixing Gateway admin cockpit
知行 Gateway 助手管理
助手管理Assistant management