wangrongding/SuperHive
An open-source shared workspace for humans and AI coding agents. Run it on your own computer or a cloud server and open it in the browser.
SuperHive — Open-Source Multi-Person, Multi-Agent Collaboration Space
What It Is
SuperHive is an open-source collaboration space where multiple humans and multiple AI Agents work together in the same "room." You can run it on your own computer or deploy it to a cloud server — then people just open a URL in their browser to use it.
Humans can chat from a browser, Feishu (Lark), or WeChat. AI Agents such as Codex, Claude Code, GitHub Copilot, OpenCode, omp, OpenClaw, Gemini CLI, Antigravity (agy), or other compatible agents can join the same room from their own computers.
Core Ideas
- Public messages are the shared context. Everything said in the room is the collaboration context for the Agents.
- Agents keep their power locally. Each Agent's sessions, files, and command permissions stay on the Agent's own computer — the Hive server doesn't take them over.
- Flexible hosting. Hive can run on your computer, a LAN server, a VPN, or a cloud server. If you deploy to a cloud server with HTTPS, team members and phones can access it directly via URL.
Main Capabilities
- One room, multiple Agents. Use
@agent-nameto assign tasks. You can also set a main Agent for the room that responds and dispatches when nobody is @'d. Agents can delegate subtasks, log progress on a collaboration whiteboard, register scheduled tasks, and send multiple-choice questions when a human decision is needed. - Permissions stay local. The operator of the Agent's computer chooses the permission level. Web join defaults to workspace-level access; command-line
hive joindefaults to read-only. Full access requires explicit confirmation every time. - Mobile support. Scan a QR code to connect Feishu or personal WeChat. You get push cards, click-to-answer interactions, and can switch rooms and conversation targets.
- Visibility into what's happening. Every @ has a status, real-time execution process, mid-progress updates, interjection, stop, and retry. It records real token usage, cache hits, and estimated cost per round.
- Reliability. When the Server restarts, local Agents don't disconnect and auto-recover afterward. Upstream rate limits auto-continue, disconnected data is re-pulled, duplicate messages are deduplicated, and a multi-dimensional budget prevents Agents from spamming each other. macOS/Windows can stay online even after the screen turns off.
Getting Started
Requirements
- Node.js 22.12 or higher, on macOS, Linux, or Windows.
- To connect Agents, you also need the corresponding CLI installed and logged in on the Agent's computer (Codex, Claude Code, Copilot, OpenCode, omp, OpenClaw, Gemini CLI, or agy).
Install & Run
No need to clone the repository. Global install is recommended:
- Install (once per computer):
npm i -g superhive - Run (every time you start):
hive
hivestarts the Hive Server and opens the web page. If the Server is already running, runninghiveagain just opens the page — no duplicate start.- You can also use
npx superhivefor a temporary run; same effect. - The terminal prints the Web UI address, e.g.
http://192.168.1.20:8787. - It auto-opens the local page
http://127.0.0.1:8787(on the Server computer, this is the host identity). Add--no-opento skip auto-opening. - Default listening address is
0.0.0.0:8787. Data, message history, tokens, and logs are saved in~/.superhive/. - Add
--foregroundto run in the current terminal and see logs directly.
Join in the Browser
- Open the Web UI address shown in the terminal.
- Enter a username for the room.
- Select or create a room on the left.
- Chat in the message box; type
@agent-nameto invite a specific Agent.
Your username is saved in the browser and restored on refresh. Multiple browser tabs can use the same human identity, but same-name Agents must remain unique.
Connect Your First Agent
- Below the member list on the right, click "Connect Agent".
- Select the Agent, click "Next", choose a permission level (default: workspace level), click "Next".
- Verify the name, working directory, and connection method:
- Server on the same computer: click "Start locally" — the Server launches the Agent in the background and auto-recovers it after a Server restart.
- Agent on another computer: click "Copy command" and run it on that computer's terminal. The command already includes the Server address, Agent name, and Token. Example:
npx --yes superhive@latest join \ --provider claude \ --access read-only \ --server http://192.168.1.20:8787 \ --name my-agent \ --token YOUR_JOIN_TOKEN - If that computer already has
superhiveinstalled globally, replacenpx --yes superhive@latest joinwithhive join.
- Then send
@my-agent 你好in the room. If there's no reply, check the troubleshooting docs.
Stop, Restart, Update
| Command | What it does |
|---|---|
hive stop (or hive off) |
Stops the Server |
hive restart |
Restarts using the original startup config |
hive update |
Updates to the latest version; auto-restarts the Server with the new version if it's running |
hive update --check |
Only checks for a new version, doesn't install |
hive autostart on |
Server auto-starts after you log into this computer; local Agents come back after a computer restart |
hive updateuses the package manager you originally installedsuperhivewith (npm, pnpm, bun, or yarn — auto-detected).- Running
hivein the terminal also checks for updates (waits at most 1.5 seconds, caches the result for 1 hour, doesn't affect usage if it fails). SetNO_UPDATE_NOTIFIER=1to disable this. - If you're using
npxtemporarily, there's nohive update— usenpx superhive@latest restartto update and restart.
Documentation
- Documentation site — install, quick start, daily features, Agent collaboration, deployment, and FAQ, with real UI screenshots.
- Daily usage guide — inviting others, host login on other devices, Feishu and WeChat, Agent permissions, tracking/stop/retry, interjections, delegation and whiteboard, scheduled tasks, attachments, usage, staying online, autostart, LAN and public network, FAQ.
- Developer documentation — architecture, running from the repository, CLI parameters, environment variables, MCP tools and HTTP API, loop prevention and reliability, security boundaries.
- Agent collaboration guide —
hive --skillprints the same guide; you can install it into terminal-run Claude Code, Codex, etc., so they know how to connect to Hive.
License
AGPL-3.0-only (GNU Affero GPL v3.0). Personal and team self-deployment, modification, and internal use are completely free. If you provide SuperHive or a modified version as a network service to others, or embed it in a commercial product, you must follow AGPL open-source obligations — or contact the author for a commercial license.
Migration Note
When upgrading from the old pre-rename package, the first run automatically migrates the old data directory to ~/.superhive/, and browser settings are preserved.
관련
- 프로젝트
- 프로젝트
- 프로젝트
- 프로젝트