riba2534/happyclaw
自托管、多用户、智能体优先的 Agent 工作台
What it solves
Running Claude Code locally is great for a single terminal session, but it doesn't naturally support team access, long-running tasks, or interactions from the chat apps people already use. HappyClaw turns Claude Code into a continuously running, multi-user service. You can message the same AI agent from a web browser or from Feishu, Telegram, QQ, DingTalk, WeChat, WeCom, Discord, or WhatsApp — and the agent can read project files, run terminal commands, use MCP tools, and complete multi-step tasks over time.
The project also solves isolation and permissions. Each user gets their own workspaces, memory, skills, and configuration. Tasks can run directly on the host for trusted admins, or inside Docker sandboxes for regular members, preventing one user's actions from affecting the whole system.
How it works
HappyClaw builds on the official Claude Agent SDK and the Claude Code CLI. It doesn't reimplement tool calling or the agent loop; it wraps the existing runtime and adds a layer for managing users, workspaces, sessions, channels, and automation.
The core structure is a hierarchy:
- An agent holds the identity, prompt, skills, and MCP configuration.
- A workspace owns the project directory, environment variables, and execution mode (host or container). It also keeps a structured memory that carries facts and decisions across sessions.
- A runtime session is one independent conversation inside a workspace. Each channel mount (like a chat or a forum topic) can be bound to a specific session.
You manage everything through a web interface. The first-time wizard asks whether you want a single-user host-only mode (no Docker) or a multi-user mode where normal members work in containers. Admins can also choose to run all their workspaces on the host.
Channels are connected via bot credentials or QR-code scans. Each conversation is routed to the correct session, and the agent can proactively send results back to the same chat after a task finishes.
Automation is built in: you can create scheduled tasks that inject a prompt into a real session, set stop conditions, run pre-checks, and get quiet notifications only when something actually changes.
Who it's for
HappyClaw is aimed at individuals and teams who want to use Claude Code as a shared, always-on AI assistant. It's for developers who need to delegate repo work, code review, research, or operational tasks to an agent that can run unattended and respond from chat apps. It's also for administrators who need fine-grained control over permissions, execution environments, and resource usage — especially when multiple users or untrusted members are involved.
Highlights
- Native Claude Code runtime — uses the official SDK and CLI, version-locked; no custom tool loop.
- Agent-first design — clear separation between agent identity, workspace files/execution, and session context.
- 8 IM channels + web — Feishu, Telegram, QQ, DingTalk, WeChat, WeCom, Discord, WhatsApp, plus browser and PWA.
- Host or container execution — admins can use local directories; normal members default to isolated Docker sandboxes.
- Multi-user and multi-account — users, credentials, workspaces, memory, skills, and MCP servers are all isolated.
- Complex scheduling — cron-like automation, stop conditions, waiting for idle, failure deduplication, and auto-continue when hitting usage limits.
- Workspace Memory — structured knowledge (facts, decisions, experiences) that persists across sessions and can be recalled by relevance.
- Broad provider support — Anthropic official, ChatGPT subscription, 20+ preset vendors (DeepSeek, GLM, Kimi, MiniMax, etc.), or custom compatible endpoints.
- Operational tooling — RBAC, audit logs, usage tracking, Docker image management, backup/restore, and memory-limit control for containers.
Related
- Project
- Project
- Project
- Project
- Project