Go to file
2025-10-02 15:16:38 +08:00
.github Add reusable security checks workflow (#364) 2025-10-02 11:23:36 +08:00
account Improve MFA verification tolerance and docs (#368) 2025-10-02 15:16:38 +08:00
client chore(build): update Makefiles & setup script for Go, Node.js, and DB deps 2025-08-15 21:03:04 +08:00
cmd Add server port and timeout configuration (#360) 2025-10-01 21:38:01 +08:00
deploy Add fallback skippy Ansible callback (#269) 2025-09-20 21:54:29 +08:00
docs Improve MFA verification tolerance and docs (#368) 2025-10-02 15:16:38 +08:00
example Add Chutes embedding client with retry logic 2025-08-14 20:20:33 +08:00
internal/rag fix: support chutes embedding response 2025-08-14 20:50:27 +08:00
light-idp/idp-server Merge pull request #199 from svc-design/codex/implement-oauth2-authorization-flow 2025-08-21 15:36:16 +08:00
ragbench Add ragbench evaluation tool and workflow 2025-08-13 11:10:04 +08:00
scripts feat(docs): add version-aware doc routing (#305) 2025-09-24 21:32:34 +08:00
server Add server port and timeout configuration (#360) 2025-10-01 21:38:01 +08:00
types docs: refine routing plan and dl components (#221) 2025-09-15 17:33:40 +08:00
ui Add return home link to panel header (#367) 2025-10-02 14:31:39 +08:00
wasm/askai_limiter feat: add flexible askai rate limiter 2025-08-04 00:00:49 +08:00
workflows chore: update proxy host variable 2025-07-23 17:11:10 +08:00
.gitignore update: adjust .gitignore, config, yarn settings and manifests 2025-09-30 23:53:48 +08:00
go.mod docs: update account service mfa guidance (#366) 2025-10-02 14:06:07 +08:00
go.sum docs: update account service mfa guidance (#366) 2025-10-02 14:06:07 +08:00
install-openresty.sh Refactor install-openresty target 2025-08-09 10:38:44 +08:00
LICENSE Initial commit 2025-05-30 10:49:17 +08:00
Makefile chore(make): simplify build/run targets and set local PG DSNs 2025-09-30 21:03:54 +08:00
README.md Update README.md 2025-08-13 13:04:53 +08:00

XControl

XControl is a modular multi-tenant management platform written in Go. The project integrates several optional components to provide a visual control plane for traffic statistics, configuration export and multi-node management.

This repository contains the API server, agent code and a Next.js-based UI.

Components

  • ui-homepage
  • ui-panel
  • xcontrol-cli
  • xcontrol-server

All UI components provide both Chinese and English interfaces.

Tech Stack

Category Technology Version
Framework Go 1.24
Framework Next.js 14.1.0
Gateway OpenResty 1.27.1.2
Cache Redis 8.2.0
Database PostgreSQL + pgvector 14.18
Model (Local) HuggingFace Hub + Ollama baai/bge-m3, llama2:13b
Model (Online) Chutes.AI baai/bge-m3, moonshotai/Kimi-K2-Instruct

LangChainGo 核心功能集成一览

XControl 通过 LangChainGo 统一接入多种大模型,并为 AskAI、CLI 与 Server 提供链式调用能力:

  • LLM 接口层Model I/O:统一调用 Hugging Face、Ollama、OpenAI 兼容模型接口。
  • Chains链式流程:将 prompt、检索结果、工具调用等组合成完整流程支持 RAG、聊天、代码生成等场景。
  • 工具与 Agent 体系:定义 Web 搜索、实现 ReAct 风格的工具调用。
  • 向量检索与数据接入:适配 PGVector 向量存储。
  • 文档加载与分块:提供 Document Loaders 与 Text Splitters用于处理长文本与构建向量检索块。
  • Memory 与历史追踪:支持 Conversation Buffer 等对话记忆机制,增强交互体验。

Supported Platforms

Tested on Ubuntu 22.04 x64 and macOS 26 arm64.

Installation

make install
make init-db   # initialize database (optional)

Features

  • XCloudFlow Multi-cloud IaC engine built with Pulumi SDK and Go. GitHub →
  • KubeGuard Kubernetes cluster application and node-level backup system. GitHub →
  • XConfig Lightweight task execution & configuration orchestration engine. GitHub →
  • CodePRobot AI-driven GitHub Issue to Pull Request generator and code patching tool. GitHub →
  • OpsAgent AIOps-powered intelligent monitoring, anomaly detection and RCA. GitHub →
  • XStream Cross-border developer proxy accelerator for global accessibility. GitHub →

The docs directory contains a more detailed overview and design documents for each module.

Building

make build

This produces a binary under bin/xcontrol. Run make agent to build the node agent.

Testing

make test

Deployment

make start

This launches the server, homepage and panel. Use make stop to stop all components.

The API server also accepts a custom configuration file:

xcontrol-server --config path/to/server.yaml

Logging

Both xcontrol-cli and xcontrol-server accept a --log-level flag to control verbosity. The level may be one of debug, info, warn, or error:

xcontrol-cli --log-level debug
xcontrol-server --log-level warn

The server's log level can also be set in the configuration file:

log:
  level: info

The flag value takes precedence over the configuration file.

Changelog

See docs/changelog.md for a list of completed changes, including all work from Milestone 1.

Roadmap

The roadmap below is also available in docs/Roadmap.md.

License

This project is licensed under the terms of the MIT License.