Dify integration
The root Docker Compose file supports source deployment, while the deploy directory targets released images.
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.
Zhixing Gateway is a self-hosted knowledge Q&A gateway built on Dify, providing Gateway APIs, an admin console, and assistant management to expose private knowledge bases through a unified entry point in your own environment.
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.
The root Docker Compose file supports source deployment, while the deploy directory targets released images.
The Gateway exposes API docs and runs migrations plus idempotent seed logic on startup.
Admin Web is separated from the Gateway backend so administrators can manage gateway configuration in their own environment.
Assistant management organizes Dify knowledge Q&A entry points into configurable workflows.
git clone https://github.com/Jaycelu/zhixing.git
cd zhixingcp .env.example .env
docker compose up -d --buildGateway API: http://127.0.0.1:8000
Gateway Docs: http://127.0.0.1:8000/docs
Admin Web: http://127.0.0.1:8080cd deploy
cp .env.example .env
docker compose up -dPublished:2026-05-27
Content updated:2026-07-14
Dify provides knowledge base management. Zhixing Gateway adds a unified Gateway API, multi-assistant management, and an Admin console on top.
Cloud services store data on the provider's platform. Zhixing Gateway runs in your own environment — knowledge content and model connections stay within your control.
Building from scratch requires implementing API routing, assistant management, an admin UI, and Dify integration. Zhixing Gateway provides a deployable, out-of-the-box solution.
No. It is a deployable gateway and management entry for existing Dify applications and knowledge bases.
The repository provides Docker Compose workflows for source and delivery deployments.
Gateway, Admin, and connection settings run in the user's own environment.
Dify provides knowledge-base application management. Zhixing Gateway adds a unified Gateway API, multi-assistant management, and an Admin console for teams that need a gateway layer.
Zhixing Gateway runs in your own Docker environment. Knowledge content and model connections remain managed by your Dify instance and are not automatically transferred externally.
No complete English guide is published for this product yet.

