Hare
Health Pass
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 13 GitHub stars
Code Fail
- fs.rmSync — Destructive file system operation in bin/cli.js
- os.homedir — User home directory access in bin/cli.js
- process.env — Environment variable access in bin/cli.js
- fs module — File system access in bin/cli.js
- rm -rf — Recursive force deletion command in hooks/guard.js
- os.homedir — User home directory access in hooks/guard.js
- fs module — File system access in hooks/notify.js
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Next-Generation ADE (Agentic Development Environment) — 把多台开发机上的 Claude Code / Codex / OpenCode 会话汇到一处:看状态、开终端、派任务、agent 互相协作,手机和飞书随时提醒
Hare
English | 简体中文
"A cunning hare has three burrows." (狡兔三窟) — Zhanguo Ce (Strategies of the Warring States)
The name comes from this proverb: a smart hare never keeps to a single burrow. Your agents live in many burrows — terminal sessions on many machines — and Hare is the one way into all of them.
Website · Quick start · Commands · Deployment · Documentation
Hare (Chinese name: 狡兔) is an open-source, self-hosted multi-agent dashboard: one web console for the Claude Code, Codex and OpenCode sessions running on all your dev machines (in zmx by default, or in tmux). Watch their status, open them as terminals, hand out tasks. MIT licensed.
The next-generation ADE (Agentic Development Environment). Your Claude Code, Codex and OpenCode sessions are scattered across terminal sessions on several dev machines. Hare gathers them into one place:
- Feishu document sync — bind project Markdown to your own Feishu/Lark docx documents, with revision-based syncing and conflict review. Setup and current format limits.
- Folder project panels: each project folder has its own sortable to-do list and Feishu document links, synced across devices; connected users can create cloud documents. Details.
- Open local Markdown and HTML in a project folder, highlight text, and discuss it with people and agent sessions on desktop or mobile.
- Web Dashboard: a desktop page and a mobile page at
/m. See the status of every session and open any of them as a full terminal. - Notifications: a macOS menu bar status light, system notifications on your phone and a Feishu group bot tell you which session is waiting for you, without opening the page.
- Collaboration between agents: sessions can message each other and hand out tasks, and a conversation can be migrated to another machine and continue there.
The dashboard interface is available in English and Simplified Chinese: you choose one the first time you open it and can switch at any time in Settings; the choice is stored with your account. The documents under
docs/are written in Chinese, and so is the output of the command-line setup wizard and the daemon. Command names, MCP tool names and configuration keys are in English.
Architecture
dev machine A ─┐ terminal sessions (zmx by default, tmux supported): claude / codex / opencode / shell
dev machine B ─┼─ daemon ──WebSocket──▶ relay (central server) ◀── browser: desktop / and mobile /m
dev machine C ─┘ ├ hooks/status.js agent status events ◀── macOS menu bar light
├ MCP server + CLI messages / tasks / migration ──▶ Web Push / Feishu group bot
└ load reports, conversation bindings, uploads
| Part | Location | Responsibility |
|---|---|---|
| daemon | lib/, hooks/, bin/ |
Runs on every dev machine: • scans local sessions with zmx and tmux as the source of truth (both kinds side by side in one list), including sessions created by hand • opens PTY terminals for the browser • reads agent hook events and derives the session status • reports CPU, memory and GPU load • offers MCP tools and a CLI to agents through a local socket Sessions live in zmx or tmux, not in the daemon, so restarting the daemon does not affect them |
| relay | packages/server/ |
Login, session ownership and sharing, pins, project folders (project-folders.json), the message inbox (memory only), the task board (tasks.jsonl), migration orchestration and notification delivery. Everything forwarded to a browser is filtered per user first |
| front end | packages/server/frontend/ |
A React front end with two entry points: desktop / and mobile /m |
| menu bar | packages/menubar-macos/ |
A small Swift app that shows only a status light and session names, never any conversation content |
Features
Sessions and terminals
| Feature | Description |
|---|---|
| Multi-machine session list | The sessions of every online dev machine in one list, zmx and tmux sessions side by side, including sessions created by hand. Sessions can be filed into cross-machine project folders: one folder holds sessions from any number of machines, and folders nest. The folder tree lives on the relay, one tree per user, so desktop and mobile show the same thing. Unfiled sessions form one flat list on desktop and mobile, ordered by recent activity, with a machine label on every row. Administrators can still group by owner. Renaming really renames the session (a tmux session is renamed in tmux; a zmx session keeps its socket name and carries the new name as a label) (docs/session-folders.md, docs/terminal-backends.md section 5). Choose a dev machine in the new-session form, which remembers your last choice. Files has its own remembered machine selection. Folders appear directly after pins and before the unfiled list, each with its own collapse control and count. Create folders with the folder icon beside New at the top. |
| Full terminal | The browser attaches straight to the session in zmx or tmux. A screenshot pasted into the terminal, or a file dropped on it, is uploaded to the machine the session runs on and its path is typed into the terminal. On desktop, images and documents pasted or dropped into the input box below the terminal first become attachment cards (images get a thumbnail; images and text documents can be opened for a preview), and their paths are sent together with your text when you press Enter (Enter waits until every card has finished uploading; a card that failed because the connection dropped has a "Retry" button). The "⤓ Latest" button jumps back to the newest output (it leaves copy-mode in a tmux session; a zmx session's scrollback is replayed into the browser terminal and scrolled there). CJK input methods are supported |
| Ownership and sharing | Every session belongs to one user. A regular user sees only their own sessions and sessions shared with them. Each machine can have a default owner, and a session can be shared with specific users. People a session is shared with can watch and type, but only the owner (or an admin) can stop it or delete its conversation history |
| Pins | Folders at any depth and sessions on different machines can be pinned to the top of the list. Pinned folders carry their subtrees and appear before pinned sessions; their order is adjustable. Pins are stored per user on the relay, so desktop and mobile show the same set |
| Git badges | A session row shows the repository, branch and worktree it is in (docs/git-worktree-display.md) |
| Project docs | Read the Markdown / HTML documents of the session's project inside the Dashboard, refreshed automatically when a file changes. On desktop it is the "Docs" button (book icon) at the top of the sidebar; on mobile it is in the session's ⋯ menu (docs/project-docs.md) |
| HTML dashboards | HTML dashboards and reports that agents generate open like a real static site, in the docs panel or in a new tab: relative scripts and styles, fetch of data files, ES modules, CSS images and fonts, links between pages and anchors all work. Clicking a .html file in the file browser opens it the same way. The page reloads when any file it loaded changes. Pages run in a sandbox with an opaque origin and cannot reach the Dashboard's login or APIs. With an older relay or daemon the panel falls back to the single-file view and says why (docs/project-docs.md section 11) |
Mobile /m |
A separate interface built for phones. Its key bar matches the desktop shortcuts (/clear, /compact, paste, Shift+← and others) |
Status awareness
| Feature | Description |
|---|---|
| Status lights | All three agents report their status: Claude Code and Codex through hooks, OpenCode through a plugin, all installed by --install-status-hooks. Three states:• working • done · waiting for you • needs your confirmation: a permission request or a question dialog ( AskUserQuestion / ExitPlanMode / Codex request_user_input) |
| Phone / Feishu notifications | When a session needs confirmation, finishes, or an agent asks you something, the session's owner gets a system notification (Web Push) and a Feishu group-bot card. A notification contains only the session name, the state and the machine name (docs/notifications.md) |
| Pixel town | Every session is a pixel character that moves around according to the session's state |
| macOS menu bar light | Watches only your own sessions. Pinned sessions come first in the menu, the rest are ordered by creation time. Clicking a session switches to the Dashboard tab that is already open and opens the session there (packages/menubar-macos/README.md) |
Multi-agent collaboration
| Feature | Description |
|---|---|
| Session messaging | An agent can message a session on another machine and wait for the reply, in two ways: • MCP tools hare_send / hare_wait / hare_inbox / hare_reply / hare_read_output / hare_list_sessions• the hare msg commandA message is delivered only when the target is idle; while the target is running or stopped at a confirmation prompt, the message is queued. Replies are pushed back to the sender, so there is no need to poll with hare_wait. Messages live in the relay's memory only and are never written to disk (docs/session-messaging.md) Open the envelope icon (with an unread count) in the desktop SESSIONS or mobile session-list toolbar for all messages; use a session badge or its message menu item for that session’s history. |
| Questions to the human | With hare_ask or hare msg ask an agent asks a question with options. The Dashboard and the phone show the options as buttons and the status light turns red; once you pick an option or type a sentence, the answer is pasted back into the asking session (docs/session-messaging.md, section 3.7) |
| Task board | Work items across machines and agents: create, claim, hand over, review. A session can be marked as a worker ("Act as worker" in its context menu); automatic assignment only goes to idle worker sessions, and Hare recommends a session and a machine by load (MCP tools hare_task_*, command hare task, docs/agent-tasks.md) |
| Cross-machine migration | Move an agent conversation to another machine and continue there. Uncommitted and unpushed changes travel along and are restored in a new worktree on the target (branch hare/migrate/<id>). The source session is closed and the conversation archived for 30 days (MCP tool hare_migrate, command hare agents migrate, or "Migrate to…" in the Dashboard context menu) |
| Load awareness | Every dev machine reports CPU, memory and GPU memory. hare machines --suggest new|task|migrate recommends a machine by load |
Operations and accounts
| Feature | Description |
|---|---|
| Crash recovery | At startup the daemon recreates lost, tracked agent sessions in zmx, including sessions originally in tmux. It keeps the Dashboard name, owner and working directory and resumes the recorded conversation ID. Install the daemon as a service for boot recovery. On machines with tmux-resurrect, run hare --install-agent-restore after upgrading so resurrect leaves agent panes at a shell. Recovery and migration |
| Usage statistics | The "Usage" view of the Dashboard (on desktop, in the view switcher at the top of the sidebar) adds up the spending of the three agents (see Usage statistics) |
| Codex auto-continue | A Codex session created from the Dashboard gets continue sent automatically after a capacity error or a 429 rate limit (see below) |
| Claude Code hooks | The setup wizard can install four hooks: a PreToolUse guard for dangerous commands (see Dangerous-command rules), auto-formatting of edited .py files, a pycodestyle check of staged Python files before git commit, and a fix for relative paths in the Write tool |
| Accounts | An administrator creates users; users can change their password, avatar and nickname. On desktop, the account, notification settings and per-machine load all live in the "Settings" panel (gear icon) in the sidebar; on mobile, tap your avatar in the top bar. New dev machines join with a one-time invite code |
| Interface language | English and Simplified Chinese. The first time you open the Dashboard (desktop or mobile) you choose one, pre-selected from your browser language; switch at any time in Settings on desktop or in your profile on mobile, or with the small switch on the sign-in page. The choice is stored with your account, so it follows you to other devices (docs/i18n.md) |
| Accent color | Pick one of eight presets or any custom color under Settings → Appearance (in your profile on mobile) and it applies at once; each theme derives a palette that meets WCAG AA contrast, and the choice is stored with your account like the language (docs/appearance.md) |
Quick start
Let your agent install Hare
Replace the bracketed fields and send this prompt to any agent you use: Claude Code, Codex, OpenCode, or another.
Please install Hare (https://github.com/Tigerdwgth/Hare) for me, following docs/install.md.
Set up the relay on [relay machine and SSH access], create administrator [admin username], and make the Dashboard available at [full URL reachable by the browser and dev machines].
Connect every machine in [dev machine list and SSH access for each]; for a single-machine setup, use the same machine for both roles. Install on remote machines over SSH.
Run hare doctor on every dev machine, then log into the Dashboard in a browser and confirm they are all online.
Stay with the installation from start to finish, fix problems as they arise, and give me the access URL and verification results.
If you find a Hare compatibility bug, file an issue on the project's GitHub with reproduction steps and redacted logs, removing passwords, tokens and private machine details.
Manual installation
Hare runs on macOS and Linux (arm64 / x86_64). Three commands: start the relay, add a dev machine, upgrade. The install script brings its own Node when the one on your PATH is older than 22.18 (a private copy; your system Node is left alone) and zmx 1.0.2. It never uses sudo or edits your shell profile. Downloads of Node, zmx and Hare release bundles are verified with SHA-256; --ref source archives have no checksum and rely on HTTPS.
Terminal backends: zmx (default) and tmux. New agent sessions run in zmx by default, so dev machines need zmx ≥ 1.0.0 (Hare is tested against and pins 1.0.2); the install script sets it up. To install it yourself, use the official binary: curl -fsSL https://zmx.sh/a/zmx-1.0.2-<linux|macos>-<x86_64|aarch64>.tar.gz | tar -xz -C ~/.local/bin zmx, or brew install neurosnap/tap/zmx followed by brew pin zmx. Avoid installers that auto-upgrade: upgrading zmx can end every running session. A daemon run by launchd / systemd only sees the PATH captured by hare service install, so re-run it from a shell that finds zmx. To keep using tmux on a machine, set "terminal": { "backend": "tmux" } in ~/.hare/config.json. Existing tmux sessions keep working under every setting. See docs/terminal-backends.md.
Start the relay
Pick one machine that every dev machine and your browser can reach:
curl -fsSL https://raw.githubusercontent.com/Tigerdwgth/Hare/main/install.sh | sh -s -- --ref main --no-zmx
hare server init --admin alice # data directory, first administrator (asks for a password), a launchd / systemd user service, then prints the address
Open the printed address in a browser (mobile: /m) and log in as alice. HTTPS and public access are covered in Deployment.
Add a dev machine
hare invite --server http://relay.example.com:3000 --user alice # on any machine with hare: issues an invite code and prints the next line
curl -fsSL https://raw.githubusercontent.com/Tigerdwgth/Hare/main/install.sh | sh -s -- --ref main --server http://relay.example.com:3000 --code <code> # on the new dev machine
After installing, the second line runs hare join: it joins the relay with the invite code → checks the terminal backend → hands the daemon to launchd / systemd → installs the status hooks and MCP tools for whichever of Claude Code / Codex / OpenCode the machine has → confirms that the relay sees the machine online. Every step can be re-run and steps already done are skipped (the same invite code is never spent twice). In a container without a usable systemd user instance it starts the daemon in the background instead and says why. --no-service, --no-hooks and --no-messaging skip a step.
An administrator can also issue invite codes from the "开发机" (Dev machines) panel in the Dashboard sidebar (monitor icon) ("+ 添加开发机", Add dev machine); the same panel rotates the token of an existing machine and revokes machines. Agent sessions that are already open must be restarted before they see the newly registered MCP tools. A container without a Tailscale interface can reach the relay through a SOCKS5 proxy: see centralServer.socks5Proxy in Configuration file.
Check and upgrade
hare doctor # checks Node, node-pty, zmx, the service, relay reachability and the token, hooks / MCP and disk space, with a fix for each (--json for machines)
hare upgrade --ref main # switches to the new version and restarts the daemon (sessions keep running); rolls back if it does not reconnect in time
Upgrade the relay machine first (there upgrade restarts the relay before the daemon), then the dev machines.
Behaviour change: the daemon now verifies the relay's TLS certificate. It used to accept any certificate on wss://. A dev machine whose relay uses a self-signed or internal-CA certificate stops connecting after the upgrade; the daemon log and hare doctor name the reason. Fix it with one of centralServer.caFile (trust that CA) or centralServer.insecureSkipTlsVerify (turn verification off, not recommended) in Configuration file, then restart the daemon. Relays on plain ws:// are not affected (docs/install.md section 13).
--ref maininstalls the source of the main branch and runsnpm cion the machine (it needs access to an npm registry). No release bundle has been published yet; once one is, leaving out--refinstalls the latest release, which carries every dependency so the machine does not need npm.- Slow or blocked networks: put mirror variables in front of
sh, e.g.curl -fsSL … | HARE_NODE_MIRROR=https://npmmirror.com/mirrors/node HARE_NPM_REGISTRY=https://registry.npmmirror.com sh -s -- …; addHARE_GITHUB_PROXY=<prefix>when GitHub is slow, or use the standardhttps_proxy. When a download fails the script lists these variables. - Hare is installed in
~/.local/share/hare(HARE_PREFIXchanges it) and theharecommand is linked into~/.local/bin; configuration and state stay in~/.hare. The layout, every option and the mirror variables are in docs/install.md. - Running from a git checkout (to work on Hare itself): after
git clone, runnpm installin the repository root and inpackages/server, and replacehare …below withnode <repo>/bin/cli.js ….hare join,doctorandserver initwork the same way;upgradeonly manages the directory the install script created.
Local hooks for Claude Code (optional)
hare # interactive wizard
The wizard copies the hook scripts to ~/.hare/hooks/ and registers them in ~/.claude/settings.json: the dangerous-command guard, Python formatting, the pre-commit check, the Write path fix and session event reporting. A machine set up with join can use the Dashboard without ever running the wizard.
Note: the wizard rewrites config.json as a whole. If you run it on a machine that has already joined, enter the relay address and token again at the "Web Dashboard 配置" (Web Dashboard configuration) step, or the existing connection settings are wiped.
Commands
hare # setup wizard (Claude Code hooks + manual relay address)
hare --remove # remove this project's hooks and delete ~/.hare
hare --daemon start|stop|status # start / stop the daemon by hand (start detaches; add --foreground to stay attached)
hare service install|uninstall|status # manage the daemon with launchd (macOS) / a systemd user service (Linux)
# agent integration
hare --install-status-hooks
hare --install-messaging # --remove-messaging to uninstall
hare --install-agent-restore # configure tmux-resurrect to leave agent panes at a shell (rerun to migrate)
# collaboration (inside an agent session or a terminal; add --json for machine-readable output)
hare msg whoami|ls|send|read|wait|inbox|reply|ask # session messaging; ask puts a question to the human
hare task ls|show|new|claim|note|done|review|handoff|release|cancel|approve|reject|suggest|worker|wait
hare machines [--suggest new|task|migrate] # machine load and recommendations
hare agents restore [--dry-run] [--session <session name>] # manually resume in an existing idle pane
hare agents migrate … # cross-machine migration (see --help)
# onboarding, checks, upgrades
hare invite --server <relay> --user <admin> [--machine-id <machine>] [--label <note>] [--ttl <minutes>] # prints the one-line install for the new machine
hare join --server <relay> --code <code> [--machine-id <name>] [--label <note>] # join + service + hooks + MCP + online check
[--no-service] [--no-hooks] [--no-messaging] [--wait <seconds>] [--join-only]
[--ca-file <CA certificate>] [--insecure-skip-tls-verify] # wss:// relay with a self-signed / internal-CA certificate
hare setup [--no-service] [--no-hooks] [--no-messaging] # re-run every join step except joining, on a machine that already joined
hare doctor [--json] # step-by-step self check with fixes; exit code 1 when something is wrong
hare upgrade [--version <vX.Y.Z> | --ref <branch|tag|commit> | --bundle-url <url>] [--timeout <seconds>] [--force]
# relay
hare server init --admin <user> [--port 3000] [--host 0.0.0.0] [--data-dir <dir>] [--no-service]
hare --server start|stop|status # run the relay in the foreground; port and bind address come from the server section of config.json
sudo hare --deploy dashboard # write the relay as the systemd service claude-dashboard
# usage reports (the data behind the "Usage" view)
hare --usage-report # collect and report once, right now
hare --usage-schedule install # macOS: hourly report through launchd; status / remove to inspect or uninstall
hare --crontab install # Linux: hourly report, plus daemon autostart and a 5-minute watchdog; status / remove to inspect or uninstall
sudo hare --deploy client still exists: it writes a system-level systemd service named claude-hooks-daemon, needs root and does not work on macOS. Use service install on newly installed machines.
Usage statistics
The "Usage" view of the Dashboard adds up what Claude Code, Codex and OpenCode cost on each dev machine, broken down by machine, user, harness or model, with daily stacked trends. Desktop and /m share machine multiselect, today / 7-day / 30-day / custom ranges, and expandable machine details. Totals use USD and billion tokens. See Usage views and API. The data is reported by a collector on each dev machine: it calls ccusage to read the local session logs, normalises the result and POSTs it to /api/usage/report.
Prerequisite:
npm install -g ccusage # 20.x or later; Codex / OpenCode support starts with that version
The collector reads the usage section of ~/.hare/config.json (every key is optional):
| Key | Default | Description |
|---|---|---|
username |
centralServer.machineId |
The Dashboard user the usage is attributed to. Must be an existing user on the platform |
ccusageCmd |
ccusage |
Path of the ccusage executable; an absolute path is recommended under a scheduled job |
lookbackDays |
7 |
How many days each report looks back, to fill in missed reports |
codexHome |
~/.codex |
Codex log directory; separate several with commas |
The report endpoint authenticates with centralServer.machineToken (the same list as the WebSocket handshake), so no extra credential is needed. Records are stored idempotently by (user, machine, agent, date, model): reporting the same data again overwrites it and never adds it up twice.
A regular user sees only their own usage on the page. An administrator sees everyone by default and can switch to "仅我" (only me).
Codex auto-continue on capacity and rate-limit errors
When a Codex session prints a model capacity error (model at capacity) or a 429 rate-limit error (exceeded retry limit, last status: 429 Too Many Requests) in its terminal, Hare sends continue (plus Enter) to the pane that failed. It has the same effect as typing "continue" yourself to push a stuck Codex along.
- Scope: only Codex sessions created from the Dashboard. A Codex started by hand in your own terminal (zmx or tmux) is left alone; Claude and other sessions never trigger it.
- Cooldown: after each automatic send, the same session is not triggered again for 30 seconds by default. Errors already on screen at the moment monitoring attaches do not count.
- Matching: case-insensitive, against the last 2048 characters of output, so an error message that the output stream splits into chunks still matches.
- Turning it off / tuning: edit the
codexWhipsection of~/.hare/config.jsonand restart the daemon:
{
"codexWhip": {
"enabled": false,
"cooldownMs": 30000
}
}
Deployment
Relay (central server)
Use the two commands in Start the relay. hare server init does three things, and re-running it never creates a second user:
- Data directory
~/.hare/relay/(--data-dirchanges it):users.db,jwt-secret,tasks.jsonl,migrations.jsonl,project-folders.jsonandtraffic.jsonl(hourly traffic totals, docs/traffic-stats.md) live here, outside the code directory, so replacing the code during an upgrade cannot lose the accounts; - First administrator: created only while the database has no users; the password is typed twice in the terminal, or comes from
HARE_ADMIN_PASSWORD; - Service (user level, no root) with
DB_PATH/PORT/HOSTin its environment. Without a usable systemd user instance it prints the command to run the relay in the foreground under your own supervisor (--no-servicedoes the same).
| Platform | Service file | Restart the relay | Log |
|---|---|---|---|
| macOS | ~/Library/LaunchAgents/com.hare.relay.plist |
launchctl kickstart -k gui/$(id -u)/com.hare.relay |
<data directory>/relay.log |
| Linux | ~/.config/systemd/user/hare-relay.service |
systemctl --user restart hare-relay |
journalctl --user -u hare-relay -f |
On a Linux server also run sudo loginctl enable-linger <user> once, so the relay keeps running when nobody is logged in.
The relay reads these environment variables:
| Variable | Default | Description |
|---|---|---|
PORT |
3000 |
Listening port |
HOST |
0.0.0.0 |
Bind address. To serve only inside a Tailscale network, set it to this machine's Tailscale IP (tailscale ip -4) |
DB_PATH |
packages/server/users.db |
Location of the account database (server init sets ~/.hare/relay/users.db). jwt-secret, tasks.jsonl, migrations.jsonl, project-folders.json and traffic.jsonl live in the same directory |
JWT_SECRET |
generated on first start | When unset, a random secret is generated and stored in jwt-secret next to the account database |
SSL_CERT / SSL_KEY |
certs/cert.pem / certs/key.pem |
When both files exist the relay listens on HTTPS |
HARE_PUBLIC_HTTPS_ORIGIN |
unset | Public HTTPS origin for this dashboard, e.g. https://relay.example.com. On an insecure HTTP page, the Feishu document panel uses this address to link to the same document over HTTPS. Overrides server.publicHttpsOrigin in the relay's ~/.hare/config.json. Restart the relay after changing it. |
MACHINE_TOKENS |
empty | The legacy list of dev machine credentials (comma separated, not bound to a machine). Machines installed with an invite code do not need it |
HARE_PUSH_EXTRA_HOSTS |
empty | Extra push-service hosts accepted for Web Push subscriptions, comma separated: push.example.com, *.push.example.com (subdomains), push.example.com:8443 (only that port). By default only the known push services are accepted (docs/notifications.md section 6) |
HARE_FEISHU_EXTRA_HOSTS |
empty | Extra hosts accepted for Feishu bot webhooks, same syntax. By default only open.feishu.cn and open.larksuite.com |
HARE_OUTBOUND_ALLOW_PRIVATE |
off | 1 lets notifications reach loopback, private, CGNAT and IPv6 ULA addresses (a self-hosted push service on the LAN). Link-local and cloud metadata addresses stay blocked |
HARE_OUTBOUND_CA_FILE |
none | An extra CA certificate (PEM) trusted for those requests, for a self-hosted push service with an internal CA |
From a git checkout (without the install script):
git clone https://github.com/Tigerdwgth/Hare.git /opt/hare && cd /opt/hare
npm install && npm install --prefix packages/server
node bin/cli.js server init --admin alice # as above; or node packages/server/index.js --create-user alice and write the service yourself
Without DB_PATH the account database sits inside the code directory, so do not overwrite packages/server/ with rsync --delete when you update the code. The repository ships a prebuilt front end in packages/server/frontend/dist/; rebuild only if you change the front end (cd packages/server/frontend && npm install && npm run build).sudo hare --deploy dashboard still works: it writes the system-level systemd service claude-dashboard and requires server.machineTokens in config.json.
(Optional) Reverse proxy. Forward the WebSocket upgrade headers:
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
Dev machines
Install with the commands in Add a dev machine. Once the service is installed:
| Platform | Service file | Restart the daemon |
|---|---|---|
| macOS | ~/Library/LaunchAgents/com.hare.daemon.plist |
launchctl kickstart -k gui/$(id -u)/com.hare.daemon |
| Linux | ~/.config/systemd/user/hare-daemon.service |
systemctl --user restart hare-daemon |
On a Linux server also run sudo loginctl enable-linger <user> once, so the daemon keeps running when nobody is logged in. The log is ~/.hare/daemon.log. The Linux unit carries KillMode=process: restarting the daemon does not end the sessions in zmx or tmux.
Upgrade with hare upgrade (see Check and upgrade): sessions are not affected, and it rolls back when the new version does not reach the relay. On a git checkout, git pull and restart the daemon.
Access
Open http://<relay-host>:3000 in a browser (mobile: /m) and log in with the administrator account.
- Private network: the recommended setup puts the relay and the dev machines in one Tailscale network, binds
HOSTto the Tailscale IP and opens no port to the public internet. - HTTPS: system notifications (Web Push) and clipboard reading require an https page. Give the relay a certificate (
SSL_CERT/SSL_KEY) or put a TLS reverse proxy such astailscale servein front of it.
Configuration file
A dev machine's configuration is ~/.hare/config.json (HARE_HOME moves the directory), mode 0600, outside the repository. The file is merged level by level over the built-in defaults, so it only needs the keys you changed; join writes just machineId and centralServer.
| Key | Default | Description |
|---|---|---|
machineId |
hostname | The machine's name on the Dashboard |
defaultWorkDir |
home directory | Where the file browser starts |
centralServer.enabled / url / machineToken |
off | Which relay the daemon connects to. url looks like ws://<relay-host>:3000/ws |
centralServer.socks5Proxy |
none | Connect to the relay through a SOCKS5 proxy (for containers without a Tailscale interface) |
centralServer.caFile |
none | An extra CA certificate (PEM) to trust for a wss:// relay with a self-signed or internal-CA certificate (for a self-signed certificate, the certificate itself). The system CAs stay trusted; a relative path is relative to ~/.hare. hare join --ca-file <file> writes it |
centralServer.insecureSkipTlsVerify |
false |
Do not verify the relay's certificate. Anyone who can tamper with the network can then impersonate the relay, take the machine token and run commands on this machine; hare doctor marks it red. hare join --insecure-skip-tls-verify writes it |
hooks.* |
all on | Which Claude Code hooks the wizard installs |
pythonFormatter |
black |
Command name of the Python formatter |
dangerousPatterns |
see the next section | Substrings that mark a command as dangerous |
codexWhip.enabled / cooldownMs |
true / 30000 |
Codex auto-continue |
stats.diskPaths |
[] |
Extra partitions whose free space is included in the load report |
fileAccess.blockedDirs / blockedSystemPaths |
.ssh, .gnupg, .aws and others |
Paths the file browser and the docs panel cannot read |
fileAccess.maxFileSizeKB |
100 |
Size limit for a single file read in the file browser |
fileAccess.maxDocSizeKB / maxHtmlSizeKB / maxAssetSizeKB |
2048 / 8192 / 5120 |
Size limits in the project docs panel for Markdown, HTML and a single referenced asset |
fileAccess.maxSiteFileMB |
512 |
Size limit (MB) for a single file served to an HTML dashboard |
fileAccess.maxUploadMB |
20 |
Size limit for a single pasted / dropped file |
fileAccess.uploadDir |
<HARE_HOME>/uploads |
Where uploads are written |
usage.* |
see Usage statistics | Usage collection |
migration.workspaceRoots |
defaultWorkDir |
When this machine is a migration target, the directories a new worktree may be created under |
agentRestore.commands.<agent> |
the official resume command | Use your own launcher when reattaching a conversation, e.g. "codex": "mycodex resume {id}" |
server.port / host / machineTokens |
3000 / 0.0.0.0 / [] |
Read only by --server start and --deploy dashboard; running packages/server/index.js directly uses the environment variables above |
server.preview.tokenTtlMinutes / maxStreamsPerMachine / maxQueuedPerMachine / openTimeoutMs / chunkTimeoutMs |
60 / 16 / 64 / 15000 / 30000 |
HTML dashboards: lifetime of a preview link, files in flight per dev machine, queue length, timeouts |
Dangerous-command rules
hooks/guard.js checks every Bash command before Claude Code runs it. A match blocks the command and tells Claude why. Two kinds of rules:
- The command contains any string in
dangerousPatterns. Defaults:rm -r /,git push --force,git push -f,git reset --hard,DROP TABLE,DROP DATABASE,mkfs,dd if=,> /dev/sda - The target of
rm -rfis a system directory (/,/etc,/usr,/varand so on) or the user's home directory. Deleting an ordinary directory is not blocked
Documentation
The documents below are written in Chinese.
| Document | Contents |
|---|---|
| docs/session-folders.md | Renaming sessions, cross-machine project folders, pins |
| docs/git-worktree-display.md | Git repository / branch / worktree badges on session rows |
| docs/project-docs.md | The project docs panel |
| docs/notifications.md | Phone system notifications (Web Push) and the Feishu group bot |
| docs/session-messaging.md | Messaging between sessions, delivery rules, questions to the human |
| docs/agent-tasks.md | Task board, load awareness, cross-machine migration |
| docs/traffic-stats.md | Relay traffic statistics: what is counted (metadata only), the hourly traffic.jsonl, the admin endpoint GET /api/admin/traffic |
| docs/rename-to-hare.md | Name mapping and migration steps when upgrading from the old name, VibeAnything |
| packages/menubar-macos/README.md | Installing and using the macOS menu bar light |
| packages/server/frontend/src/mobile/README.md | What the mobile page /m does and the design trade-offs behind it |
| docs/terminal-backends.md | Terminal backends: zmx as the default for new sessions, tmux kept for existing sessions and as an opt-in, how sessions are restored after a reboot, and the differences between the two |
| docs/appearance.md | Appearance: theme and accent presets, how one color becomes the whole palette, where the choice is stored |
| docs/i18n.md | Interface languages (English / Simplified Chinese): how the language is chosen and stored, adding messages or a language, error codes from the relay, the coverage check |
| docs/typescript.md | TypeScript conventions: new code is written in TypeScript and run by Node directly (no build step), how to type-check, and how new TS and existing JS modules import each other |
| docs/roadmap.md | Roadmap: everything that is not implemented yet is listed there; this file only describes what already works |
Project history
Development started in February 2026; the GitHub repository was created on 2026-02-26. The project was called VibeAnything until it was renamed Hare on 2026-11-29 (docs/rename-to-hare.md). The public git history was restarted at the rename, so commit dates do not show how old the project is.
License
MIT
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found