HugAgentOS: the open-source Agent Harness that runs 24/7
Hand it your question, then close your laptop —
the agent keeps working in the cloud and tells you when it's done.
English ·
简体中文
Website ·
Try HugAgentOS online
Models keep getting stronger, but getting an agent to actually finish the job
depends on the layer around the model: run lifecycle, context assembly, tools and
sandboxes, human approvals, memory, and failure recovery. That layer is the
agent harness.
HugAgentOS is an open-source, self-hosted agent harness built around the
durable agent: your request runs in the cloud, not in your browser or on your
computer. Close the tab, shut the laptop or go offline, and the task keeps moving;
you can also hand off tasks and get results in the IM app you use. On top of
that, HugAgentOS provides an always-on Personal Agent and runs in two forms —
HugAgent Cloud (on your server) and HugAgent Local (on your desktop) — which
can also be combined.
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.
At a glance
| Situation |
A typical chat assistant |
HugAgentOS |
| You close your laptop |
The task stops with it |
The task keeps running in the cloud; come back to the result |
| The server restarts or fails |
In-flight work is lost |
Another instance takes over from the last saved progress |
| A step fails and retries |
It may send the email twice |
Operations with an uncertain outcome are never redone automatically |
| A very long task |
Bound by timeouts and turn limits |
No business time limit; it runs until the job is done |
| Reaching you |
Waits for you to open the page |
IM notifications, schedules and heartbeat reminders |
| Where it runs |
Cloud or local, pick one |
HugAgent Cloud, HugAgent Local, or a local + cloud hybrid |
| Over time |
Starts from zero every time |
Memory, procedures and skills accumulate, each approved and reversible |
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.
HugAgentOS_Promo_EN_60s_lite.mp4
⏱️ Durable agent: close the laptop, the work goes on
Once you hand a task to HugAgentOS, it runs in cloud services and sandboxes — your
device is just a window onto it. Leave whenever you like, or come back on another
device; you always see the same progress and results.
09:00 In Feishu, tell the agent: "Research pricing for competitors A, B and C, put it in a table and write a comparison report"
09:01 The agent replies "Started"; the task runs in a cloud sandbox → you close the laptop and go to a meeting
10:40 It needs to send an email: an approval reminder arrives in Feishu, and you approve it on the web from your phone
11:30 The report arrives in the same Feishu chat
11:35 Reply "Add D as well" → the same task picks it up, no restart
Why it keeps going
- Runs in the cloud, not on your device: background tasks, schedules and heartbeats
run on the server, and working files live in a dedicated persistent sandbox. Closing
the page doesn't stop anything, and any device can pick up the live progress.
- Survives server failures: progress is saved to the database step by step and
executed by leased workers. If a process or machine dies, another instance takes over
from the last saved progress instead of silently dropping the task.
- Never repeats risky actions: emails, writes to external systems and other
operations record their intent and outcome. On recovery, anything that may or may not
have happened is not redone automatically — you confirm "executed" or "not executed".
- Runs until it's done: long tasks and the
autonomous loop have no total time limit or
business turn cap; stall detection, failure circuit breakers and a hard backstop prevent
runaways. Waiting for your approval or answer doesn't consume the execution budget.
- Change your mind mid-run: add requirements at any time and the agent takes them at
its next step, with no cancel-and-restart.
- Finds you when it needs you: actions that need approval are approved on the web, with
a reminder in IM; until you answer, the task waits instead of acting on its own.
Important
Continuous cloud operation relies on PostgreSQL, Redis and OpenSandbox — deploy
HugAgent Cloud with Docker Compose. The one-command install uses SQLite and
in-process state and is meant for trials and development.
🤖 Personal Agent: an agent that is always on
Personal Agent is built on the durable harness above: one conversation, one
persistent identity, one permanent cloud computer. You just say what you need; it
decides whether to answer right away or start a background task, and reports back
when the work is done.
| Capability |
Description |
| 💬 One entry, parallel background tasks |
Small talk and status questions are answered on the spot; research, reports, code and computer work become background tasks (3 in parallel by default, adjustable from 1 to 8). Follow-ups go in the same chat and it decides which task they belong to |
| 🖥️ Permanent sandbox and cloud computer |
Each user gets a dedicated OpenSandbox with no expiry, with separate persistent volumes for the workspace and browser profile; a lost container is rebuilt on the same volumes |
| ⏰ Schedules and heartbeats |
"Remind me to check email at 8 every morning" creates a schedule; heartbeats check HEARTBEAT.md at an interval and only speak up when something needs you |
| 📱 Reachable on your channels |
Bind Feishu, DingTalk, WeChat or WeCom bots; each contact or group gets its own session and results go back where the request came from |
| ✅ Execution you control |
Email, computer input and session writes need approval; every email is approved individually, other actions can be allowed for the rest of a task; a rejection makes it find another way |
| 🧠 Persona and memory as files |
SOUL.md, USER.md, a memory wiki under memory/ and the platform's daily journal/ live in the workspace and can be viewed and edited in My Space; Dreaming reads each day's conversations nightly and organizes the wiki |
| 💻 Connect your own computer |
In the desktop client's local + cloud mode, connect a Mac, Windows or Linux machine in one click and grant screen control or local session management; the device only polls outbound and opens no inbound ports |
Personal Agent is off by default in the Community Edition. In a HugAgent Cloud
deployment, set PERSONAL_AGENT_ENABLED=true and enable the personal-agent Compose
profile. See the Personal Agent guide.
☁️ HugAgent Cloud and 💻 HugAgent Local
The same harness, placed wherever your data and compute should live.
|
HugAgent Cloud |
HugAgent Local |
Local + cloud (hybrid) |
| Runs on |
Your server or private cloud |
Your computer |
Cloud as control plane, local machine as execution plane |
| Access |
Browser, from any device |
Desktop client (Windows / macOS / Linux) |
Desktop client |
| Data and state |
PostgreSQL, Redis, S3-compatible storage |
Local SQLite, Milvus Lite, local files |
Cloud projects stay in the cloud; local projects stay on the machine |
| Execution |
Isolated OpenSandbox sandboxes with snapshots |
Your real project directories, gated by folder grants and permission profiles |
Both |
| Best for |
24/7 Personal Agent, long runs, IM channels |
Offline work, sensitive data, local code and files |
An always-on cloud agent that can also operate your machine and projects |
| Install with |
Docker Compose |
Desktop offline installer, or the one-command script |
Choose "Local + cloud" in the desktop client |
- HugAgent Cloud is the complete durable harness, for work that must stay online,
be reachable from any device and connect to IM channels. Each Docker sandbox uses a
separate bridge with the trusted backend and controller; sandbox host ports are not
published and peer sandboxes cannot reach each other's execd.
- HugAgent Local ships its own private Python runtime and services, so no Python,
Docker or database install is needed. It can run fully offline with local models;
once a local project is bound, Bash and file tools work directly in the project's real
directory. A failed upgrade rolls back to the previous version and data backup.
- Hybrid mode uses one cloud account: cloud conversations are stored in the cloud,
while only local projects' conversations, files and execution stay on the machine.
This is also how Personal Agent "connects this computer" so an always-on cloud agent
can operate your desktop.
See Desktop local mode and
Local project workspace.
🧬 Self-evolution: better with real work, audited at every step
HugAgentOS does not make the agent start from zero every time — and does not let it
quietly learn the wrong things.
- Learning procedures from trajectories: the post-response memory pipeline keeps
outcome-verified trajectories such as "failure → user correction → success" as
reusable procedural memory instead of facts that go stale; stable procedures can
be compiled further into skills.
- Three memory layers: L1 personal profile, L2 vector procedural memory (Milvus,
optional) and L3 relationship graph (Neo4j, optional). Writes go through a durable
outbox so crash replays never add duplicates, and a sanitizer filters credentials.
- Approved one by one, reversible: evolution proposals for memory and skills appear
as cards and only take effect after you confirm them; you can switch it off at any time.
- Dreaming for Personal Agent: a nightly job reads the day's conversations, checks and
organizes the memory wiki under
memory/ (snapshotted first, restorable), and records
observations, updates, merges and conflicts in DREAMS.md; it never edits USER.md or
MEMORY.md and only suggests lines for you to add there.
🧰 More harness capabilities
| Capability |
Description |
| 🔁 Autonomous loop |
Goals survive across turns until done; maker ≠ checker — a worker does the work, a read-only reviewer verifies the real output, and command-checkable requirements are verified by the driver itself |
| 🗺️ Plan Mode |
Plan first, then execute step by step with per-step MCP, skill and sub-agent bindings; resumable like any run |
| 🤝 Sub-agents |
Built-in explorer, worker and reviewer, plus your own sub-agents, routed automatically or by @ mention |
| 🔧 MCP, Skills and plugins |
Built-in web search, page fetching, knowledge retrieval, charts and automation tools; an MCP marketplace, private MCP servers, Agent Skills and plugins |
| 🧪 Sandbox and artifacts |
Run code in OpenSandbox or a local subprocess sandbox, producing charts, reports, Office files, web pages and data canvases |
| 📚 Private knowledge-base RAG |
Document chunking, hybrid vector and keyword retrieval, optional reranking |
| 🔌 Replaceable models |
Connect cloud or local OpenAI-compatible models through one model service; reviewer, planner, memory and other roles can each use their own model |
Quick start