Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

HugAgentOS logo

HugAgentOS: The Enterprise AgentOS for Ontology-Grounded Trustworthy Reasoning

The open-source, self-hosted foundation for enterprise AI agents

Give models the context and tools to retrieve knowledge, work with files, run code, and carry real tasks through to completion.

HugAgentOS capability overview poster

English · 简体中文

Website · Try HugAgentOS online

Apache 2.0 with supplementary terms Community Edition One-command installation AgentScope 2.0 Model Context Protocol

HugAgentOS is an enterprise-grade AgentOS that treats domain ontology as a control plane for agent reasoning, decisions, and actions. Its open-source Community Edition combines agentic chat, private knowledge-base RAG, sub-agents, MCP tools, Agent Skills, sandboxed execution, long-term memory, automation, and a data canvas in one self-hosted workspace.

[!NOTE] This Community repository is generated from the upstream main repository for each release and is marked generated. Report changes to src/** through an Issue or Discussion. Pull requests for documentation and examples are welcome. See CONTRIBUTING.md for details.

Demo

A 60-second tour: the same task run twice, with audited self-evolution in between — memory, skills and orchestration each settled, and each taking effect only after you approve it.

https://github.com/user-attachments/assets/635c5b35-10c0-47b9-a6f1-c73df9510e90

Quick start

Use the one-command install to try it out, or Docker Compose for a long-running service with isolation. Either way you need an OpenAI-compatible or local model. The initial account and password are both admin and must be changed on first sign-in; the Community Edition has no self-registration.

Option 1: one-command install (Linux / macOS / WSL2)

Requires Python 3.11+, Node.js 20+, Git and curl. No Docker, PostgreSQL or Redis needed.

curl -fsSL https://raw.githubusercontent.com/ZJU-REAL/HugAgentOS/main/install.sh | bash

The installer fetches the source into ~/.hugagent/source, creates an isolated Python environment, builds the web application and walks you through first-run setup; it then opens http://127.0.0.1:3001. Start it again later with ~/.hugagent/venv/bin/hugagent.

[!WARNING] The installation listens on 127.0.0.1 only. If you genuinely need remote access, use hugagent serve --host 0.0.0.0 --port 3001 --no-browser, and set a strong password, a firewall and HTTPS first. Do not expose it on an untrusted network.

This path uses SQLite, in-process state and a local subprocess sandbox, which suits personal use and development. Options and troubleshooting are in the one-command install guide.

Option 2: Docker Compose

Use this when you need PostgreSQL, Redis, an isolated sandbox and persistent volumes. Requires Git, Docker and Compose v2.

git clone https://github.com/ZJU-REAL/HugAgentOS.git
cd HugAgentOS
cp .env.example .env
mkdir -p data/storage
docker compose up -d --build

Open http://localhost:3002, then connect a model under Settings → System → Model services. Profiles, persistence and production configuration are covered in the Docker Compose deployment guide.

Why HugAgentOS

The point is not another chat wrapper. It is putting the context, the execution capability, and the artifact management an agent needs to finish real work on a single path — and raising the domain ontology from a knowledge base to a machine-executable control plane, so that governed concepts, relations, rules and action contracts give the skill, memory and orchestration engines one shared business vocabulary.

🔌 Model-agnostic
Connect cloud or local models through one model-service configuration, without locking the application to a single vendor.
🛠️ Actually does the work
ReAct orchestrates MCP servers, skills and sandboxes, so the model can search, analyse, produce files and call external capabilities.
🧠 Knowledge and memory
Private knowledge bases and layered memory supply long-term context across files and conversations.
🏠 Your data stays yours
Application, database and file storage all run on your own infrastructure.
🛡️ Gated, trustworthy execution
Candidate plans pass deterministic rule checks, risk-tiered evidence review and a gate. A violating action returns with the rule, the evidence and a correction — it is never waved through silently.
🔎 Traceable evolution
Approvals, rejections, evidence and outcomes are all recorded, distilled into versioned ontology proposals that take effect only after human review, and can be rolled back.

[!NOTE] The ontology trust control plane is an enterprise target architecture being integrated into the existing harness in stages. It strengthens structured compliance and evidence-based review; it does not promise "zero hallucination" for free text.

Core capabilities

The Community Edition covers the full loop for a personal agent — conversation, execution, consolidation and reuse. Optional components are enabled as needed.

CapabilityWhat it gives you
💬 Conversation and plan modeSSE streaming, ReAct tool orchestration, deep thinking, plan mode, citations, resumable runs
📚 Private knowledge base RAGDocument chunking, hybrid vector and keyword retrieval, optional reranking, per-user isolation
🤝 Personal sub-agentsSub-agents with distinct roles, reached by automatic routing or an @ mention
🔧 MCP tool ecosystemBuilt-in web search, page fetch, knowledge retrieval, charts, reports, batch runs, automation, skill management
🧩 Agent SkillsExtend the agent with standardised skill definitions and scripts — built-in, marketplace and personal
⚙️ Automation and batch runsCreate scheduled tasks in natural language; run one process across an Excel sheet, a Word file or a file list
💬 Group chat channelsFeishu / DingTalk / WeCom bots, with optional group listening and history retrieval so the agent can see the conversation around it
🧪 Sandbox and artifactsRun code in a subprocess or lightweight container sandbox, producing charts, reports, Office files, web pages and data canvases
🧠 Three-layer personal memoryL1 profile in the relational store; optional Milvus vector memory and Neo4j graph memory
🧬 Personal evolutionSettle memory and skills out of your real work, each approved individually before it applies to you, and switchable off
🗂️ Personal workspaceProjects, folders, favourites, conversation sharing and an artifact center
📊 Data canvasInspect and edit structured data inside the conversation, keeping analysis and result in one workspace

Architecture

HugAgentOS separates user channels, agent workflows, reusable capability engines, ontology contracts, data governance, and infrastructure into clear layers. Action contracts connect the ontology layer to planning, validation, and gated execution, while security and platform governance span the complete stack.

HugAgentOS layered architecture in English

[!NOTE] The diagram shows the complete HugAgentOS product architecture. Some governance, collaboration, gateway, and persistent-sandbox capabilities are available only in Enterprise Edition.

Technology stack

The project combines mature, replaceable open-source components behind clear service boundaries.

LayerMain technologies
Agent runtimeAgentScope 2.0, ReAct, Model Context Protocol
BackendPython, FastAPI, SQLAlchemy, Alembic
FrontendReact 19, TypeScript, Vite, Zustand, Ant Design
Data and stateSQLite or PostgreSQL 15, in-process state or Redis 7, local file storage
Optional memoryMilvus 2.4, Neo4j 5 Community, mem0
DeploymentOne-command local installer, Docker Compose, Nginx

See the architecture overview for the full request lifecycle, container topology, and design decisions.

Community and Enterprise editions

Community Edition gives an individual a complete agent workspace. Enterprise Edition adds the governance, collaboration, and delivery capabilities needed to operate the same experience across an organization. Enterprise-only source is physically absent from the Community tree.

Community EditionEnterprise Edition adds
Agentic chat, Plan Mode, and personal sub-agentsTeams, organization agents, and permission matrices
8 general MCP tools, personal skills, and a skill marketplaceIndustry data tools, organization governance, and skill review
Private knowledge bases and three-tier personal memoryPublic knowledge administration and memory auditing
Automation, batch execution, and a personal data canvasOrganization billing, usage reports, and canvas collaboration
Lightweight sandbox and local file storagePersistent sandboxes, cloud storage, and offline delivery
Local accounts and branding with Powered-by attributionSSO, compliance auditing, and full white-labeling

See the edition overview for the complete feature boundary and upgrade path.

Documentation

The repository includes complete English and Chinese documentation for operators, users, and contributors, and you can read it offline.

GoalEnglish中文文档
Understand the productIntroduction产品简介
Run it in 10 minutesQuick start快速开始
Configure a deploymentDeployment部署指南
Explore the system designArchitecture架构总览
Build a domain ontologyDomain ontology quickstart快速构建领域本体
Learn MCP, skills, memory, and sandboxingModules功能模块
Build backend or frontend featuresDevelopment开发指南

Start from document/README.md to browse every guide.

Roadmap

  1. Seamless cloud/local switching across clients — one server deployment serving multiple clients, keeping conversations, agents, skills, files and task state in sync.
  2. Adaptive model routing based on Mixture of Agents — select or combine models by task complexity, modality, latency and cost: light models for simple work, stronger ones only when the task warrants it.
  3. A richer extension ecosystem — more built-in and community agents, skills, MCP servers and plugins, with better discovery, installation, updates, and quality and security review.

Contributing

We welcome bug reports, feature proposals, documentation improvements, and reproducible patches. Read CONTRIBUTING.md before you start so you understand the boundary between generated and directly editable content. By participating, you agree to follow our bilingual Community Code of Conduct.

  • Include reproduction steps, expected behavior, actual behavior, and your environment in bug reports.
  • Explain the concrete use case and problem when proposing a feature.
  • Keep English and Chinese documentation aligned with the Community and Enterprise edition boundary.

Don't open a public Issue for a security vulnerability. Follow SECURITY.md to report it through a private channel.

License

HugAgentOS Community Edition is licensed under Apache License 2.0 with supplementary terms. The terms restrict operating the software as a competing multi-tenant SaaS offering and require the UI's Powered-by attribution to remain visible. LICENSE and NOTICE define the complete rights and obligations for internal use, modification, and distribution.

关于 About

HugAgentOS: The Self-Evolving AgentOS for Ontology-Grounded Trustworthy Reasoning
agentagent-frameworkdesktop-appharnessharness-engineering

语言 Languages

Python68.4%
TypeScript19.0%
CSS4.5%
Shell3.6%
Rust2.0%
HTML1.5%
JavaScript0.9%
PowerShell0.1%
Dockerfile0.1%
NSIS0.0%
Makefile0.0%
PLpgSQL0.0%
Mako0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
271
Total Commits
峰值: 57次/周
Less
More

核心贡献者 Contributors