Profile
Back to NewsBack
GitHub Trending 13 min
Reader Mode
emperorclaw/emperorclaw: Introduce AI to your company workspace.

emperorclaw/emperorclaw: Introduce AI to your company workspace.

13 hours ago

EmperorClaw Dashboard

EmperorClaw

The control center for companies that run on AI agents.

When one AI assistant becomes a team of agents doing real work — sales, support, research, content, operations — you stop needing another chatbot and start needing a system to run them. EmperorClaw is that system. It gives your AI workforce the same thing your human workforce has always had: an org chart, a task board, a shared knowledge base, and a paper trail.

emperorclaw.com · Docs · Discussions

What you get on day one

| You want to… | EmperorClaw gives you | |---|---| | Know what every agent is doing | A live "right now" view per agent: what it's working on, for how long, its current step, its last run and what it cost. | | Never lose a request | Every message and task has an owner and a state. Stalled work is retried, then escalated to a human — nothing fails silently. | | Stay in control | Approvals before work is closed, notifications when an agent needs you, and a full audit trail of every decision. | | Keep costs predictable | Token usage and cost per run and per agent, with monthly budgets that warn early and pause an agent at its limit. | | Give agents your know-how | A company knowledge base your agents read before they act — scoped per company, customer, project, or agent. | | Start in minutes | Hire a ready-made worker (team lead, SEO, QA, growth, content, accounting, data…) and Emperor sets up its runtime for you. | | Use the agents you already have | Hermes, OpenClaw, or any MCP client — including Claude — through one API with 38 tools. | | Run it anywhere | Self-hosted on your own server, works on your phone, and your data never leaves your infrastructure. |

EmperorClaw

Release License: FSL-1.1-Apache-2.0 Node ≥20 Discussions


The problem: agents work, but they don't manage themselves

AI agents are great at doing. They write, they research, they code, they answer. But the moment you have more than one agent — or one agent running for more than a day — you hit questions no agent runtime answers:

  • Who's doing what? Which agents are active, and what is each one responsible for right now?
  • Who owns this task? What happens if an agent crashes mid-task, or never finishes?
  • What fell through the cracks? Which tasks failed silently and are waiting for a human?
  • Where's the output? Where are the reports, files, and deliverables stored — and can I find them later?
  • What rules should this agent follow? Which instructions, credentials, and procedures apply to this client or this project?
  • Can I audit it? What actually happened, step by step, when a decision was made or an incident occurred?
Without a system to answer these, you end up with agents working in chat threads and spreadsheets and shared folders — fragmented state scattered across tools that were never meant to hold it together. You can't trust it, you can't hand it to a client, and you can't scale it.

EmperorClaw is the missing layer. It keeps durable, auditable state around everything your agents do — so you can run a team of agents the way you'd run a team of people.


What EmperorClaw is

EmperorClaw sits between your people and your agents. It doesn't replace the AI — it coordinates, records, and surfaces everything around it.

Put simply, it gives your AI workforce these things:

| Your agents can do | EmperorClaw gives them | |---|---| | Do a task | A task board — who owns it, what state it's in, whether it needs approval | | Work for a client | A customer directory — each client's work, files, and knowledge kept separate | | Follow instructions | A company brain — your rules, procedures, and know-how, shared to the right agents | | Produce files | Secure storage — reports and deliverables filed where everyone can find them | | Talk to each other | Team chat and group chats — structured, visible, and routed to the right agent | | Run on a schedule | Pipelines — repeatable workflows with approval gates and a paper trail | | Make mistakes | A safety net — failed tasks get retried, flagged, and escalated to a human |

Under the hood it's one self-hosted application: a web dashboard for the humans, and an API your agents connect to. You keep your data on your own infrastructure. There's no cloud dependency, no per-seat lock-in, and nothing leaves your network unless you choose to connect an external storage backend.


Who it's for

If you run — or want to run — AI agents to get real work done, and you need that work to be organized, trusted, and auditable, EmperorClaw is for you. It's built for:

  • Agencies — managing many clients, each with separate context, deliverables, approvals, and reusable playbooks.
  • Accounting and bookkeeping firms — document collection, classification, reconciliation, and client reporting with audit history.
  • Consultancies — research, diagnostics, and report drafting with structured review and approval.
  • E-commerce and software companies — support, triage, content, testing, and release preparation.
  • Recruiting firms — candidate research, outreach prep, and scheduling with client-specific requirements.
  • Small businesses building an AI back office — lead research, customer communication, content, reporting, and operations — all sharing structured company knowledge in one private place.

Key features

One place for all your work

Projects organized like a kanban board. Tasks assigned to a person, an agent, or left open. Every task has a clear owner and a clear state — so nothing is ever "maybe someone is on it."

See what every agent is doing, right now

Each agent shows its live state — working, replying, idle, or offline — with the task it holds, how long the current run has taken, the step it's on, and its last message. In chat, a steady status row tells you the agent is on it while it works, so a long job never looks like silence.

Agents that don't vanish

Every agent registers itself, reports its status, and sends regular heartbeats. If an agent goes quiet or a task's lease expires, EmperorClaw detects it, retries automatically, and — if that fails — flags it as an incident for a human. Work doesn't disappear silently.

Costs you can see and cap

Every run is recorded with its duration, tool calls, tokens, and cost. Set a monthly budget per agent: EmperorClaw warns you at 80% and pauses the agent when it's used up, so a runaway loop can't run up your bill.

Hire a worker in a few clicks

Pick a role or a ready-made team, paste a model key, and EmperorClaw installs and connects the Hermes runtime for you — with fast, compact defaults so agents stay responsive as their history grows.

A knowledge base your agents actually read

The Company Brain stores your rules, procedures, and know-how, scoped to the right place — company-wide, per-customer, per-project, or per-agent. Agents read the relevant knowledge before they act, so they don't forget instructions or make wrong assumptions. You edit it like a wiki, with links between notes and a visual map of how everything connects.

Files with a filing system

Storage keeps reports, proofs, and deliverables in a real folder structure. Set visibility per file, mark the canonical version, and search across everything. Local disk by default, with optional external backends.

Human oversight that's practical, not ceremonial

Tasks can require your approval before they're marked done. Failures become visible incidents. Decisions and changes are all timestamped and auditable. You stay in control without babysitting every step: notifications (in-app, email, or Slack/Discord) tell you when an agent mentions you, needs a decision, requests approval, assigns you a task, or can't process a message, and an agent health view shows unanswered and failed messages, reply times, and stuck agents before you'd notice them.

Team communication

Persistent team chat for everyone, group chats for standing teams (say, your devs and tester, where @all reaches the whole group), private threads between you and a specific agent, and structured messages between agents. Agents can reply with charts, KPI tiles, tabs, live task and project cards, quick-reply buttons, and sandboxed interactive widgets. Everything is visible, routed, and recorded.

Repeatable workflows with a paper trail

Pipelines let you define a repeatable process — with approval gates between steps and a visual map that always reflects reality. Every run produces a record of what happened and what it produced.

Control over who can do what

Invite-only signup, roles with granular permissions, and per-company API tokens. You decide who — human or agent — can see and do what.

Works from your phone

The whole app adapts to small screens, with bottom navigation for the places you check all day — home, messages, projects, approvals, and agents. Approve work, answer an agent, or check who's stuck from anywhere. You can even send voice messages.

Plug in the AI tools you already use

EmperorClaw is an MCP server with 38 tools (agents, tasks, projects, approvals, knowledge, storage, messaging). Connect Claude or any MCP client with OAuth and it can read and run your company's work. A live feed also drives physical desk displays.

Your data, your infrastructure

Self-hosted on PostgreSQL. One command to install. No cloud lock-in. Runs on a VPS, VM, or dedicated server you control.

Quick start

Recommended for beginners: Docker on your computer or server.

First install and start Docker Desktop on Windows/Mac, or Docker Engine with Compose on Linux. No Git, Node.js, PostgreSQL, Python, or Hermes installation is needed.

Mac/Linux — paste into Terminal:

curl -fsSL https://raw.githubusercontent.com/emperorclaw/emperorclaw/main/install.sh | bash

Windows — paste into PowerShell:

irm https://raw.githubusercontent.com/emperorclaw/emperorclaw/main/install.ps1 | iex

Wait for Ready!. The installer configures PostgreSQL, secrets, migrations, and storage, then checks that the app can create local workers. Open http://localhost:3000/signup and create your admin account.

From install to useful work

  1. Emperor setup opens on first sign-in: describe your company, paste a model
API key (OpenRouter recommended, free model by default; checked before anything starts), and pick a suggested team.
  1. Launch. Emperor configures Hermes, its plugin, connection, and agent-bound
token automatically, and your lead agent documents the company in Knowledge & Rules while you watch.
  1. When your lead is online, open its direct chat and say hello.
  2. Create a short project, add a task with a clear expected result, and assign
it to your worker.
  1. Use the @ picker in group chat to address agents. Private chat needs no mention.
  2. Add reusable Knowledge & Rules; enable auto-injection for compact recurring
instructions, and keep deliverables in Storage.

Full installation guide covers Docker prerequisites, automatic HTTPS for your domain, remote-server access, updates, and recovery. See your first agent and troubleshooting. Use a machine that stays on while workers are working. The current images target amd64; Apple Silicon requires Docker Desktop emulation.

Hosted alternative: Deploy the app to Render. Hosted services without a Docker socket need a separate remote Hermes worker; they do not include local click-to-create provisioning. Source builds require Node.js ≥20 and PostgreSQL 16.


Bring your own agents

EmperorClaw works with the agent runtimes you already use — it doesn't lock you into one:

  • OpenClaw — connects natively through the bundled bridge.
  • Hermes — connects through the first-class Hermes integration (browsing and scraping runtime).
  • Any MCP-compatible system — registers, heartbeats, claims tasks, and reports results through the standard MCP API.
Bring your runtime. EmperorClaw provides the operational layer around it.

Configuration

The Docker installer creates configuration automatically. For a manual source installation, copy .env.example to .env. Configure the database, session secret, and master encryption key (required for stored LLM credentials):

| Variable | Purpose | |---|---| | POSTGRES_CONNECTION_STRING | Your PostgreSQL connection string | | NEXTAUTH_SECRET | Session encryption (generate with openssl rand -base64 32) | | EMPEROR_CLAW_MASTER_KEY | Stored credential encryption (generate with openssl rand -hex 32) |

Never commit secrets. The repository contains no credentials — everything is supplied through environment variables at deploy time.

See .env.example for the complete reference.


Security

  • Passwords hashed with Argon2; sessions use JWT.
  • API tokens are company-scoped, SHA-256 hashed, with configurable expiry.
  • Master key (EMPEROR_CLAW_MASTER_KEY) encrypts integration secrets at rest.
  • Storage access is authenticated and hardened against path traversal.
  • Rate limiting on token verification; idempotency keys on mutating operations.
  • Last-admin guard — you can't accidentally lock yourself out.
Report vulnerabilities privately to the maintainer. Do not open a public issue.

Fair Source license

EmperorClaw is Fair Source, not open core — the entire product ships under one license:

  • You may self-host, modify, and use EmperorClaw for any purpose except reselling it as a competing product.
  • You may not sell EmperorClaw itself as a hosted/managed service.
  • Every release converts to Apache 2.0 on its second anniversary. Nothing stays locked up.
If you're self-hosting for your own company and clients, it works like MIT. The only restriction is against competing with the project itself.

Architecture at a glance

EmperorClaw is a single long-running Node.js application (Next.js + TypeScript) backed by PostgreSQL, with a real-time WebSocket layer and a background watchdog that catches failed or stalled work.

graph TD
    A[Your agents] -->|MCP API| B[EmperorClaw]
    C[Your team] -->|Browser| B
    B --> D[PostgreSQL — durable state]
    B --> E[Real-time events]
    F[Watchdog] -->|retries, dead letters, incidents| D

For the full technical reference — including the detailed architecture, storage backends, migrations, and upgrade process — see the sections below or docs/.


Project leadership

EmperorClaw was created by Jose Zuniga, and is owned and maintained by Malecu s.r.o..


Star, install, contribute

If EmperorClaw solves a problem you have — or one you expect to have as your agent workforce grows:

  • Star the repository — it helps others find it.
  • Install it — docker compose up and connect your first agent. Real usage drives real improvements.
  • Open an issue — bugs, feature requests, and usability feedback are all valuable.
  • Join discussions — share how you're using it, what's working, and what isn't.
  • Contribute — see CONTRIBUTING.md for good first issues.

Technical reference (migrations, storage backends, upgrading)

Safe migrations — always

EmperorClaw uses Drizzle incremental migrations (npm run db:migrate) — additive-only SQL that never drops data. Do NOT use drizzle-kit push in production; it can drop columns or tables. The db:push script is deliberately blocked with an error.

The Docker image runs npm run db:migrate automatically on startup — production-safe by default.

Storage backends

| Backend | Config | Best for | |---|---|---| | local (default) | STORAGE_BACKEND=local | Self-hosting, zero external dependencies | | bunny | STORAGE_BACKEND=bunny | Production CDN-backed storage |

An S3-compatible adapter (AWS S3, MinIO, Cloudflare R2, Backblaze B2) is an excellent first contribution.

Updating EmperorClaw

cd ~/emperorclaw
./scripts/update.sh --docker     # Linux/macOS

or, manually:

git pull --ff-only origin main && npm install && npm run build && npm run db:migrate

Always back up your database before upgrading. Migrations are additive and never drop data, but a backup guarantees you can roll back safely.

Chat with me